|
|
@@ -381,13 +381,13 @@ class OGPRemoteLibrary
|
|
|
$home_id, $home_path, $server_ip, $server_port, $exec_path, $exec_folder_path,
|
|
|
$control_protocol, $control_password, $control_type,
|
|
|
$appId, $modname, $betaname, $betapwd, $user, $pass, $guard, $precmd, $postcmd, $cfg_os, $filesToLockUnlock,
|
|
|
- $startup_cmd, $cpu, $nice, $preStart, $envVars
|
|
|
+ $startup_cmd, $cpu, $nice, $preStart, $envVars, $game_key
|
|
|
)
|
|
|
{
|
|
|
$params = $this->encrypt_params($home_id, $home_path, $server_ip, $server_port, $exec_path, $exec_folder_path,
|
|
|
$control_protocol, $control_password, $control_type,
|
|
|
$appId, $modname, $betaname, $betapwd, $user, $pass, $guard, $precmd, $postcmd, $cfg_os, $filesToLockUnlock,
|
|
|
- $startup_cmd, $cpu, $nice, $preStart, $envVars);
|
|
|
+ $startup_cmd, $cpu, $nice, $preStart, $envVars, $game_key);
|
|
|
|
|
|
$this->add_enc_chk($params);
|
|
|
$request = xmlrpc_encode_request("automatic_steam_update", $params);
|
|
|
@@ -576,10 +576,10 @@ class OGPRemoteLibrary
|
|
|
/// \return -2 In other errors.
|
|
|
/// \todo Other return values?
|
|
|
public function universal_start($home_id, $game_home, $game_binary, $run_dir, $startup_cmd,
|
|
|
- $server_port, $server_ip, $cpu, $nice, $preStart = "", $envVars = "")
|
|
|
+ $server_port, $server_ip, $cpu, $nice, $preStart, $envVars, $game_key)
|
|
|
{
|
|
|
$params_array = $this->encrypt_params($home_id, $game_home, $game_binary,
|
|
|
- $run_dir, $startup_cmd, $server_port, $server_ip, $cpu, $nice, $preStart, $envVars);
|
|
|
+ $run_dir, $startup_cmd, $server_port, $server_ip, $cpu, $nice, $preStart, $envVars, $game_key);
|
|
|
$this->add_enc_chk($params_array);
|
|
|
$request = xmlrpc_encode_request("universal_start", $params_array);
|
|
|
$response = $this->sendRequest($request);
|
|
|
@@ -723,11 +723,11 @@ class OGPRemoteLibrary
|
|
|
|
|
|
public function remote_restart_server($home_id,$server_ip,$server_port,
|
|
|
$control_protocol,$control_password,$control_type,
|
|
|
- $home_path,$server_exe,$run_dir,$cmd,$cpu,$nice,$preStart = "", $envVars = "")
|
|
|
+ $home_path,$server_exe,$run_dir,$cmd,$cpu,$nice,$preStart, $envVars, $game_key)
|
|
|
{
|
|
|
$params_array = $this->encrypt_params($home_id,$server_ip,$server_port,
|
|
|
$control_protocol,$control_password,$control_type,
|
|
|
- $home_path,$server_exe,$run_dir,$cmd,$cpu,$nice,$preStart,$envVars);
|
|
|
+ $home_path,$server_exe,$run_dir,$cmd,$cpu,$nice,$preStart,$envVars, $game_key);
|
|
|
$this->add_enc_chk($params_array);
|
|
|
$request = xmlrpc_encode_request("restart_server", $params_array);
|
|
|
|
|
|
@@ -1105,4 +1105,4 @@ class OGPRemoteLibrary
|
|
|
return base64_decode($response);
|
|
|
}
|
|
|
}
|
|
|
-?>
|
|
|
+?>
|