Revert "Complete rebrand from Open Game Panel (OGP) to GameServer Panel (GSP)"
This commit is contained in:
parent
02c94766c6
commit
deee7d6ac5
308 changed files with 1412 additions and 1412 deletions
|
|
@ -4,14 +4,14 @@
|
|||
*/
|
||||
|
||||
require_once('includes/lib_remote.php');
|
||||
function exec_gsp_module() {
|
||||
function exec_ogp_module() {
|
||||
|
||||
global $view;
|
||||
global $db;
|
||||
echo "<h2>". get_lang("restart") ."</h2>";
|
||||
$rhost_id = @$_REQUEST['rhost_id'];
|
||||
$remote_server = $db->getRemoteServer($rhost_id);
|
||||
$remote = new GSPRemoteLibrary($remote_server['agent_ip'], $remote_server['agent_port'], $remote_server['encryption_key'], $remote_server['timeout']);
|
||||
$remote = new OGPRemoteLibrary($remote_server['agent_ip'], $remote_server['agent_port'], $remote_server['encryption_key'], $remote_server['timeout']);
|
||||
|
||||
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ function exec_gsp_module() {
|
|||
{
|
||||
$remote->remote_readfile( "screenlogs/screenlog.agent_restart", $restart_log );
|
||||
echo "<pre class='log'><xmp>".$restart_log."</xmp></pre>";
|
||||
$remote->remote_readfile( "screenlogs/screenlog.gsp_agent", $agent_log );
|
||||
$remote->remote_readfile( "screenlogs/screenlog.ogp_agent", $agent_log );
|
||||
if($agent_log == "")
|
||||
{
|
||||
$view->refresh("?m=server&p=restart&rhost_id=".$rhost_id."&refresh",5);
|
||||
|
|
@ -54,7 +54,7 @@ function exec_gsp_module() {
|
|||
} else if($_POST['re_check'] == "yes") {
|
||||
// Confirmed... so restart the agent
|
||||
$remote->exec( "if [ -e 'screenlogs/screenlog.agent_restart' ]; then rm -f 'screenlogs/screenlog.agent_restart'; fi && ".
|
||||
"if [ -e 'screenlogs/screenlog.gsp_agent' ]; then rm -f 'screenlogs/screenlog.gsp_agent'; fi" );
|
||||
"if [ -e 'screenlogs/screenlog.ogp_agent' ]; then rm -f 'screenlogs/screenlog.ogp_agent'; fi" );
|
||||
$file_info = $remote->agent_restart();
|
||||
// 5 seconds should be enough for the agent to come back up
|
||||
echo get_lang("restarting"); # "Restarting agent... Please wait."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue