Code:
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n"; echo "<!-- www.come4me.ro v.1.0 -->\n"; echo "<!-- Creator: ady7zu (ady7zu_php_html_etc@yahoo.com) -->\n"; echo "<!-- Indrumator: �existenz (existenz@come4me) -->\n"; echo "<!-- Design gandit: ghost9 (amzagiovanni@gmail.com) -->\n"; echo "<!-- Copyright (c) 2006 - 2008 WwW.CoMe4mE.Ro -->\n"; ?> <wml> <?php $bcon = connectdb(); if (!$bcon) { echo "<card id=\"main\" title=\"".$nume."\">"; echo "<p align=\"center\">"; echo "<img src=\"../images/exit.gif\" alt=\"*\"/><br/>"; echo "<small>Error from database!Please be patience and we will reconnect come4me at soon it-s possible!<br/><br/>"; echo "<b>Va multumim foarte mult pentru intelegere</b></small>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } $brws = explode(" / ",$HTTP_USER_AGENT); $ubr = $brws[0]; $uip = $REMOTE_ADDR; $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $pmid = $_GET["pmid"]; $uid = getuid_sid($sid); $r = rand(0,100000); cleardata(); if(!ipblocat($uip)) { echo "<card id=\"main\" title=\"".$nume."\">"; echo "<p align=\"center\">"; echo "This IP is blocked.Try to login again!"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) { echo "<card id=\"main\" title=\"".$nume."\">"; echo "<p align=\"center\">"; echo "<img src=\"../images/notok.gif\" alt=\"x\"/><br/>"; echo "This IP was blocked to provider!<br/>"; echo "<br/>"; echo "<small>Try to login again!</small><br/><br/>"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM come4me_wapchat_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo "Time remaning: $rmsg<br/><br/>"; echo "</p>"; echo "<p>"; echo "Name: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/><br/>"; echo "Password: <input type=\"password\" name=\"logpwd\" maxlength=\"30\"/><br/>"; echo "<anchor>Autentification<go href=\"login.php\" method=\"get\">"; echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>"; echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>"; echo "</go></anchor>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } } $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) { echo "<card id=\"main\" title=\"".$nume."\">"; echo "<p align=\"center\">"; echo "Session expired<br/>----<br/>"; echo "<b>Name:</b><br/><input name=\"numele\" format=\"*x\" maxlength=\"30\"/><br/>"; echo "<b>Password:</b><br/><input type=\"parola\" name=\"parola\" maxlength=\"30\"/><br/>"; echo "<anchor>»autentificare«<go href=\"logare2.php\" method=\"get\">"; echo "<postfield name=\"numele\" value=\"$(numele)\"/>"; echo "<postfield name=\"parola\" value=\"$(parola)\"/>"; echo "</go></anchor>"; echo "<br/>-------<br/><img src=\"../images/home.gif\" alt=\"*\"/><a href=\"index.php\">index site</a><br/>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } //echo isbanned($uid); if(isbanned($uid)) { echo "<card id=\"main\" title=\"".$nume."\">"; echo "<p align=\"center\">"; echo "<img src=\"../images/notok.gif\" alt=\"x\"/><br/>"; echo "You are <b>Banned</b><br/>"; $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM come4me_wapchat_penalties WHERE uid='".$uid."' AND penalty='1'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM come4me_wapchat_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "<b>Time to remaning: </b>$rmsg<br/>"; $nick = getnick_uid($banto[2]); echo "<b>From: </b>$nick<br/>"; echo "<b>Reason: </b>$banto[1]"; //echo "<a href=\"index.php\">Login</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } /////////////////////////lista conectati $whonick = getnick_uid($who); $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM come4me_wapchat_popups WHERE unread='1' AND touid='".$uid."'")); echo "<card id=\"chat\" title=\"Online list\" ontimer=\"conectati.php?uid=$uid"; echo "&sid=$sid&page=$page&r=$r"; echo "\">"; $refresh = mysql_fetch_array(mysql_query("SELECT prefresh FROM come4me_wapchat_users WHERE id='".$uid."'")); echo "<timer value=\"$refresh[0]\"/>"; addonline(getuid_sid($sid),"Online list (wap 1.0)","conectati.php?uid=$uid&page=$page&r=$r"); $tmsg = getpmcount(getuid_sid($sid)); $umsg = getunreadpm(getuid_sid($sid)); if($umsg>0) { echo "<small>Messages:(<a href=\"posta.php?in=prim&sid=$sid\">$umsg</a>)</small><br/>"; } //////ALL LISTS SCRIPT << $linii = mysql_fetch_array(mysql_query("SELECT lrefresh FROM come4me_wapchat_users WHERE id='".$uid."'")); if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= $linii[0]; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; //changable sql $sql = "SELECT a.name, a.hidden, a.sex, a.icon, b.place, b.userid , lastact FROM come4me_wapchat_users a INNER join come4me_wapchat_online b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page"; echo "<p><small>"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) if($uid!=$item[3]) { { $sex = mysql_fetch_array(mysql_query("SELECT sex FROM come4me_wapchat_users WHERE name='$item[0]'")); if($sex[0]=="M") { $usersex = "M"; } if($sex[0]=="F") { $usersex = "F"; } if($sex[0]=="") { $usersex = ""; } $bmsg = parsepm1(getbudmsg($item[5]), $sid); if($bmsg!="") { $budmood="<u>Statute</u>: $bmsg"; }else{ $budmood="<u>Situated</u>: $item[4]"; } $var1 = date("His",$noi[0]); $var2 = time(); $var21 = date("His",$var2); $var3 = $var21 - $var1; $var4 = date("s",$var3); $remain = time() - $item[6]; $nop = gettimemsg($remain); if($nop!="") { $notast="<img src=\"../images/idle.png\" alt=\"+\"/><b>Idle:</b> $nop<br/>"; }else{ $notast=""; } if($item[1]>0) { $lnk = "»<b></b><img src=\"".htmlspecialchars($item[3])."\" alt=\"+\"/><a href=\"vizualizeazaprofil.php?uid=$uid&who=$item[5]&sid=$sid\">".getsimbol($item[5])."$item[0]</a>-$usersex "; echo "$lnk-".getstatus($item[5])." <br/>$notast$budmood<br/>--<br/>"; /* $chef = mysql_fetch_array(mysql_query("SELECT chef FROM come4me_wapchat_users WHERE id='".$item[5]."'")); if($chef[0]==1) { echo "$budmood<br/>--<br/>"; }else{ echo "$item[4]<br/>--<br/>"; } */ }else{ } } } echo "</small></p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<small><a href=\"conectati.php?uid=$uid&page=$ppage&sid=$sid\"> Previous</a>"; echo " | </small>"; } if($page<$num_pages) { $npage = $page+1; echo "<small><a href=\"conectati.php?uid=$uid&page=$npage&sid=$sid\">Next</a></small>"; echo ""; } echo "<br/><small>$page/$num_pages</small><br/>"; if($num_pages>2) { echo getjumper($action, $sid,"conectati"); } echo "<small><br/>--<br/><a href=\"meniu_prim.php?uid=$uid&sid=$sid\">Home</a>"; echo "|"; echo "<a href=\"conectati.php?sid=$sid&page=1&r=$r&uid=$uid\">Online</a>"; echo "|"; echo "<a href=\"forum.php?action=forum&sid=$sid\">Forum</a><br/>"; echo "<a href=\"descarca.php?action=prim&sid=$sid\">Download</a>"; echo "|"; echo "<a href=\"statistici2.php?uid=$uid&sid=$sid\">Statistics</a>"; echo "|"; echo "<a href=\"album.php?uid=$uid&sid=$sid\">Gallery</a></small><br/>"; echo "</p>"; echo "</card>"; ?> </wml>
please help me
Comment