fix: store backups inside panel directory; revert dev testing heading

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/33417aee-aecb-44de-9008-5b1008b4e3dc

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-01 19:02:36 +00:00 committed by GitHub
parent db42a078e7
commit 6edfa36235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## 2026-05-01 (latest)
- Changed panel update backup location from `/var/backups/gsp-panel` to `<panel_root>/backups/` so all backups are self-contained inside the panel directory and require no external path or elevated permissions.
- Removed stale "Dev Testing" placeholder heading from the panel login page (`index.php`).
## 2026-05-01
- Added safe panel update system to `home.php?m=administration&p=main`:
- Numbered Releases: fetches GitHub releases via API, shows newest-first dropdown, updates to selected tag.

View file

@ -485,8 +485,7 @@ function ogpHome()
<hr>
<div style="text-align:center"> <h1>Dev Testing</h1></div>
this is dev
<div style="text-align:center"> <h1>Level up your gaming</h1></div>
<div class="row">
%bottom%

View file

@ -17,7 +17,7 @@
// Panel root is two directories up from this file (modules/administration/panel_update.php)
define('GSP_PANEL_DIR', realpath(dirname(__FILE__) . '/../../'));
define('GSP_BACKUP_BASE', '/var/backups/gsp-panel');
define('GSP_BACKUP_BASE', GSP_PANEL_DIR . '/backups');
define('GSP_UPDATE_LOG', GSP_PANEL_DIR . '/logs/panel_updates.log');
define('GSP_VERSION_FILE', GSP_PANEL_DIR . '/includes/panel_version.php');
define('GSP_VERSION_JSON', GSP_PANEL_DIR . '/version.json');
@ -283,8 +283,7 @@ function gsp_create_full_backup($update_type, $update_target)
return [
'success' => false,
'error' => 'Cannot create backup directory ' . GSP_BACKUP_BASE
. '. Run: sudo mkdir -p ' . GSP_BACKUP_BASE
. ' && sudo chown www-data:www-data ' . GSP_BACKUP_BASE,
. '. Ensure the panel directory is writable by the web server.',
];
}