isAdmin($_SESSION['user_id']); $attributesString = ""; foreach ($param->attribute as $attribute) $attributesString .= $attribute['key']. "='$attribute' "; $disabledString = ((($param_access_enabled) && (!property_exists($param, 'access') || $param->access != "admin")) || $isAdmin) ? "" : "disabled "; if (array_key_exists((string)$param['key'], $last_param)) $paramValue = (string)$last_param[(string)$param['key']]; else $paramValue = (string)$param->default; $idString = "id='".clean_id_string($param['key'])."'"; $nameString = "name='params[".$param['key']."]'"; $paramType = $param['type']; if ($paramType == "select") { $inputElementString = ""; }else if($paramType == "other_game_server_path" || $paramType == "other_game_server_path_additional"){ if($isAdmin){ $dbTypeHomesStr = "admin"; }else{ $dbTypeHomesStr = "user_and_group"; } // Get homes $homes = $db->getHomesFor($dbTypeHomesStr, $_SESSION['user_id']); // Move current home_id home_path to the front of the array so that it is selected by default if no other option has been selected. $homes = customShift($homes, "home_id", $home_id); $inputElementString = ""; if($paramType == "other_game_server_path_additional"){ $inputElementString .=""; } }else{ if ($paramType == "checkbox_key_value") { if ($paramValue) // convert the XML object to string $attributesString .= "checked='checked' "; $paramValue = $param['key']; $paramType = "checkbox"; } else if ($paramType == "checkbox") { if ($paramValue) // convert the XML object to string $attributesString .= "checked='checked' "; } $inputElementString = ""; } echo "
". get_lang("assign_game_homes") ."
"; } return; } ?> $value) { if( preg_match( "/^action/", $key ) ) { list($action,$home_id,$mod_id,$ip,$port) = explode("-", $value); exec_operation( $action, $home_id, $mod_id, $ip, $port ); } } if ( empty( $_GET['home_id-mod_id-ip-port'] ) ) unset( $_GET['home_id-mod_id-ip-port'] ); if ( empty( $_GET['home_id'] ) ) unset( $_GET['home_id'] ); if ( isset($_GET['home_cfg_id']) and $_GET['home_cfg_id'] == get_lang('game_type') ) unset( $_GET['home_cfg_id'] ); create_home_selector_game_type($_GET['m'], $_GET['p'], $show_games_type); if (!isset($_GET['home_id-mod_id-ip-port']) and !isset($_GET['home_id']) and !isset($_GET['home_cfg_id'])) { create_home_selector_address($_GET['m'], $_GET['p'], $server_homes); $show_all = TRUE; } else { create_home_selector_address($_GET['m'], $_GET['p'], $server_homes); create_home_selector($_GET['m'], $_GET['p'], "show_all"); $show_all = FALSE; } require("protocol/lgsl/lgsl_protocol.php"); $info = $db->getUserById($_SESSION['user_id']); if($info['user_expires'] != "X") { ?>| ". "\t | ". "\t | " . get_lang("server_id") . " | ". "\t" . get_lang("server_name") . " | ". "\t" . get_lang("address") . " | ". "\t" . get_lang("owner") . " | ". "\t".
"\t\t" . get_lang("operations") . "".
"\t\t ".
"\t\t ".
"\t\t ".
"\t | ".
"
|---|---|---|---|---|---|---|
$order" . " " . " | ";
$first .= "" . "$mod | ";
$first .= "";
$first .= "" . htmlentities($server_home['home_name']) . "$mod_name | "; $first .= "" . $address . " | "; $first .= "" . $user['users_login'] . " | "; $first .= "$ctrlChkBoxes | "; $first .= "|
| " . $refresh->getdiv($pos,"width:100%;") . "$offlineT | "; $second .= "$other_owners$groupsus | "; if( $server_xml->protocol != "teamspeak3" OR ($startup_file_exists and $server_xml->protocol == "teamspeak3") OR ($status == "offline" and $server_xml->protocol == "teamspeak3") ) @$second .= "" . trim($btns) . trim($ts3opt) . "$expiration_dates | ";
else
$second .= "$ts3opt | "; $second .= "|||
". get_lang("statistics") .": $stats_servers_online/$stats_servers ". get_lang("servers") ."\n
\n
|
||||||