Refactor static database connection handling and update synchronization functions

This commit removes hardcoded database connection details from the `fxStaticSyncClientDatabaseConfigs` function, returning an empty array instead. It also refines the `fxStaticSyncConnect` function to utilize `mysqli_init` for improved connection management and introduces a new `fxStaticSyncOpenConnections` function to reuse existing connections. Additionally, the script execution time limit is increased in `sync_static_db.php` to accommodate longer operations.
This commit is contained in:
2026-06-23 09:17:25 -04:00
parent a23f492621
commit 1797e0c91e
3 changed files with 45 additions and 32 deletions

View File

@ -16,6 +16,8 @@ if (!fxAdminStaticSyncAllowed()) {
exit;
}
set_time_limit(300);
function ssEsc($str) {
return htmlspecialchars((string)$str, ENT_QUOTES, 'UTF-8');
}