Ver Fonte

Minecraft Updates

own3mall há 5 anos atrás
pai
commit
415a5701b7
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      includes/lib_remote.php
  2. 1 1
      modules/gamemanager/monitor_buttons.php

+ 1 - 1
includes/lib_remote.php

@@ -213,7 +213,7 @@ class OGPRemoteLibrary
 	/// \return 1 On success.
 
 	public function remote_send_rcon_command($home_id, $server_ip,
-		$server_port, $control_protocol, $control_password, $control_type, $rconCommand,&$data)
+		$server_port, $control_protocol, $control_password, $control_type, $rconCommand, $home_path, &$data)
 	{
 		$params_array = $this->encrypt_params($home_id,$server_ip,$server_port,
 			$control_protocol,$control_password,$control_type, $rconCommand);

+ 1 - 1
modules/gamemanager/monitor_buttons.php

@@ -92,7 +92,7 @@ if (preg_match("/u/",$server_home['access_rights']))
 
 if($_SESSION['users_role'] == "admin")
 {
-	if ( ( $server_xml->control_protocol and preg_match("/^(rcon|lcon|rcon2|armabe|minecraft)$/" ,$server_xml->control_protocol) ) OR 
+	if ( ( $server_xml->control_protocol and preg_match("/^(rcon|lcon|rcon2|armabe)$/" ,$server_xml->control_protocol) ) OR 
 		 ( $server_xml->gameq_query_name and $server_xml->gameq_query_name == 'minecraft' ) )
 	{
 		$module_buttons[] = "<a class='monitorbutton' href='home.php?m=gamemanager&amp;p=rcon_presets&amp;home_id=".$server_home['home_id']."&amp;mod_id=".$server_home['mod_id']."'>