Advertisement
momo5502

idk what i am doing. i need sleep. instantly!!!!!!

Jul 19th, 2013
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 31.96 KB | None | 0 0
  1.    
  2.  
  3.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  4.     <html xmlns="http://www.w3.org/1999/xhtml">  
  5.             <head>
  6.                     <title>REKT</title>
  7.                     <link rel="stylesheet" href="css.css">
  8.                     <script type="text/javascript" src="js/jquery.js"></script>
  9.                     <script type="text/javascript" src="js/cookie.js"></script>
  10.                     <script type="text/javascript" src="js/unizon.js"></script>
  11.                     <script>
  12.                     var nigger = "10104DC8";
  13.                    
  14.                     </script>
  15.             </head>
  16.             <body>
  17.             <?php
  18.             function nicetime($date)
  19.             {
  20.                     if(empty($date)) {
  21.                             return "No date provided";
  22.                     }
  23.                    
  24.                     $periods         = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
  25.                     $lengths         = array("60","60","24","7","4.35","12","10");
  26.                    
  27.                     $now             = time();
  28.                     $unix_date         = strtotime($date);
  29.                    
  30.                        // check validity of date
  31.                     if(empty($unix_date)) {    
  32.                             return "Bad date";
  33.                     }
  34.      
  35.                     // is it future date or past date
  36.                     if($now > $unix_date) {    
  37.                             $difference     = $now - $unix_date;
  38.                             $tense         = "ago";
  39.                            
  40.                     } else {
  41.                             $difference     = $unix_date - $now;
  42.                             $tense         = "from now";
  43.                     }
  44.                    
  45.                     for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
  46.                             $difference /= $lengths[$j];
  47.                     }
  48.                    
  49.                     $difference = round($difference);
  50.                    
  51.                     if($difference != 1) {
  52.                             $periods[$j].= "s";
  53.                     }
  54.                    
  55.                     return "$difference $periods[$j] {$tense}";
  56.             }
  57.      
  58.             $date = "2013-06-11 23:50:40";
  59.             $result = nicetime($date);
  60.             ?>
  61.                     <header>
  62.                     <div id="main">
  63.                     <h1>REKT' TEAM</h1>
  64.                                     <span style="padding-left:20px;">Going stronk since 11-june-2013. (<?php echo 'Which was like '. nicetime($date); ?>)</span>
  65.                     </div>
  66.                     </header>
  67.                    
  68.                     <article><center>
  69.                     <a href="index.php" class="swap"><img src="img/orange.png" onmouseover="this.src='img/orange_2.png'" onmouseout="this.src='img/orange.png'" /></a>
  70.                     <a href="http://zsource.org/forum/" class="swap"><img src="img/green.png" onmouseover="this.src='img/green_2.png'" onmouseout="this.src='img/green.png'" /></a>
  71.                     <a href="servers.php" class="swap"><img src="img/blue.png" onmouseover="this.src='img/blue_2.png'" onmouseout="this.src='img/blue.png'" /></a>
  72.                     <a href="http://hedgehogscience.com" class="swap"><img src="img/red.png" onmouseover="this.src='img/red_2.png'" onmouseout="this.src='img/red.png'" /></a>
  73.                     <a href="members.php" class="swap"><img src="img/purple.png" onmouseover="this.src='img/purple_2.png'" onmouseout="this.src='img/purple.png'" /></a>
  74.                     <br />
  75.                     <h2>Server(s)</h2>
  76.                    
  77.                     <table id="table-2" class="tablesorter" border="1">
  78.                     <thead>
  79.                     <tr>
  80.                     <th>Hostname</th>
  81.                     <th>Game</th>
  82.                     <th>Type</th>
  83.                     <th>Players</th>
  84.                     <th>IP</th>
  85.                     </tr>
  86.                     </thead>
  87.                     <tbody>
  88.                     <?php
  89.                     //Add the servers you want !
  90.                     //                      IP                              Port
  91.                     //addServer("176.28.55.118", "28952");
  92.                     addServer("85.24.170.203", "28961");
  93.                     addServer("176.28.55.118","28952");
  94.                     addServer("176.28.55.118","7777","SAMP");
  95.                     addServer("176.28.55.118","5000","TM2");
  96.      
  97.      
  98.      
  99.                     //-------------------- Don't change anything below here, unless you know what you are doing! ------------------------------------
  100.                     //Open socket connection, send and receive information, return it & close socket again!
  101.      
  102.                     function getQueryData( $ip, $port, $send )
  103.                     {
  104.                             $server  = "udp://" . $ip;
  105.                             $connect = @fsockopen( $server, $port, $errno, $errstr, 5 );
  106.                            
  107.                             if ( !$connect )
  108.                                     return "-1";
  109.                            
  110.                             else {
  111.                                     fwrite( $connect, $send );
  112.                                     stream_set_timeout( $connect, 7 );
  113.                                     $output = fread( $connect, 8192 );
  114.                                     $info   = stream_get_meta_data( $connect );
  115.                                     fclose( $connect );
  116.                                    
  117.                                     if ( !$output || !isset( $output ) || $output == "" || $info[ 'timed_out' ] )
  118.                                             return "-1";
  119.                                    
  120.                                     else
  121.                                             return substr( $output, 4 );
  122.                             }
  123.                     }
  124.                    
  125.                     function addServer($ip, $port, $game = "COD")
  126.                     {
  127.                             @call_user_func("addServer_" . $game, $ip, $port );
  128.                     }
  129.                    
  130.                     function addServer_SAMP($ip, $port)
  131.                     {
  132.                            
  133.                             $aIPAddr = explode( '.', $ip );
  134.                             $cmd     = "SAMP";
  135.                             $cmd .= chr( $aIPAddr[ 0 ] );
  136.                             $cmd .= chr( $aIPAddr[ 1 ] );
  137.                             $cmd .= chr( $aIPAddr[ 2 ] );
  138.                             $cmd .= chr( $aIPAddr[ 3 ] );
  139.                             $cmd .= chr( $port & 0xFF );
  140.                             $cmd .= chr( $port >> 8 & 0xFF );
  141.                             $cmd .= 'i';
  142.                            
  143.                             $server  = "udp://" . $ip;
  144.                             $connect = @fsockopen( $server, $port, $errno, $errstr, 2 );
  145.                             $fp      = $connect;
  146.                             $server  = $ip . ":" . $port;
  147.                            
  148.                             if ( !$connect || !$fp )
  149.                                     $data = getErr( $ip, $port );
  150.                            
  151.                            
  152.                             else {
  153.                                    
  154.                                     fwrite( $fp, $cmd );
  155.                                     stream_set_timeout( $connect, 2 );
  156.                                     $output = fread( $fp, 11 );
  157.                                     $info   = stream_get_meta_data( $connect );
  158.                                    
  159.                                     if ( !$output || !isset( $output ) || $output == "" || $info[ 'timed_out' ] )
  160.                                             $data = getErr( $ip, $port );
  161.                                    
  162.                                     else {
  163.                                             try {
  164.                                                     $is_passworded = ord( fread( $fp, 1 ) );
  165.                                                     $plr_count     = ord( fread( $fp, 2 ) );
  166.                                                     $firstval      = dechex( ord( fread( $fp, 1 ) ) );
  167.                                                     $maxplayers    = hexdec( dechex( ord( fread( $fp, 1 ) ) ) . $firstval );
  168.                                                     $max_plrs      = $maxplayers;
  169.                                                     $strlen        = ord( fread( $fp, 4 ) );
  170.                                                     $hostname      = fread( $fp, $strlen );
  171.                                                     $strlen        = ord( fread( $fp, 4 ) );
  172.                                                     $gamemode      = fread( $fp, $strlen );
  173.                                                     $strlen        = ord( fread( $fp, 4 ) );
  174.                                                     $mapname       = fread( $fp, $strlen );
  175.                                             }
  176.                                            
  177.                                             catch ( Exception $e ) {
  178.                                                     return getErr( $ip, $port );
  179.                                             }
  180.                                            
  181.                                             $data = array(
  182.                                                      "value" => 1,
  183.                                                     "hostname" => $hostname,
  184.                                                     "gametype" => $gamemode,
  185.                                                     "protocol" => "SAMP",
  186.                                                     "clients" => $plr_count,
  187.                                                     "maxclients" => $max_plrs,
  188.                                                     "mapname" => $mapname,
  189.                                                     "server" => $server,
  190.                                                     "unclean" => $hostname
  191.                                             );
  192.                                     }
  193.                             }
  194.                             if ( $connect )
  195.                                     fclose( $connect );
  196.                            
  197.                             echoStuff( $data );
  198.                     }
  199.      
  200.             function addServer_TM2($ip, $port)
  201.             {
  202.                     $user= "SuperAdmin";                // SuperAdmin Login
  203.                     $pass="leetato";                // SuperAdmin Password
  204.      
  205.                     require("includes/GbxRemote.inc.php");
  206.                     require("includes/tmfcolorparser.inc.php"); //it should be in the forum somwhere in the toolbox
  207.      
  208.                     $client = new IXR_Client_Gbx;
  209.                     $colors= new tmfcolorparser;
  210.                     $error = array();
  211.                    
  212.                     if (!$client->InitWithIp($ip,$port)) {
  213.                          
  214.                             $error[] = 'An error occurred - '.$client->getErrorCode().":".$client->getErrorMessage();
  215.                     }
  216.                     else {
  217.                             if (!$client->query("Authenticate", $user, $pass)) {
  218.                             $error[] = 'login failed !<br/>';
  219.                     }      
  220.                    
  221.                     if($client->query('GetPlayerList',500,0)) {
  222.                             $Players = $client->getResponse();
  223.                     }
  224.                    
  225.                     if($client->query('GetServerOptions')) {
  226.                             $ServerOptions = $client->getResponse();
  227.                             $servername=$ServerOptions['Name'];
  228.                             $MaxPLayers=$ServerOptions['CurrentMaxPlayers'];
  229.                     }
  230.                    
  231.                     $pl=0;
  232.                     foreach ($Players as $player) {
  233.                             $pl++;
  234.                     }
  235.                    
  236.                     if($client->query('GetCurrentChallengeInfo')) {
  237.                             $CurrentChallengeInfo = $client->getResponse();
  238.                             $trackname=$CurrentChallengeInfo['Name'];
  239.                     }
  240.      
  241.                     if($client->query('GetCurrentGameInfo')) {
  242.                             $GetCurrentGameInfo=$client->getResponse();
  243.                             $GameMode=$GetCurrentGameInfo["GameMode"];
  244.                     }
  245.      
  246.                     if ($client->query('GetLadderServerLimits')) {
  247.                             $GetLadderServerLimits=$client->getResponse();
  248.                             $ladderMin = $GetLadderServerLimits['LadderServerLimitMin'];
  249.                             $ladderMax = $GetLadderServerLimits['LadderServerLimitMax'];
  250.                             $ladderMin = $ladderMin / 1000;
  251.                             $ladderMax = $ladderMax / 1000;
  252.                     }
  253.      
  254.                     if ($client->query('GetMainServerPlayerInfo')) {
  255.                             $GetMainServerPlayerInfo = $client->getResponse();
  256.                             $serverlogin = $GetMainServerPlayerInfo['Login'];
  257.                     }
  258.      
  259.                     //Formating Game Mod
  260.                     switch($GameMode){
  261.                             case 2:
  262.                                     $GameMode="Time attack";
  263.                                     Break;
  264.                     }
  265.                     $info = array(
  266.                                             "value" => "1",
  267.                                             "hostname" => $colors->toHTML($servername),
  268.                                             "gametype" => $GameMode,
  269.                                             "protocol" => "TM2",
  270.                                             "clients" => $pl,
  271.                                             "maxclients" => $MaxPLayers,
  272.                                             "mapname" => $colors->toHTML($trackname),
  273.                                             "server" => $serverlogin,
  274.                                             "unclean" => $colors->toHTML($servername)
  275.                                     );
  276.                    /*
  277.                    echo '
  278.                     <table style="text-align: center; margin: 0; padding: 0; font-size: 12px;" cellpadding="0" cellspacing="0" width="100%" >
  279.                     <tr align="center"><td ><a href="tmtp:///#join='.$serverlogin.'" onClick="this.blur()" >'.$colors->toHTML($servername).'</a></td></tr>
  280.                     <tr align="center"><td>'.$colors->toHTML($trackname).'</td></tr>
  281.                     <tr align="center"><td>'.$pl.' / '.$MaxPLayers.'</td></tr>
  282.                     <tr align="center" ><td>'.$ladderMin.'k - '.$ladderMax.'k LP</td></tr>
  283.                     <tr align="center"><td>'.$GameMode.'</td></tr>';
  284.                    */
  285.                     if (count($error) > 0) {
  286.                             foreach ($error as $failure) {
  287.                                    // echo '<tr><td>'.$failure.'</td></tr>';
  288.                             }
  289.                     }
  290.                     echoStuff( $info );
  291.                     }
  292.             }
  293.                     function addServer_MTA($ip, $port)
  294.                     {
  295.                             $data = mta_getServer($ip,$port);
  296.                                            
  297.                             $info = array(
  298.                                             "value" => "?",
  299.                                             "hostname" => $data->name,
  300.                                             "gametype" => $data->gameshort,
  301.                                             "protocol" => "MTA",
  302.                                             "clients" => $data->players,
  303.                                             "maxclients" => $data->maxplayers,
  304.                                             "mapname" => $data->map,
  305.                                             "server" => $ip . ":" . $port,
  306.                                             "unclean" => $data->name
  307.                                     );
  308.                            
  309.                             echoStuff( $info );
  310.                     }
  311.                    
  312.                     //Messy code by Wojjie
  313.                    
  314.                     function mta_getServer_process($dat) {
  315.             if (substr($dat,0,4)=="EYE1") {
  316.                     $dat=substr($dat,4);
  317.      
  318.                     $i=0;
  319.                     while($dat!="") {
  320.                             if (substr($dat,0,2)==chr(1)."?") {
  321.                                     $dat=substr($dat,2);
  322.                             }
  323.                             $l=ord(substr($dat,0,1));
  324.                             $blks[$i]=substr($dat,1,$l-1);
  325.                             $dat=substr($dat,$l);
  326.                             $i++;
  327.                     }
  328.      
  329.                     $ret->gameshort=$blks[0];
  330.                     $ret->port=$blks[1];
  331.                     $ret->name=$blks[2];
  332.                     $ret->rules['game']=$blks[3];
  333.                     $ret->map=$blks[4];
  334.                     $ret->rules['version']=$blks[5];
  335.                     if ($blks[6]=="0") {
  336.                             $ret->public=1;
  337.                     } else {
  338.                             $ret->public=0;
  339.                     }
  340.                     $ret->players=$blks[7];
  341.                     $ret->maxplayers=$blks[8];
  342.                     $j=0;
  343.                     for ($i=11; $i<sizeof($blks)-2; $i=$i+5) {
  344.                             $ret->player[$j]->name=$blks[$i];
  345.                             $ret->player[$j]->score=$blks[$i+3];
  346.                             $ret->player[$j]->time=0;
  347.                             $j++;
  348.                     }
  349.             }
  350.             return $ret;
  351.     }
  352.      
  353.     function mta_getServer($ip,$port) {
  354.             $fp=fsockopen("udp://$ip", $port, $errno, $errstr);
  355.             if (!$fp) {
  356.             } else {
  357.                     stream_set_timeout($fp,1,0);
  358.                     fwrite($fp,"s");
  359.                     $data=fread($fp,16384);
  360.                     fclose($fp);
  361.                     return mta_getServer_process($data);
  362.             }
  363.     }
  364.      
  365.                     function addServer_COD($ip, $port)
  366.                     {
  367.                     //Commands available to send:
  368.                     $getinfo   = "\xFF\xFF\xFF\xFFgetinfo\x00";
  369.                     $getstatus = "\xFF\xFF\xFF\xFFgetstatus\x00";
  370.      
  371.                     //Command that gets sent.
  372.                     $cmd = $getinfo;
  373.      
  374.      
  375.                     $connection = getQueryData( $ip, $port, $cmd );
  376.                     $info       = parseQueryData( $connection, $ip, $port );
  377.                     echoStuff( $info );
  378.                     }
  379.      
  380.                     //Clean input part from their rest behind
  381.                     function cleanFromRest( $self )
  382.                     {
  383.                             if ( strpos( $self, "\\" ) )
  384.                                     return substr( $self, 0, strpos( $self, "\\" ) );
  385.                             else
  386.                                     return $self;
  387.                     }
  388.      
  389.                     //Parse the query data and return it as array
  390.                     //Parse the query data and return it as array.
  391.                     function parseQueryData( $input, $ip, $port)
  392.                     {
  393.                             $server = $ip . ":" . $port;
  394.                             $err    = "-";
  395.                            
  396.                             if ( $input == "-1" )
  397.                                     $data = array(
  398.                                             "value" => $input,
  399.                                             "gametype" => $err,
  400.                                             "protocol" => $err,
  401.                                             "clients" => "0",
  402.                                             "maxclients" => "0",
  403.                                             "mapname" => $err,
  404.                                             "unclean" => "Offline",
  405.                                             "server" => $server
  406.                                     );
  407.                            
  408.                             else {
  409.                                     //New segmentation code
  410.                                    
  411.      
  412.                                             $hostname = substr( $input, strpos( $input, "\\hostname" ) + 10 );
  413.                                            
  414.                                             if ( strpos( $input, "\\clients" ) ) {
  415.                                                     $players = substr( $input, strpos( $input, "\\clients" ) + 9 );
  416.                                                     $players = cleanFromRest( $players );
  417.                                             }
  418.                                            
  419.                                             else
  420.                                                     $players = "-";
  421.                                            
  422.                                             $gametype = substr( $input, strpos( $input, "\\gametype" ) + 10 );
  423.                                    
  424.                                     $maxplayers = substr( $input, strpos( $input, "\\sv_maxclients" ) + 15 );
  425.                                     $maxplayers = cleanFromRest( $maxplayers );
  426.                                    
  427.                                     $mapname = substr( $input, strpos( $input, "\\mapname" ) + 9 );
  428.                                     $mapname = cleanFromRest( $mapname );
  429.                                    
  430.                                     $hostname = cleanFromRest( $hostname );
  431.                                    
  432.                                     $gametype = cleanFromRest( $gametype );
  433.                                    
  434.                                     $protocol = substr( $input, strpos( $input, "\\protocol" ) + 10 );
  435.                                     $protocol = cleanFromRest( $protocol );
  436.                                    
  437.                                     //Get a clean hostname without '^1's or '^5's
  438.                                     $unclean = $hostname;
  439.                                    
  440.                                     for ( $i = 0; $i < 10; $i++ )
  441.                                             $hostname = str_replace( "^{$i}", "", $hostname );
  442.                                    
  443.                                     $value = 1;
  444.                                    
  445.                                     //Put information into an array
  446.                                     $data = array(
  447.                                             "value" => $value,
  448.                                             "hostname" => $hostname,
  449.                                             "gametype" => $gametype,
  450.                                             "protocol" => $protocol,
  451.                                             "clients" => $players,
  452.                                             "maxclients" => $maxplayers,
  453.                                             "mapname" => $mapname,
  454.                                             "server" => $server,
  455.                                             "unclean" => $unclean
  456.                                     );
  457.                             }
  458.                            
  459.                             return $data;
  460.                     }
  461.      
  462.                     function echoStuff( $data )
  463.                     {
  464.                             $mappath = "http://momo5504.square7.de/banner/maps/" . getGameEngine($data[ 'protocol' ]) . "/preview_" . $data[ 'mapname' ] . ".jpg";
  465.                            
  466.                             if ( $data[ 'value' ] == "-1" )
  467.                                     $mappath = "http://momo5504.square7.de/banner/maps/no_response.jpg";
  468.                            
  469.                             else if( !check_file( $mappath ))
  470.                                     $mappath = "http://momo5504.square7.de/banner/maps/no_image.jpg";
  471.                                    
  472.                             echo "<tr>";
  473.                             $hostname = addColors( $data[ 'unclean' ] );
  474.                             echo "<td><span style='color: #ffffff'>" . $hostname . "</span></td>\n";
  475.                             echo "<td><a>" . getGameEngine($data[ 'protocol' ]) . "</a></td>\n";
  476.                             echo "<td><a>" . getGametype( $data[ 'gametype' ], getGameEngine($data[ 'protocol' ])) . "</a></td>\n";
  477.                             echo "<td><a>" . $data[ 'clients' ] . "/" . $data[ 'maxclients' ] . "</a></td>\n";
  478.                             echo "<td><a>" . $data[ 'server' ] . "</a></td></tr>\n\n"; //whar to put it
  479.                     }
  480.      
  481.                     function addColors( $input )
  482.                     {
  483.                             $var = $input;
  484.                            
  485.                             $var = str_replace( "^0", "</span><span style='color: #000000'>", $var );
  486.                            
  487.                             $var = str_replace( "^1", "</span><span style='color: #ff0000'>", $var );
  488.                            
  489.                             $var = str_replace( "^2", "</span><span style='color: #00ff00'>", $var );
  490.                            
  491.                             $var = str_replace( "^3", "</span><span style='color: #ffff00'>", $var );
  492.                            
  493.                             $var = str_replace( "^4", "</span><span style='color: #0000ff'>", $var );
  494.                            
  495.                             $var = str_replace( "^5", "</span><span style='color: #00ffff'>", $var );
  496.                            
  497.                             $var = str_replace( "^6", "</span><span style='color: #ff00ff'>", $var );
  498.                            
  499.                             $var = str_replace( "^7", "</span><span style='color: #ffffff'>", $var );
  500.                            
  501.                             $var = str_replace( "^8", "</span><span style='color: #CC9933'>", $var );
  502.                            
  503.                             $var = str_replace( "^9", "</span><span style='color: #8D8D8D'>", $var );
  504.                            
  505.                             return $var;
  506.                     }
  507.      
  508.                     //Get the game version
  509.                     function getGameEngine( $var )
  510.                     {
  511.                             switch ( $var ) {
  512.                                     case ( "5" ):
  513.                                     case ( "6" ):
  514.                                             return "MW1"; // IW3 engine
  515.                                             break;
  516.                                    
  517.                                     case ( "101" ):
  518.                                             return "WAW"; // IW3 engine
  519.                                             break;
  520.                                    
  521.                                     case ( "142" ): // (g)a(y)Rev protocol (info query)
  522.                                     case ( "144" ): // (g)a(y)Rev protocol (status query)
  523.                                     case ( "61586" ):
  524.                                             return "MW2"; // IW4 engine
  525.                                             break;
  526.                                    
  527.                                     case ( "19816" ):
  528.                                             return "MW3"; // IW5 engine
  529.                                             break;
  530.                                    
  531.                                     default:
  532.                                             return $var;
  533.                                             break;
  534.                             }
  535.                     }
  536.      
  537.                     //Get better GT names
  538.                     function getGametype( $var, $game )
  539.                     {
  540.                             switch ( $var ) {
  541.                                     case ( "war" ):
  542.                                             if ( $game == "WAW" ) //WAW gametype war is not IW's TDM
  543.                                                     return "WAR";
  544.                                             else
  545.                                                     return "TDM";
  546.                                             break;
  547.                                    
  548.                                     case ( "dm" ):
  549.                                             return "FFA";
  550.                                             break;
  551.                                    
  552.                                     case ( "dd" ):
  553.                                             return "DEM";
  554.                                             break;
  555.                                    
  556.                                     case ( "sd" ):
  557.                                             return "S&D";
  558.                                             break;
  559.                                    
  560.                                     default:
  561.                                             return strtoupper ($var);
  562.                                             break;
  563.                                            
  564.                             }
  565.                     }
  566.      
  567.                     //Get the localized mapname for the mapcodes
  568.                     function getMapName( $var, $game )
  569.                     {
  570.                             if ( $fp = fopen( 'http://momo5504.square7.de/banner_stuff/getMap.php?mapname=' . $var . '&game=' . $game, 'r' ) ) {
  571.                                     $content = '';
  572.                                    
  573.                                     while ( $line = fgets( $fp, 1024 ) ) {
  574.                                             $content .= $line;
  575.                                     }
  576.                                    
  577.                                     if ( $content == "" )
  578.                                             return $var;
  579.                                     else {
  580.                                             if ( strpos( $content, "\n" ) )
  581.                                                     return substr( $content, 0, strpos( $content, "\n" ) );
  582.                                             else
  583.                                                     return $content;
  584.                                     }
  585.                             } else
  586.                                     return $var;
  587.                     }
  588.      
  589.      
  590.                     function check_file( $file )
  591.                     {
  592.                             if ( substr( $file, 0, 7 ) == "http://" ) {
  593.                                     $file_headers = @get_headers( $file );
  594.                                     if ( $file_headers[ 0 ] == 'HTTP/1.1 404 Not Found' )
  595.                                             return false;
  596.                                     else
  597.                                             return true;
  598.                             } else
  599.                                     return file_exists( $file );
  600.                     }
  601.                     ?>
  602.                     </tbody>
  603.                     </table>
  604.                     </center></article>
  605.                    
  606.                     <footer>
  607.                     <dl class="icon">
  608.                     <dt style="float:left;"><strong>Unizon IRC</strong></dt><br />
  609.                     <dt style="float:left; position:absolute;"><font title="Auto-refresh" id="unizon-auto-refresh">[Auto Refresh]</font><font title="Hide chat" id="unizon-hide">[Show / Hide]</font></dt><br />
  610.                     </dl>
  611.                     <div class="Unizon">
  612.                     <div class="Messages" style="height:200px; max-height:200px; overflow-y:scroll;">
  613.      
  614.                     </div>
  615.      
  616.                     <div class="Input">
  617.                     <form action="send.php" method="post" id="UnizonForm">
  618.                     <input type="text" name="msg" autocomplete="off" id="msg" style="width:90%;background-color:#fff;"> <input type="submit" value="Send" id="send">
  619.                     </form>
  620.                     </div>
  621.                     </div>
  622.                     </footer>
  623.             </body>
  624.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement