Merge pull request #112 from GameServerPanel/copilot/fix-string-interpolation-remove-steam-workshop

This commit is contained in:
Frank Harris 2026-05-04 06:12:34 -07:00 committed by GitHub
commit e799f5ee5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View file

@ -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);

View file

@ -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();

View file

@ -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 . "'>

View file

@ -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>