} else { $output .= $lgsl_config['text']['aan']; } $output .= "\n <br />\n <br />\n </div>\n\n <div>\n <br />\n </div>"; return; } } //-----------------------------------------------------------------------------------------------------------+ $server = lgsl_query_live($type, $ip, $c_port, $q_port, $s_port, "s"); $server = lgsl_server_html($server); if (!$server['b']['status']) { $output .= "\n <div style='text-align:center;" . lgsl_bg() . "'>\n <br />\n {$lgsl_config['text']['anr']}\n <br />\n <br />\n </div>\n\n <div>\n <br />\n </div>"; return; } //-----------------------------------------------------------------------------------------------------------+ if (!empty($_POST['lgsl_submit_add'])) { $disabled = $lgsl_config['public_add'] == "2" ? "0" : "1"; $mysql_query = "INSERT INTO `{$lgsl_config['db']['prefix']}{$lgsl_config['db']['table']}` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`disabled`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','{$disabled}','','')"; $mysql_result = mysql_query($mysql_query) or die(mysql_error()); $output .= "\n <div style='text-align:center;" . lgsl_bg() . "'>\n <br />"; if ($disabled) { $output .= $lgsl_config['text']['ada']; } else { $output .= $lgsl_config['text']['adn']; } $output .= "\n <br />\n <br />\n </div>\n\n <div>\n <br />\n </div>"; return; } //-----------------------------------------------------------------------------------------------------------+ $output .= "\n <form method='post' action=''>\n <div style='text-align:center;" . lgsl_bg() . "'>\n <br />\n {$lgsl_config['text']['asc']}\n <br />\n <br />\n </div>\n\n <div>\n <br />\n </div>\n\n <table cellpadding='4' cellspacing='2' style='margin:auto; text-align:left'>\n <tr style='" . lgsl_bg() . "'> <td> <b> Name: </b> </td> <td style='white-space:nowrap'> {$server['s']['name']} </td> </tr>\n <tr style='" . lgsl_bg() . "'> <td> <b> {$lgsl_config['text']['gme']} </b> </td> <td style='white-space:nowrap'> {$server['s']['game']} </td> </tr>\n <tr style='" . lgsl_bg() . "'> <td> <b> {$lgsl_config['text']['map']} </b> </td> <td style='white-space:nowrap'> {$server['s']['map']} </td> </tr>\n <tr style='" . lgsl_bg() . "'> <td> <b> {$lgsl_config['text']['plr']} </b> </td> <td style='white-space:nowrap'> {$server['s']['players']} / {$server['s']['playersmax']} </td> </tr>\n </table>\n\n <div>\n <br />\n </div>\n\n <div style='text-align:center;" . lgsl_bg() . "'>\n <br />\n <input type='hidden' name='form_type' value='" . lgsl_string_html($type) . "' />\n <input type='hidden' name='form_ip' value='" . lgsl_string_html($ip) . "' />\n <input type='hidden' name='form_c_port' value='" . lgsl_string_html($c_port) . "' />\n <input type='hidden' name='form_q_port' value='" . lgsl_string_html($q_port) . "' />\n <input type='submit' name='lgsl_submit_add' value='{$lgsl_config['text']['aas']}' />\n <br />\n <br />\n </div>\n\n <div>\n <br />\n </div>\n\n </form>"; //------------------------------------------------------------------------------------------------------------+
foreach ($server['p'] as $player_key => $player) { $output .= "\r\n <tr style='" . lgsl_bg() . "'>"; foreach ($fields as $field) { $output .= "<td> {$player[$field]} </td>"; } $output .= "\r\n </tr>"; } $output .= "\r\n </table>"; } $output .= "\r\n </div>"; //------------------------------------------------------------------------------------------------------------+ $output .= "\r\n <div style='height:10px'><br /></div>\r\n <div style='" . lgsl_bg(TRUE) . "; width:90%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>\r\n <div style='height:20px'><br /></div>"; //------------------------------------------------------------------------------------------------------------+ // SHOW THE SETTINGS if (empty($server['e']) || !is_array($server['e'])) { $output .= "\r\n <table cellpadding='4' cellspacing='2' style='margin:auto'>\r\n <tr style='" . lgsl_bg(FALSE) . "'>\r\n <td> {$lgsl_config['text']['nei']} </td>\r\n </tr>\r\n </table>"; } else { $output .= "\r\n <table cellpadding='4' cellspacing='2' style='margin:auto'>\r\n <tr style='" . lgsl_bg(FALSE) . "'>\r\n <td> <b>{$lgsl_config['text']['ehs']}</b> </td>\r\n <td> <b>{$lgsl_config['text']['ehv']}</b> </td>\r\n </tr>"; foreach ($server['e'] as $field => $value) { $color = lgsl_bg(); $output .= "\r\n <tr>\r\n <td style='{$color}'> {$field} </td>\r\n <td style='{$color}'> {$value} </td>\r\n </tr>"; } $output .= "\r\n </table>"; } //------------------------------------------------------------------------------------------------------------+ $output .= "\r\n <div style='height:10px'><br /></div>\r\n <div style='" . lgsl_bg(TRUE) . "; width:90%; margin:auto; text-align:center; height:6px; border:1px solid'><br /></div>\r\n <div style='height:20px'><br /></div>"; $output .= "\r\n </div>"; //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ //------ PLEASE MAKE A DONATION OR SIGN THE GUESTBOOK AT GREYCUBE.COM IF YOU REMOVE THIS CREDIT ----------------------------------------------------------------------------------------------------+ $output .= "<div style='text-align:center; font-family:tahoma; font-size:9px'><br /><br /><br /><a href='http://www.greycube.com' style='text-decoration:none'>" . lgsl_version() . "</a><br /></div>"; //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| | | [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ] | | | | Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org) | | | \-----------------------------------------------------------------------------------------------------------*/ //------------------------------------------------------------------------------------------------------------+ require "lgsl_class.php"; $server_list = lgsl_query_group(); $server_list = lgsl_sort_servers($server_list); //------------------------------------------------------------------------------------------------------------+ $output .= "\r\n <div style='text-align:center'>\r\n <table style='margin:auto' cellpadding='4' cellspacing='2'>"; foreach ($server_list as $server) { $misc = lgsl_server_misc($server); $server = lgsl_server_html($server); $output .= "\r\n <tr style='" . lgsl_bg() . "; table-layout:fixed'>\r\n\r\n <td style='white-space:nowrap; text-align:center'>\r\n <img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' style='vertical-align:middle' />\r\n <img alt='' src='{$misc['icon_game']}' title='{$misc['text_type_game']}' style='vertical-align:middle' />\r\n </td>\r\n\r\n <td title='{$lgsl_config['text']['slk']}' style='text-align:right'>\r\n <a href='{$misc['software_link']}' style='text-decoration:none'>\r\n {$server['b']['ip']}:{$server['b']['c_port']}\r\n </a>\r\n </td>\r\n\r\n <td title='{$server['s']['name']}' style='text-align:left'>\r\n <div style='width:100%; overflow:hidden; height:1.3em; line-height:1.3em'>\r\n {$misc['name_filtered']}\r\n </div>\r\n </td>\r\n\r\n <td style='white-space:nowrap; text-align:left'>\r\n {$server['s']['map']}\r\n </td>\r\n\r\n <td style='white-space:nowrap; text-align:right'>\r\n {$server['s']['players']} / {$server['s']['playersmax']}\r\n </td>\r\n\r\n <td style='white-space:nowrap; text-align:center'>"; if ($lgsl_config['locations']) { $output .= "\r\n <a href='" . lgsl_location_link($server['o']['location']) . "' style='text-decoration:none'>\r\n <img alt='' src='{$misc['icon_location']}' title='{$misc['text_location']}' style='vertical-align:middle; border:none' />\r\n </a>"; } $output .= "\r\n <a href='" . lgsl_link($server['o']['id']) . "' style='text-decoration:none'>\r\n <img alt='' src='{$misc['icon_details']}' title='{$lgsl_config['text']['vsd']}' style='vertical-align:middle; border:none' />\r\n </a>\r\n </td>\r\n\r\n </tr>"; } $output .= "\r\n </table>\r\n </div>"; //------------------------------------------------------------------------------------------------------------+ if ($lgsl_config['list']['totals']) { $total = lgsl_group_totals($server_list); $output .= "\r\n <div>\r\n <br />\r\n </div>\r\n <div style='text-align:center'>\r\n <table style='margin:auto' cellpadding='4' cellspacing='2'>\r\n <tr style='" . lgsl_bg() . "'>\r\n <td> {$lgsl_config['text']['tns']} {$total['servers']} </td>\r\n <td> {$lgsl_config['text']['tnp']} {$total['players']} </td>\r\n <td> {$lgsl_config['text']['tmp']} {$total['playersmax']} </td>\r\n </tr>\r\n </table>\r\n </div>"; } //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ //------ PLEASE MAKE A DONATION OR SIGN THE GUESTBOOK AT GREYCUBE.COM IF YOU REMOVE THIS CREDIT ----------------------------------------------------------------------------------------------------+ $output .= "<div style='text-align:center; font-family:tahoma; font-size:9px'><br /><br /><br /><a href='http://www.greycube.com' style='text-decoration:none'>" . lgsl_version() . "</a><br /></div>"; //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+