php config file

This commit is contained in:
matt committed 2026-10-17 05:55:48 -07:00
1 parent 48e2e7061e
commit a08a4c0314
5 files changed
+22 -4

No files matched your search

+4 -1
View File
@@ -5,6 +5,9 @@
// This page allows editing a provider's details.
// It expects a provider id passed via the query string: ?id=123
// file settings
require_once __DIR__ . '/config.php';
$provider_id = isset($_GET['id']) ? intval($_GET['id']) : 0;
if ($provider_id <= 0) {
echo '<h1>Error</h1>' .
@@ -13,7 +16,7 @@ if ($provider_id <= 0) {
}
// API base URL
$api_base = 'http://127.0.0.1:5000';
$url = BASE_API_URL . $path;
// Handle form submission
if ($_SERVER['REQUEST_METHOD'] === 'POST') {