Code:
<?php //HEADER START echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"; echo "<head>\n"; echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n"; echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n"; echo "<title>welcome</title>\n"; echo "<link href=\"themes/style.css\" rel=\"stylesheet\" type=\"text/css\" media=\"handheld, screen, projection, print\">"; echo "</head>"; echo "<body class=\"body\">\n"; echo "<div>\n"; echo "<img src=\"images/logo.gif\" alt=\"UK2.US\" width=\"88\" height=\"44\" /> \n"; //CONTENT START $timezone; $tie = fopen('text/chatpaikalla.txt', 'r+'); $jui=file('text/chatpaikalla.txt'); $ko=file_get_contents ('text/chatpaikalla.txt'); for ($i=0; $i<count($jui); $i++) { $hee=$jui[$i]; $alo=explode("",$jui[$i]); $erotus=time()-$alo[1]; if ($erotus>=120){$ko = str_replace ($hee,'',$ko);} } ftruncate($tie,0); fputs($tie, $ko); fclose($tie); $chatpaik=file('text/chatpaikalla.txt'); $paikk=file('text/paikalla.txt'); $salnim=file('text/nims.txt'); $user = explode ('/', $HTTP_USER_AGENT); /** * @authors Ghost & DEViANCE (CODEMAFiA.ORG) * @copyright 2008-2009 Mobile Chat * @version 2.0.1 (wml 1.1 EN) */ echo "[size="1"]"; echo "$currentdate\n"; echo "<a href=\"main/time2.php?time=".time()."\">$time</a>"; echo " "; echo "$image"; $fp=fopen("text/count.txt","a+"); fputs($fp,"1"); fclose($fp); echo "<a href=\"main/sisaan.php?time=".time()."\">Login</a> \n"; echo "<a href=\"main/registerrules.php?time=".time()."\">Register</a>\n"; echo " \n"; echo "<a href=\"rss/index.php?time=".time()."\">rrs news feeds</a>\n"; echo " \n"; $owners=count(file('text/ownernames.txt')); $admins=count(file('text/adminnames.txt')); $mods=count(file('text/modnames.txt')); $banned=count(file('text/bannames.txt')); $staff = $owners + $admins + $mods; echo "Users Chatting: "; echo "<a href=\"main/online.php?time=".time()."\">".count(file('text/chatpaikalla.txt'))."</a> \n"; echo "Chat Staff: "; echo "<a href=\"main/staff.php?time=".time()."\">".$staff."</a> \n"; echo "Registered Users: "; echo "<a href=\"main/users.php?time=".time()."\">".count(file('text/nims.txt'))."</a> \n"; echo "Smileys: "; echo "<a href=\"main/chatsmileys.php?time=".time()."\">".count(file('text/smileys.txt'))."</a> \n"; echo "Banned Users: "; echo "<a href=\"main/bannedusers.php?time=".time()."\">".$banned."</a> \n"; echo "Chat Stats: "; echo "<a href=\"main/stats.php?time=".time()."\">*</a>\n"; echo " --- "; $time=number_format(microtime(),2); echo "Script: $time Sec(s)"; echo " Valid $validate"; echo " --- $copyright"; echo "[/size]"; echo "</p>"; //FOOTER START echo " ©2008 <a accesskey=\"5\" href=\"index.php\">UK2.US</a> \n"; echo "Valid: <a accesskey=\"7\" href=\"http://validator.w3.org/check?uri=referer\">xHTML m1.0</a>|<a accesskey=\"9\" href=\"http://jigsaw.w3.org/css-validator/check/referer\">CSS</a>\n"; echo "</div>\n"; echo "</body>\n"; echo "</html>\n";
Comment