reverted the new updates
This commit is contained in:
parent
9c04036ac0
commit
49600d1cfd
5 changed files with 532 additions and 748 deletions
|
|
@ -36,15 +36,15 @@ function exec_ogp_module()
|
|||
list($home_id, $mod_id, $ip, $port) = explode("-", $_GET['home_id-mod_id-ip-port']);
|
||||
else
|
||||
{
|
||||
print_failure(sw_text('no_game_servers_assigned'));
|
||||
print_failure(get_lang('no_game_servers_assigned'));
|
||||
return;
|
||||
}
|
||||
|
||||
if(!isset($_POST['uninstall']))
|
||||
{
|
||||
echo "<ul>".
|
||||
"<li><a href='?m=steam_workshop&p=main&home_id-mod_id-ip-port=".$_GET['home_id-mod_id-ip-port']."'>".sw_text('install_mods')."</a></li>".
|
||||
"<li><a href='?m=gamemanager&p=game_monitor&home_id-mod_id-ip-port=".$_GET['home_id-mod_id-ip-port']."'>".sw_text('back')."</a></li>".
|
||||
"<li><a href='?m=steam_workshop&p=main&home_id-mod_id-ip-port=".$_GET['home_id-mod_id-ip-port']."'>".get_lang('install_mods')."</a></li>".
|
||||
"<li><a href='?m=gamemanager&p=game_monitor&home_id-mod_id-ip-port=".$_GET['home_id-mod_id-ip-port']."'>".get_lang('back')."</a></li>".
|
||||
"</ul>";
|
||||
}
|
||||
|
||||
|
|
@ -60,13 +60,13 @@ function exec_ogp_module()
|
|||
$server_xml = read_server_config(SERVER_CONFIG_LOCATION."/".$home_cfg['home_cfg_file']);
|
||||
if($server_xml === FALSE)
|
||||
{
|
||||
print_failure(sw_text('failed_reading_xml_file', SERVER_CONFIG_LOCATION."/".$home_cfg['home_cfg_file']));
|
||||
print_failure(get_lang_f('failed_reading_xml_file', SERVER_CONFIG_LOCATION."/".$home_cfg['home_cfg_file']));
|
||||
return;
|
||||
}
|
||||
|
||||
if(!isset($home_cfg['mods'][$mod_id]['mod_key']))
|
||||
{
|
||||
print_failure(sw_text('mod_id_does_not_exists_in_home', $mod_id, $home_id));
|
||||
print_failure(get_lang_f('mod_id_does_not_exists_in_home', $mod_id, $home_id));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ function exec_ogp_module()
|
|||
|
||||
if (!$mod_xml)
|
||||
{
|
||||
print_failure(sw_text('mod_key_not_found_from_xml', $modkey));
|
||||
print_failure(get_lang_f('mod_key_not_found_from_xml', $modkey));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ function exec_ogp_module()
|
|||
|
||||
if(!isset($matches[1]))
|
||||
{
|
||||
print_failure(sw_text('unable_to_get_os_from_game_key', $home_cfg['game_key']));
|
||||
print_failure(get_lang_f('unable_to_get_os_from_game_key', $home_cfg['game_key']));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ function exec_ogp_module()
|
|||
|
||||
if(!isset($os))
|
||||
{
|
||||
print_failure(sw_text('unable_to_get_os_from_game_key', $home_cfg['game_key']));
|
||||
print_failure(get_lang_f('unable_to_get_os_from_game_key', $home_cfg['game_key']));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ function exec_ogp_module()
|
|||
|
||||
if(!file_exists($xml_file))
|
||||
{
|
||||
print_failure(sw_text('no_workshop_configuration_available_for_this_game'));
|
||||
print_failure(get_lang('no_workshop_configuration_available_for_this_game'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ function exec_ogp_module()
|
|||
|
||||
if ( @$dom->load($xml_file) === FALSE )
|
||||
{
|
||||
print_failure(sw_text('workshop_configuration_file_has_bad_format'));
|
||||
print_failure(get_lang('workshop_configuration_file_has_bad_format'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ function exec_ogp_module()
|
|||
|
||||
if($remote->status_chk() !== 1)
|
||||
{
|
||||
print_failure(sw_text('remote_server_offline'));
|
||||
print_failure(get_lang('remote_server_offline'));
|
||||
}
|
||||
|
||||
if(isset($_POST['uninstall']) and isset($_POST['mod_string']))
|
||||
|
|
@ -134,10 +134,10 @@ function exec_ogp_module()
|
|||
if($result !== FALSE)
|
||||
$output .= $result."\n";
|
||||
else
|
||||
$output .= sw_text('failed_uninstalling_mod', $mod_string)."\n";
|
||||
$output .= get_lang_f('failed_uninstalling_mod', $mod_string)."\n";
|
||||
}
|
||||
echo "<pre>$output</pre>";
|
||||
echo "<a href='?m=steam_workshop&p=uninstall&home_id-mod_id-ip-port=".$_GET['home_id-mod_id-ip-port']."'>".sw_text('back')."</a>";
|
||||
echo "<a href='?m=steam_workshop&p=uninstall&home_id-mod_id-ip-port=".$_GET['home_id-mod_id-ip-port']."'>".get_lang('back')."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -153,25 +153,25 @@ function exec_ogp_module()
|
|||
echo "<input type='checkbox' id='select_mod_$mod_id' name='mod_string[]' value='$mod_id'><label for='select_mod_$mod_id'>$mod_name</label><br>";
|
||||
echo '</div></td></tr>';
|
||||
$ft->end_table();
|
||||
$ft->add_button("submit", "uninstall", sw_text('uninstall_mods'));
|
||||
$ft->add_button("submit", "uninstall", get_lang('uninstall_mods'));
|
||||
$ft->end_form();
|
||||
}
|
||||
else
|
||||
{
|
||||
print_failure(sw_text('there_are_no_mods_installed_on_this_game_server'));
|
||||
print_failure(get_lang('there_are_no_mods_installed_on_this_game_server'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print_failure(sw_text('workshop_configuration_file_has_bad_format'));
|
||||
print_failure(get_lang('workshop_configuration_file_has_bad_format'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print_failure(sw_text('game_home_not_found'));
|
||||
print_failure(get_lang('game_home_not_found'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue