public function testRconShortSourceServer() { $server = new SourceServer(new InetAddress("127.0.0.1")); $server->rconAuth("test"); $rconReply = $server->rconExec("version"); echo "{$rconReply}\n"; $this->assertTrue(strpos($rconReply, "Protocol version") !== false && strpos($rconReply, "Exe version") !== false && strpos($rconReply, "Exe build") !== false, "Did not receive correct version response."); }
public function send($cmd) { if ($this->server != null) { if ($this->status) { try { return $this->server->rconExec($cmd); } catch (\Exception $e) { Logger::error("Error while doing {$cmd} " . $e->getMessage()); return false; } } } return false; }
public function testRandomSourceServer() { $masterServer = new MasterServer(MasterServer::SOURCE_MASTER_SERVER); $serverArray = $masterServer->getServers(MasterServer::REGION_ALL, "\\type\\d\\empty\\1\\full\\1\\gamedir\\tf"); $serverAddress = $serverArray[array_rand($serverArray)]; $server = new SourceServer(new InetAddress($serverAddress[0]), $serverAddress[1]); $server->initialize(); $server->updatePlayerInfo(); $server->updateRulesInfo(); $this->assertNotNull($server->getPing()); $this->assertNotNull($server->getPlayers()); $this->assertNotNull($server->getRules()); $this->assertNotNull($server->getServerInfo()); echo $server; }
protected function queryServer($server, &$response) { $error_level = error_reporting(E_ALL & ~E_USER_NOTICE); $lib_path = gameservers_get_path_library('steam-condenser') . '/lib'; set_include_path(get_include_path() . PATH_SEPARATOR . $lib_path); require_once 'steam/servers/SourceServer.php'; try { $config = $server->config['query']; if ($config['gametype'] == 'goldsrc') { $server = new GoldSrcServer(new InetAddress($server->hostname), $server->port); } else { $server = new SourceServer(new InetAddress($server->hostname), $server->port); } $server->initialize(); $response['raw'] = array('server' => $server->getServerInfo(), 'players' => $server->getPlayers(), 'rules' => $server->getRules(), 'ping' => $server->getPing()); $response['address'] = $server->hostname; $response['port'] = $response['raw']['server']['serverPort']; $response['online'] = $response['raw']['ping'] ? TRUE : FALSE; $response['protocol'] = $config['gametype']; $response['game'] = $response['raw']['server']['gameDir']; $response['servername'] = $response['raw']['server']['serverName']; $response['mapname'] = $response['raw']['server']['mapName']; $response['numplayers'] = $response['raw']['server']['playerNumber']; $response['maxplayers'] = $response['raw']['server']['maxPlayers']; $response['extra'] = $server->getRules(); foreach ($server->getPlayers() as $steam_player) { $player = new stdClass(); $player->name = check_plain($steam_player->getName()); $player->score = $steam_player->getScore(); $player->time = $steam_player->getConnectTime(); $response['players'][] = $player; } } catch (Exception $ex) { drupal_set_message($ex->__toString(), 'error'); } error_reporting($error_level); return TRUE; }
include "lib/functions.php"; require_once 'lib/steam-condenser/lib/steam-condenser.php'; error_reporting(E_ALL); //} no error will slip past unnoticed ini_set("display_errors", 1); mysql_connect($host, $user, $pass) or die(mysql_error()); mysql_select_db($table) or die(mysql_error()); if (!isset($_GET['serverid'])) { die("Server not set."); } if (isset($_GET['command'])) { $settings = getsettings(); $servercfg = getserver($_GET['serverid']); $servercfg = $servercfg['0']; $serverIP = $servercfg['ip']; $server = new SourceServer($serverIP, $servercfg['port']); try { $server->rconAuth($servercfg['rconpass']); } catch (Exception $e) { $output = "> Unable to connect to Server"; } if (empty($output)) { try { $output = $server->rconExec($_GET['command']); } catch (Exception $e) { $output = "> Server not Responding"; } } if (isset($_GET['init'])) { $output = explode("\n\n", $output); $output = $output[0] . "\n";
require_once 'lib/steam-condenser/lib/steam-condenser.php'; mysql_connect($host, $user, $pass) or die(mysql_error()); mysql_select_db($table) or die(mysql_error()); $settings = getsettings(); error_reporting(E_ERROR); ini_set("display_errors", 1); $serverid = $_GET['serverid']; $result = mysql_query("SELECT * from servers where serverid={$serverid}") or die(mysql_error()); while ($row = mysql_fetch_array($result)) { $portNumber = $row['port']; $ip = $row['ip']; $rconpass = $row['rconpass']; $servername = $row['servername']; } $ipAddress = $ip; $server = new SourceServer($ipAddress, $portNumber); try { $server->rconAuth($rconpass); } catch (Exception $e) { echo 'Server unreachable.'; exit; } if ($_GET['maps'] == "changelevel") { try { $server->rconExec("changelevel " . $_GET['map']); } catch (Exception $e) { } $result = mysql_query("UPDATE servers SET currentmap = '" . $_GET['map'] . "' WHERE serverid = '{$serverid}'") or die(mysql_error()); header("Location: servers.php"); die; }
$ip = $_POST["ip"]; $port = $_POST["port"]; $rconpass = $_POST["rconpass"]; $servername = $_POST["servername"]; $type = $_POST["type"]; $network = $_POST["network"]; $version = $_POST["version"]; $os = $_POST["os"]; if ($status == "verify") { if (empty($ip) or empty($port) or empty($rconpass)) { echo '<b>Please go back and provide all the needed data.<br />'; bottom($start); die; } // require_once('scripts/source_query.php'); $server = new SourceServer($ip, $port); try { $server->rconAuth('$rconpass'); } catch (RCONNoAuthException $e) { trigger_error('Could not authenticate with the game server.', E_USER_ERROR); bottom($start); die; } $server->rconExec('status'); $info = $server->GetInfo(); if (!$info['name']) { echo '<b> There is an error with the information you supplied, please go back and verify.</b>'; bottom($start); die; } echo '<b>Network version:</b> ' . $info['net_ver'] . '<br />';
function renewserver($server, $cmd = false) { $settings = getsettings(); if ($settings['usegrowl']['config'] == 'yes') { require_once 'lib/growl/class.growl.php'; $growlip = $settings['growlip']['config']; $growlpass = $settings['growlpass']['config']; } if ($settings['usetwitter']['config'] == 'yes') { require_once 'lib/twitter/twitter.php'; $consumerkey = $settings['consumerkey']['config']; $consumersecret = $settings['consumersecret']['config']; $OAuthToken = $settings['OAuthToken']['config']; $OAuthTokenSecret = $settings['OAuthTokenSecret']['config']; $twitter = new Twitter("{$consumerkey}", "{$consumersecret}"); $twitter->setOAuthToken("{$OAuthToken}"); $twitter->setOAuthTokenSecret("{$OAuthTokenSecret}"); } if ($settings['useboxcar']['config'] == 'yes') { require_once 'lib/boxcar/boxcar_api.php'; $boxemail = $settings['boxemail']['config']; } $gametypes = gametypes(); if ($server == "all") { $server = '%'; } //if (!$cmd == 'true') { $game = $_GET[ 'game' ];} //else { $game = '%'; } $fails = array(); $result = mysql_query_trace("SELECT * from servers where serverid like '{$server}' and type like '" . $_GET['game'] . "'") or die(mysql_error()); while ($row = mysql_fetch_array($result)) { foreach ($row as $key => $value) { ${$key} = $value; } $info = ""; $serverIP = $ip; $server = new SourceServer($serverIP, $port); try { $info = $server->getServerInfo(); $rules = $server->getRules(); print $rules['sv_registration_succesful']; } catch (Exception $e) { // $fails[] = $serverid; // no longer needed, since we just want it to continue } if ($info && $info['serverName']) { $network = $info['networkVersion']; $version = $info['gameVersion']; $servername = trim($info['serverName']); $type = $info['gameDir']; $os = $info['operatingSystem']; $map = $info['mapName']; $pwpro = $info['passwordProtected']; $nplayers = $info['numberOfPlayers']; $mplayers = $info['maxPlayers']; $bots = $info['botNumber']; $protected = $info['passwordProtected']; $servertags = $info['serverTags']; if ($replaymatch == "yes") { try { $server->rconAuth($rconpass); $matchid = $server->rconExec('steamworks_sessionid_server'); } catch (Exception $e) { echo $e; } $pattern = '([0-9][0-9][0-9]+)'; preg_match($pattern, $matchid, $matches); if ($matches[0]) { mysql_query_trace("INSERT INTO matchids ( serverid, mapname, sessionid ) VALUES( '{$serverid}','{$map}','{$matches['0']}' )"); } } if ($retries > "9") { if ($settings['useemail']['config'] == 'yes') { $subject = "{$servername} seems to be back up after it was down for {$retries}, which is in minutes"; $message = "Like the topic says, {$servername} seems to be back up after it was down for {$retries}"; $smtpmails = $settings['emailalert']['config']; $allmails = explode(",", $smtpmails); foreach ($allmails as $sendto) { mail($sendto, $subject, $message, null); } } if ($settings['usegrowl']['config'] == 'yes') { $growl = new Growl(); //$growl->setAddress($growlip, $growlpass); $connection = array('address' => '$growlip', 'password' => '$growlpass'); $growl->notify($connection, "{$type}", "RESTORED: {$servername}", "Instance {$servername} was down for {$retries} minutes. It is now back up again"); } if ($settings['usetwitter']['config'] == 'yes') { try { $twitter->statusesUpdate("RESTORED: {$servername}. It was down for {$retries} minutes."); } catch (Exception $e) { echo $e; } } if ($settings['useboxcar']['config'] == 'yes') { include "config.php"; $b = new boxcar_api($boxcarapi, $boxcarsec); $emails = explode(",", $boxemail); foreach ($emails as $boxalert) { try { $b->notify($boxalert, 'RESTORED', 'Instance ' . $servername . ' was down for ' . $retries . ' minutes. It is now back up again'); } catch (Exception $e) { echo $e; } } } } // since we are in this loop the server has been reached so we can reset retry's back to 0. $retries = "0"; //store match ID if ($gametypes[$type]['expired'] == "yes") { if (version_compare($version, $gametypes[$type]['version'], '>')) { // if something was expired, check to see if a server has a newer version. If yes update version in games db and set expired to no. mysql_query_trace("UPDATE games SET version='{$version}', expired='no' WHERE shortname='{$type}'"); // reset so it wont go restart if valve has the coffee break. $gametypes[$type]['expired'] = "no"; } if (version_compare($version, $gametypes[$type]['version'], '=')) { // if for some reason the gametype was changed but not the version then get out of that loop (rare condition, still on yes but already updated to both new version) echo "test"; } } if ($restartsend == 'yes' || $restartsend == 'restart' || $restartsend == 'optional') { // this is set after a _restart, so if we see it , then server is restarted and need to set restartsend=no. if ($goingdown == 'no') { mysql_query_trace("UPDATE servers SET restartsend='no' WHERE serverid = '{$serverid}'"); } else { if ($type == "left4dead" || $type == "left4dead2") { // hate to do this part, but if the last 'fork' is restarted, it can all be up within a minute. So the fork responded normally // while all the other ones get caught in the 'else' routine below if the servers does not respond, setting the flag that its part of a forked stop. $server->rconAuth($rconpass); $uptime = $server->rconExec('stats'); $pieces = explode("\n", $uptime); $pieces[1] = trim($pieces[1]); $morepieces = preg_split('/[\\s]+/', $pieces[1]); $uptime = $morepieces[3]; echo "Hey we zijn er"; echo "uptime is {$uptime}"; // can be buggy too, if you shutdown it quickly again and then servers are still full, it would make them optional again and send them into download state // need a better way for this. if ($uptime < "2") { // if its up this short it restarted shortly ago, so reset it for this one. echo "Resetting all forks to normal since 1 servers has low uptime"; mysql_query_trace("UPDATE servers SET restartsend='no',goingdown='no' WHERE netconport = '{$netconport}'"); } } if ($restartsend == 'restart') { mysql_query_trace("UPDATE servers SET restartsend='no' WHERE serverid = '{$serverid}'"); } } } if ($autoupdate == 'yes' || $dlyrestart == 'yes') { if ($restartsend == 'update') { if (!$netconport) { // if restartsend is 'update' or that means something triggered it, meaning a _restart will be send try { // choose which command to run, was it a optional/normal update or a daily restart that triggered the update? $server->rconAuth($rconpass); if ($cmdtosend == "daily") { $server->rconExec("{$dlycmd}"); } elseif ($cmdtosend == "normal") { // replace _restart by config for restart command. $server->rconExec('_restart'); } // restarten bug? } catch (RCONNoAuthException $e) { trigger_error('Could not authenticate with the game server.', E_USER_ERROR); } catch (TimeoutException $e) { } catch (Exception $e) { } // trigger the optional restarts to show as normal restarts instead of downloading. if ($goingdown == "yes") { // do the update here, since after a _restart it throws a exception and wont update the DB otherwise. mysql_query_trace("UPDATE servers SET restartsend='restart',goingdown='no',cmdtosend='normal' WHERE serverid = '{$serverid}'"); } else { mysql_query_trace("UPDATE servers SET restartsend='yes',cmdtosend='normal' WHERE serverid = '{$serverid}'"); } next; } else { if (!$netforkrestart[$netconport] == "yes") { $timeout = '2'; $usenet = fsockopen($ip, $netconport, $errno, $errstr, $timeout); if (!$usenet) { // to make sure they dont stay in "update" state, or we get 2x a restart of netcon! // pretty pointless in the end, since netcon port is down = all is down. // mysql_query_trace("UPDATE servers SET restartsend='optional' WHERE netconport = '$netconport'"); next; } else { $netconding = $settings['netconrestart']['config']; fputs($usenet, "PASS {$netconpasswd}\r\n"); fputs($usenet, "{$netconding}\r\n"); mysql_query_trace("UPDATE servers SET restartsend='yes',goingdown='yes' WHERE netconport = '{$netconport}'"); $netforkrestart[$netconport] = "yes"; } } } } // we got 3 routines down here // 1. expired = yes, this to 'issue' the first signal if a update came out so it goes into 'update' fase. // and version < version in the db, this to update any servers that came up later. // 2. reset the expired = no for the gametype if the version of the server is HIGHER then the one in the db. // Routine 2 is needed also to reset the version number to the correct one for gametypes that do not require auto update. // extra part is done for netcon ports for l4d(2) to only issue 1 command which is shutdown or quit for ALL instances. // 3. is for daily restarts, also we need to have a "optional" restart, meaning it will restart when the server is empty or less then xx players if ($gametypes[$type]['expired'] == "yes" || version_compare($version, $gametypes[$type]['version'], '<')) { // if a server is already updated and THEN the update comes out then it would still update it again, check for this if (version_compare($version, $gametypes[$type]['version'], '=')) { next; } if (!$netconport) { try { $server->rconAuth($rconpass); $server->rconExec($settings['defaultannounce']['config']); echo 'fout update kwam uit'; mysql_query_trace("UPDATE servers SET restartsend='update' WHERE serverid = '{$serverid}' AND autoupdate = 'yes'"); } catch (RCONNoAuthException $e) { //trigger_error('Could not authenticate with the game server.',E_USER_ERROR); echo 'error kan niet rconnen boeien, verder gaan'; } catch (Exception $e) { } } else { // we have found a gametype l4d(2) which uses forks. Use the netcon port if (!$netforkupdate[$netconport] == "yes") { $timeout = '2'; $usenet = fsockopen($ip, $port, $errno, $errstr, $timeout); if (!$usenet) { next; } else { $announcing = $settings['defaultannounce']['config']; fputs($usenet, "PASS {$netconpasswd}\r\n"); fputs($usenet, "{$announcing}\r\n"); mysql_query_trace("UPDATE servers SET restartsend='update' WHERE serverid = '{$serverid}'"); $netforkupdate[$neGotconport] = "yes"; } } else { // since a broadcast is send, all the other nodes dont need to have this send out again. mysql_query_trace("UPDATE servers SET restartsend='update' WHERE serverid = '{$serverid}'"); } } } } if ($dlyrestart == "yes" || $restartsend == "optional" || $restartsend == "emptyserver") { // the daily restart part, or the optional part. First get the time as we want it. $playercount = $nplayers - $bots; //echo "dus $playercount zoveel players \n"; (debug stuff) $hhmm = date('H:i', strtotime($dlytime)); $currenthhmm = date('H:i'); if ($hhmm == $currenthhmm) { // try { // $server->rconAuth($rconpass); // $server->rconExec($dlycmd); // } catch(Exception $e) {} mysql_query_trace("UPDATE servers SET restartsend='optional',goingdown='yes' WHERE serverid = '{$serverid}'"); } if ($restartsend == "optional" && $goingdown == "yes") { // check number of players online, if less it meets min players then go if ($playercount <= $dlyusers || ($dlyusers = "NULL")) { echo "ja dat klopt, we zitten onder de 10"; // add new field in db, to say it was a daily // add this part to not make l4d2 forks in update mode. //if ($goingdown != 'yes' ) { echo "set update en daily\n"; if (!$netconport) { mysql_query_trace("UPDATE servers SET restartsend='update', cmdtosend='daily' WHERE serverid = '{$serverid}'"); } //} } } if ($restartsend == "emptyserver") { // check number of players online, if less it meets min players then go if ($playercount == '0') { echo "ja dat klopt, we zitten onder de 10"; // add new field in db, to say it was a daily mysql_query_trace("UPDATE servers SET restartsend='update', cmdtosend='normal' WHERE serverid = '{$serverid}'"); } } } // we are going to check for the daily time mysql_query_trace("UPDATE servers SET servername = '{$servername}', type = '{$type}', version = '{$version}', network = '{$network}', os = '{$os}', lastupdate = NOW(), currentmap = '{$map}', currentplayers = '{$nplayers}', maxplayers = '{$mplayers}', retries = '{$retries}', currentbots = '{$bots}', protected = '{$protected}', servertags = '{$servertags}' WHERE serverid = '{$serverid}'"); } else { if ($goingdown == 'yes' && $restartsend != 'emptyserver') { mysql_query_trace("UPDATE servers SET restartsend='optional',goingdown='no' WHERE serverid = '{$serverid}'"); } if ($restartsend == 'no') { $fails[] = $serverid; if ($retries == "10") { if ($settings['useemail']['config'] == 'yes') { $subject = "{$servername} seems to be down after 10 retries"; $message = "Like the topic says, {$servername} @ {$serverIP} seems to be down for 10 retries so thats 10 minutes\n Last map it was on: {$currentmap}"; $smtpmails = $settings['emailalert']['config']; $allmails = explode(",", $smtpmails); foreach ($allmails as $sendto) { mail($sendto, $subject, $message, null); } } if ($settings['usegrowl']['config'] == 'yes') { $growl = new Growl(); //$growl->setAddress($growlip, $growlpass); $connection = array('address' => '$growlip', 'password' => '$growlpass'); $growl->notify($connection, "{$type}", "DOWN: {$servername}", "Instance {$servername} is down for {$retries} minutes. Please check"); } if ($settings['usetwitter']['config'] == 'yes') { try { $twitter->statusesUpdate("DOWN: {$servername}. It has been down for 10 minutes"); } catch (Exception $e) { echo $e; } } if ($settings['useboxcar']['config'] == 'yes') { include "config.php"; $b = new boxcar_api($boxcarapi, $boxcarsec); $emails = explode(",", $boxemail); foreach ($emails as $boxalert) { try { $b->notify($boxalert, 'DOWN', 'Instance ' . $servername . ' is down for ' . $retries . ' minutes'); } catch (Exception $e) { echo $e; } } } } if (!$_GET['update'] == 'all') { mysql_query_trace("UPDATE servers SET retries=retries+1 WHERE serverid = '{$serverid}'"); } // so that web updates for all dont screw up the retry count. Assuming people run the php in cron. } } } if ($cmd) { //echo $servername; die; // commandline, no need for fancy stuff } else { echo "<script type=\"text/javascript\">\n\t\t\t\nwindow.onload = function() { "; if (mysql_num_rows($result) == 1) { if (count($fails)) { echo "alert( 'Updating failed, perhaps its a solar flare?\\n" . mysql_real_escape_string(mysql_error()) . "' );"; } else { echo "alert( 'Server \\'" . mysql_real_escape_string($servername) . "\\' was updated succesfully.' );"; } } else { echo "alert( 'All servers" . (!empty($fails) ? ' but ID ' . implode($fails, ', ') : '') . " were updated succesfully.' );"; } //echo "<p>All servers" . ( !empty( $fails ) ? " but ID " . implode( $fails, ', ' ) : '' ) . " were updated succesfully.</p>"; //echo "<p> echo "\n}\n\n\t\t\t</script>"; } }
<div id="tableHead"> <div><b><?php echo $LAN_SERVERLIST_001; ?> </b></div> </div> <table id="serverListTable" class="bordercolor" width="100%" cellspacing="1" cellpadding="5" border="0" style="margin-top: 1px;"> <tr> <?php $i = 0; $serversPerRow = 3; // The number of servers to show per row foreach ($servers as $server) { $serverIp = new InetAddress($server->getIp()); $serverSC = new SourceServer($serverIp, $server->getPort()); $serverSC->initialize(); // Create an rcon object to connect to a single server on each iteration $r = new rcon($server->getIp(), $server->getPort(), $server->getRcon()); // $liveData = new LIVE(); $serverData = $serverSC->getServerInfo(); ?> <td class="colColor1" valign="top"> <?php if ($r->isValid()) { ?> <img src="images/connect.png" onmouseover="Tip('<?php echo $LAN_SERVERLIST_002; ?> ', SHADOW, true, FADEIN, 300, FADEOUT, 300, CLICKCLOSE, true, BGCOLOR, getStyleBackgroundColor('container'), BORDERCOLOR, getStyleBackgroundColor('serverListTable'))"/><?php } else {
$_SESSION['servers'][] = array($row['serverid'], $row['servername'], $row['ip'], $row['port'], $row['rconpass']); } $output['servers'] = mysql_num_rows($result); $output['next'] = $_SESSION['servers'][0][1]; } else { if (isset($_GET['next'])) { $fp = fopen($_SESSION['walkfile'], 'w'); $server = array_shift($_SESSION['servers']); $serverid = $server[0]; $name = $server[1]; $ip = $server[2]; $port = $server[3]; $rcon = $server[4]; $update = 0; $serverIP = $ip; $server = new SourceServer($serverIP, $port); //$server->initialize(); //fwrite($fp, $server->getPlayers() ); //$info = $server->getServerInfo(); //fwrite ($fp, "$info" ); //echo "$poep"; $error = false; try { $server->rconAuth($rcon); } catch (Exception $e) { fwrite($fp, "Unable to Authenticate to server, perhaps down? {$serverIP} {$port} {$server} {$rcon}"); $error = $e; } if ($error) { fwrite($fp, "Unable to continue"); // Use below line to check error
$serverid = $_GET['serverid']; $ipnr = $_GET['ip']; $port = $_GET['port']; mysql_query("UPDATE servers SET restartsend = 'yes' WHERE serverid = '$serverid'") or die(mysql_error()); $call = file_get_contents("http://$ipnr:4337/ssms?password=$server_connect&port=$port&ip=$ipnr"); header("Location: servers.php"); die(); } if ($_GET['update'] == "yes") { $serverid = $_GET['serverid']; $serverIP = $servercfg['ip']; $port = $servercfg['port']; $rconpass = $servercfg['rconpass']; $server = new SourceServer($serverIP, $port); try { $server->rconAuth($rconpass); $server->rconExec('_restart'); } catch (Exception $e) { //trigger_error('Could not authenticate with the game server. Or it is down',E_USER_ERROR); } // have to do the update here, since this statement above is really buggy if you _restart it at the same time mysql_query("UPDATE servers SET restartsend = 'restart', goingdown = 'yes' WHERE serverid = '$serverid'") or die(mysql_error()); header("Location: servers.php"); die(); } ?> <body><div id="container"> <form action="singlerestart.php" class="niceform">
} ?> <style type="text/css"> tr.d0 td { background-color: #D3D3D3; color: black; } tr.d1 td { background-color: #C0C0C0; color: black; } </style> <? $ipAddress = $ip; $server = new SourceServer($ipAddress, $portNumber); echo '<link rel="stylesheet" href="css/main.css">'; try { $players = $server->getPlayers($rconpass); } catch (Exception $e) { echo 'Server unreachable.'; exit; } if (empty($players)) { echo 'No active players found on server'; exit;} if ($settings['usestats']['config'] == 'yes') { $statsinfo[0] = $settings['statsprogram']['config']; $statsinfo[1] = $settings['statsurl']['config']; } echo "<table>"; echo "<tr bgcolor=FF8C00><th width=14%>Name</th><th width=25%>Score</th><th width=14%>Ping</th><th width=14%>steamid</th><th width=14%>connect time</th><th width=14%>state</th><th width=14%>ip</th><th width=14% nowrap=nowrap>Quick Info</th></tr>";