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
|
|
@ -715,7 +715,7 @@ function exec_ogp_module()
|
|||
echo "<tr><td class='right'>". get_lang("game_control_password") .":</td><td class='left'>";
|
||||
echo "<form action='?m=user_games&p=edit&home_id=".$home_id."' method='post'>";
|
||||
echo "<input type='hidden' name='home_id' value=\"$home_id\" />\n";
|
||||
echo "<input type='text' size='30' name='control_password' value=\"".str_replace('"', """, $home_info['control_password'])."\" />";
|
||||
echo "<input type='password' size='30' name='control_password' value=\"".str_replace('"', """, $home_info['control_password'])."\" />";
|
||||
echo "<input type='submit' name='change_control_password' value='". get_lang("change_control_password") ."' />";
|
||||
echo "</form></td></tr>";
|
||||
echo "<tr><td colspan='2' class='info'>". get_lang("change_control_password_info") ."</td></tr>";
|
||||
|
|
@ -754,7 +754,7 @@ function exec_ogp_module()
|
|||
// Form to edit control ftp password
|
||||
echo "<tr><td class='right'>". get_lang("server_ftp_password") .":</td><td class='left'>";
|
||||
echo "<form action='?m=user_games&p=edit&home_id=".$home_id."' method='post'>";
|
||||
echo "<input type='text' size='30' name='ftp_password' value=\"".str_replace('"', """, $home_info['ftp_password'])."\" />";
|
||||
echo "<input type='password' size='30' name='ftp_password' value=\"".str_replace('"', """, $home_info['ftp_password'])."\" />";
|
||||
echo "<input type='submit' name='change_ftp_password' value='". get_lang("change_ftp_password") ."' />";
|
||||
echo "</form></td></tr>";
|
||||
echo "<tr><td colspan='2' class='info'>". get_lang("change_ftp_password_info") ."</td></tr>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue