This commit is contained in:
lizandrogd
2026-01-21 08:28:54 -05:00
parent 7d6c3b4fb4
commit 45a11032f5
59 changed files with 315 additions and 315 deletions
+4 -4
View File
@@ -21,15 +21,15 @@ try {
"SELECT config_key, config_value FROM system_config"
);
$settings = [];
$system_config = [];
foreach ($configs as $config) {
$settings[$config['config_key']] = $config['config_value'];
$system_config[$config['config_key']] = $config['config_value'];
}
echo json_encode($settings);
echo json_encode($system_config);
} catch (Exception $e) {
error_log("Error in get_settings.php: " . $e->getMessage());
error_log("Error in get_system_config.php: " . $e->getMessage());
http_response_code(500);
echo json_encode(['error' => 'Error interno del servidor']);
}