Merge pull request #112 from GameServerPanel/copilot/fix-string-interpolation-remove-steam-workshop
This commit is contained in:
commit
e799f5ee5d
4 changed files with 7 additions and 7 deletions
|
|
@ -250,16 +250,16 @@ function updateCronJobsToNewApi()
|
|||
|
||||
switch ($action) {
|
||||
case "stopServer":
|
||||
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/stop&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
|
||||
$command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/stop&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}\" --no-check-certificate > /dev/null 2>&1";
|
||||
break;
|
||||
case "startServer":
|
||||
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/start&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
|
||||
$command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/start&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}\" --no-check-certificate > /dev/null 2>&1";
|
||||
break;
|
||||
case "restartServer":
|
||||
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/restart&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1";
|
||||
$command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/restart&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}\" --no-check-certificate > /dev/null 2>&1";
|
||||
break;
|
||||
case "autoUpdateSteamHome":
|
||||
$command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/update&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}&type=steam\" --no-check-certificate > /dev/null 2>&1";
|
||||
$command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/update&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}&type=steam\" --no-check-certificate > /dev/null 2>&1";
|
||||
break;
|
||||
}
|
||||
list($minute,$hour,$dayOfTheMonth,$month,$dayOfTheWeek,$old_command) = explode(" ", $job, 6);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
*/
|
||||
// Module general information
|
||||
$module_title = "Steam Workshop";
|
||||
$module_version = "2.1";
|
||||
$module_version = "2.2";
|
||||
$db_version = 1;
|
||||
$module_required = TRUE;
|
||||
$module_menus = array();
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ if (isset($server_xml) && isset($server_home['home_id']))
|
|||
$label = 'Steam Workshop';
|
||||
}
|
||||
|
||||
$href = "?m=steam_workshop&p=main&action=edit&home_id=" . $homeId;
|
||||
$href = "?m=steam_workshop&p=server_mods&action=edit&home_id=" . $homeId;
|
||||
$module_buttons = array(
|
||||
"<a class='monitorbutton' href='" . $href . "'>
|
||||
<img src='" . check_theme_image("images/steam_workshop.png") . "' title='" . $label . "'>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<navigation>
|
||||
<page key="main" file="main.php" access="admin" />
|
||||
<page key="server_mods" file="main.php" access="admin" />
|
||||
<page key="uninstall" file="uninstall.php" access="admin" />
|
||||
<page key="workshop_admin" file="workshop_admin.php" access="admin" />
|
||||
</navigation>
|
||||
Loading…
Add table
Add a link
Reference in a new issue