feat: move panel update UI to Update module, add backup-only button & DB logging, fix password input exposure
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/a08c8b94-1b12-4eec-86c6-770cb435bb06 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
98264975c0
commit
1a7502952c
5 changed files with 164 additions and 29 deletions
|
|
@ -22,18 +22,14 @@
|
|||
*
|
||||
*/
|
||||
|
||||
// todo, make checking and updating functions for updateing on the background.
|
||||
// todo, more specified updates in smaller packages
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db, $settings;
|
||||
define('REPONAME', 'OGP-Website');
|
||||
|
||||
if ($_SESSION['users_group'] != "admin")
|
||||
{
|
||||
print_failure(get_lang('no_access'));
|
||||
return;
|
||||
}
|
||||
echo "To update the panel, visit our git at http://git.iaregamer.com:3000, download the panel and replace your files.";
|
||||
if ($_SESSION['users_group'] !== 'admin') {
|
||||
print_failure(get_lang('no_access'));
|
||||
return;
|
||||
}
|
||||
|
||||
require_once(dirname(__FILE__) . '/../administration/panel_update.php');
|
||||
gsp_panel_update_section();
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue