From 43467e1644506bbb03e813f2e81a0d64812c42f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 18 May 2026 22:23:57 +0000 Subject: [PATCH] fix(cron): replace deprecated PHP variable interpolation syntax Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/8ae3bc81-3ffe-4b36-8c29-889fd220ffec Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- Panel/modules/cron/shared_cron_functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Panel/modules/cron/shared_cron_functions.php b/Panel/modules/cron/shared_cron_functions.php index 45f7d543..e07df7cc 100644 --- a/Panel/modules/cron/shared_cron_functions.php +++ b/Panel/modules/cron/shared_cron_functions.php @@ -137,17 +137,17 @@ function build_cron_scheduler_command($panelURL, $token, $game_home, $action) { $options['restart_delay_seconds'] = 60; } $options_json = urlencode(json_encode($options)); - return "wget -qO- \"${panelURL}/ogp_api.php?server_content/run_scheduled_action&token=${token}&home_id=${home_id}&action=${action}&options=${options_json}\" --no-check-certificate > /dev/null 2>&1"; + return "wget -qO- \"{$panelURL}/ogp_api.php?server_content/run_scheduled_action&token={$token}&home_id={$home_id}&action={$action}&options={$options_json}\" --no-check-certificate > /dev/null 2>&1"; } switch ($action) { case "stop": - return "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"; + return "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"; case "start": - return "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"; + return "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"; case "restart": - return "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"; + return "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"; case "steam_auto_update": - return "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"; + return "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"; } return false; }