revisi 299

This commit is contained in:
azgrey
2026-06-11 16:11:30 +07:00
parent d153f4fe26
commit 5471855aa1
+1 -13
View File
@@ -9,7 +9,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { http_response_code(204); exit; }
$db_host = getenv('DB_HOST') ?: 'mysql-database-bwg8woskog0osso8wg4s4ogk';
$db_port = getenv('DB_PORT') ?: '3306';
$db_name = getenv('DB_NAME') ?: 'sipkem';
$db_user = getenv('DB_USER') ?: 'mysql';
$db_user = getenv('DB_USER') ?: 'root';
$db_pass = getenv('DB_PASS') ?: 'ep5qnTbKEzbEa6y4n2y2JefTo46fUIiy5dybUJBD0gUAkK7NmHwfyhWDOckDiQxo';
try {
@@ -27,18 +27,6 @@ try {
exit;
}
// DEBUG SEMENTARA - hapus setelah selesai
if ($action === 'debug') {
echo json_encode([
'ok' => true,
'host' => $db_host,
'port' => $db_port,
'name' => $db_name,
'user' => $db_user,
]);
exit;
}
$body = json_decode(file_get_contents('php://input'), true) ?? [];
$action = $body['action'] ?? ($_GET['action'] ?? '');