Phase 5: Final validation and remaining reference updates
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
0ea24764e3
commit
815f2b0b0c
64 changed files with 144 additions and 144 deletions
|
|
@ -10,7 +10,7 @@ function create_selection($selection,$flag)
|
|||
<td align='left'><input id='".clean_id_string($selection)."' type='checkbox' name='".$selection."' value='1' checked='checked' /></td></tr><tr>
|
||||
<td align='left' class='info' colspan='2'>".get_lang($selection.'_info')."</td></tr>";
|
||||
}
|
||||
function exec_ogp_module()
|
||||
function exec_gsp_module()
|
||||
{
|
||||
global $db, $settings;
|
||||
global $view;
|
||||
|
|
@ -81,7 +81,7 @@ function exec_ogp_module()
|
|||
}
|
||||
foreach ( $remote_servers as $server )
|
||||
{
|
||||
if($server['remote_server_id'] == $rserver_id) $ogp_user = $server['ogp_user'];
|
||||
if($server['remote_server_id'] == $rserver_id) $gsp_user = $server['gsp_user'];
|
||||
}
|
||||
foreach ( $users as $user )
|
||||
{
|
||||
|
|
@ -90,7 +90,7 @@ function exec_ogp_module()
|
|||
$ftppassword = genRandomString(8);
|
||||
|
||||
// Game path logic
|
||||
$game_path = "/home/".$ogp_user."/OGP_User_Files/"; // Default
|
||||
$game_path = "/home/".$gsp_user."/GSP_User_Files/"; // Default
|
||||
|
||||
$skipId = false;
|
||||
if(hasValue($default_home_dir)){
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ function exec_gsp_module()
|
|||
$web_user = $web_user["users_login"];
|
||||
|
||||
// Game path logic
|
||||
$game_path = "/home/".$server_row['ogp_user']."/OGP_User_Files/"; // Default
|
||||
$game_path = "/home/".$server_row['gsp_user']."/GSP_User_Files/"; // Default
|
||||
|
||||
$skipId = false;
|
||||
if(hasValue($default_home_dir)){
|
||||
|
|
@ -179,7 +179,7 @@ function exec_gsp_module()
|
|||
$ft->add_field('string','new_home_name',htmlentities($server_row['home_name']));
|
||||
echo "<tr><td class='right'>".get_lang('clone_mods').":</td>
|
||||
<td class='left'><input type='checkbox' name='clone_mods' value='y' /></td></tr>";
|
||||
echo "<input name='user_group' type='hidden' value='".get_user_uid_gid_from_passwd($passwd_array,$server_row['ogp_user'])."' /></tr>";
|
||||
echo "<input name='user_group' type='hidden' value='".get_user_uid_gid_from_passwd($passwd_array,$server_row['gsp_user'])."' /></tr>";
|
||||
echo "</table>";
|
||||
$ft->add_button('submit','clone_home',get_lang('clone_home'));
|
||||
echo "<p class='info'>".get_lang('the_name_of_the_server_to_help_users_to_identify_it')."</p>";
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ function logHandling($home_id, $action = 'delete', &$remote){
|
|||
$fileId = str_pad($home_id, 9, '0', STR_PAD_LEFT);
|
||||
|
||||
$files = array(
|
||||
'screenlogs/screenlog.OGP_HOME_'.$fileId => 'file',
|
||||
'screenlogs/screenlog.OGP_UPDATE_'.$fileId => 'file',
|
||||
'screenlogs/screenlog.GSP_HOME_'.$fileId => 'file',
|
||||
'screenlogs/screenlog.GSP_UPDATE_'.$fileId => 'file',
|
||||
'screenlogs/home_id_'.$home_id.'/' => 'dir',
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
require_once("modules/config_games/server_config_parser.php");
|
||||
|
||||
function exec_ogp_module()
|
||||
function exec_gsp_module()
|
||||
{
|
||||
global $db;
|
||||
$isAdmin = $db->isAdmin( $_SESSION['user_id'] );
|
||||
|
|
@ -413,7 +413,7 @@ function exec_ogp_module()
|
|||
if ( $db->changeUserIdMain($home_id,$user_id_main) == TRUE )
|
||||
{
|
||||
$db->assignHomeTo("user",$user_id_main,$home_id,$old_home['access_rights']);
|
||||
$query="UPDATE `ogp_billing_orders` SET `user_id`=".$user_id_main." WHERE `home_id` = ".$home_id.";";
|
||||
$query="UPDATE `gsp_billing_orders` SET `user_id`=".$user_id_main." WHERE `home_id` = ".$home_id.";";
|
||||
$db->query($query);
|
||||
echo json_encode(array('result' => 'success', 'info' => get_lang("successfully_changed_game_server")));
|
||||
$db->logger( get_lang("successfully_changed_game_server") ." HOME ID:$home_id - ". get_lang("change_user_id_main") .":$user_id_main");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue