Mobile Chat Validation Prob

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mobile Chat Validation Prob

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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(&#39;text/chatpaikalla.txt&#39;, &#39;r+&#39;);
    $jui=file(&#39;text/chatpaikalla.txt&#39;);
    $ko=file_get_contents (&#39;text/chatpaikalla.txt&#39;);
    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,&#39;&#39;,$ko);}
    }
    ftruncate($tie,0);

    fputs($tie, $ko);
    fclose($tie);

    $chatpaik=file(&#39;text/chatpaikalla.txt&#39;);
    $paikk=file(&#39;text/paikalla.txt&#39;);
    $salnim=file(&#39;text/nims.txt&#39;);
    $user = explode (&#39;/&#39;, $HTTP_USER_AGENT);



    /**
    * @authors Ghost & DEViANCE (CODEMAFiA.ORG)
    * @copyright 2008-2009 Mobile Chat
    * @version 2.0.1 (wml 1.1 EN)
    */

    echo "";

    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(&#39;text/ownernames.txt&#39;));
    $admins=count(file(&#39;text/adminnames.txt&#39;));
    $mods=count(file(&#39;text/modnames.txt&#39;));
    $banned=count(file(&#39;text/bannames.txt&#39;));
    $staff = $owners + $admins + $mods;

    echo "Users Chatting: ";
    echo "<a href=\"main/online.php?time=".time()."\">".count(file(&#39;tex t/chatpaikalla.txt&#39;))."</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(&#39;text/nims.txt&#39;))."</a>
    \n";

    echo "Smileys: ";
    echo "<a href=\"main/chatsmileys.php?time=".time()."\">".count(file(&#3 9;text/smileys.txt&#39;))."</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 "
    ";
    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";</div>
Working...
X