can any tell me wat iz da code for show where online da user iz
and auto nick registration stopper help pzzzz
and auto nick registration stopper help pzzzz
<?php $r=rand(0,100000); header ("Content-type:text/vnd.wap.wml; charset=utf-8"); echo '<?xml version="1.0" encoding="UTF-8"?>'; echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'; echo '<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>'; include "./ini.php"; $login = autorize(); if($search) { $query_users = @mysql_query("select * from `".$px.$utable."` where login='".$dblogin."' and ci= '$ci';"); $data = @mysql_fetch_array($query_users); } else { $query_users = @mysql_query("select * from `".$px.$utable."` where id='$dbid' and ci='$ci';"); $data = @mysql_fetch_array($query_users); } echo "<card title=\"".$data['login']."\">"; print "<p align=\"center\">"; if($login) { pop($id); whowhere($id,'In Profile Of '.$data['login'].''); $name=$data['login']; $moder=$login['moder']; $admin=$login['admin']; $from=$login['email']; $user_moder=$data['moder']; $user_admin=$data['admin']; $to=$data['email']; $photo=$data['photo']; $status=$data['status']; $post=$data['posts']; if ($login['fsize'] == "small") { $fsize1 = "[size="1"]"; $fsize2 = "[/size]"; } else if ($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; } else { $fsize1 = ""; $fsize2 = ""; } echo $fsize1; if($data['sex']=="m") { $sex = "<img src=\"./images/m.gif\" alt=\"\"/>Male";} else { $sex = "<img src=\"./image/fe.gif\" alt=\"\"/>Female"; } if(!empty($photo)) { //echo "<img src=\"./max.php?filename=$photo\" alt=\"\"/> "; echo "<img src=\"$photo\" alt=\"Avatar\"/> "; echo "[b]<a href=\"$photo\">".$data['login']."</a>[/b] "; } else { echo "[u][b]".$data['login']." [/b][/u] "; } if ($user_admin['admin']==2) { echo"[b]Status: [/b]Owner* <img src=\"./images/order.gif\" alt=\"\"/> ";} else if ($user_admin['admin']=='1') { echo"[b]Status: [/b]Administrator <img src=\"./images/staff.gif\" alt=\"\"/> ";} else if ($user_moder&&$user_moder['moder']>='4') { echo"[b]Status: [/b]Head Mod <img src=\"./images/staff.gif\" alt=\"\"/> ";} else if ($user_moder&&$user_moder['moder']>='3') { echo"[b]Status: [/b]Spy <img src=\"./images/staff.gif\" alt=\"\"/> ";} else if ($user_moder&&$user_moder['moder']>='2') { echo"[b]Status: [/b]Killer <img src=\"./images/staff.gif\" alt=\"\"/> ";} else if ($user_moder&&$user_moder['moder']>='1') { echo"[b]Status: [/b]Moderator <img src=\"./images/staff.gif\" alt=\"\"/> ";} else if ($post>=10000){ echo "[b]Status: [/b]Legend Chatter ";} else if ($post>=7000){ echo "[b]Status: [/b]Crazy Chatter ";} else if ($post>=5000){ echo "[b]Status: [/b]Real Chatter ";} else if ($post>=3000){ echo "[b]Status: [/b]Chatter ";} else if ($post>=1000){ echo "[b]Status: [/b]Advanced Member ";} else if ($post>=500){ echo "[b]Status: [/b]Member ";} else if ($post>=100){ echo "[b]Status: [/b]Bignner ";} else if ($post>=20){ echo "[b]Status: [/b]New User ";} else echo "[b]Status: [/b]New Commer "; echo $fsize2; print "</p>"; print "<p align=\"left\">"; echo $fsize1; if($data['pic']=="M1") { $pic= "<img src=\"images/m1.jpeg\" alt=\"\"/>"; } if($data['pic']=="F1") { $pic= "<img src=\"images/f1.jpeg\" alt=\"\"/>"; } if($data['pic']=="F2") { $pic= "<img src=\"images/f2.jpeg\" alt=\"\"/>"; } if($data['pic']=="F3") { $pic= "<img src=\"images/f3.jpeg\" alt=\"\"/>"; } if($data['pic']=="F4") { $pic= "<img src=\"images/f4.jpeg\" alt=\"\"/>"; } if($data['pic']=="F5") { $pic= "<img src=\"images/f5.jpeg\" alt=\"\"/>"; } if($data['pic']=="F6") { $pic= "<img src=\"images/f6.jpeg\" alt=\"\"/>"; } if($data['pic']=="F7") { $pic= "<img src=\"images/f7.jpeg\" alt=\"\"/>"; } if($data['pic']=="F8") { $pic= "<img src=\"images/f8.jpeg\" alt=\"\"/>"; } if($data['pic']=="king") { $pic= "<img src=\"images/king.jpeg\" alt=\"\"/>"; } if($data['pic']=="Queen") { $pic= "<img src=\"images/queen.jpeg\" alt=\"\"/>"; } //echo "[b]Avatar: [/b]$pic "; echo " [b]Name: [/b]".$data['name']." "; echo "[b]Sex: [/b]$sex "; $cyear=2007; $age=$cyear - $data['byear']; if ($age>100){ echo "[b]Age: [/b]I am very old ! ";} else if ($age>60){ echo "[b]Age: [/b]60+ ";} else if ($age<0){ echo "[b]Age: [/b]Me not yet born lol :) ";} else echo "[b]Age: [/b]$age "; echo "[b]Birthday: [/b]".$data['bday']."-".$data['bmonth']."-".$data['byear']." "; echo "[b]Location: [/b]".$data['live']." "; $phnupdated=mysql_query("UPDATE chat_users SET mobile='".$browser."' WHERE id='".$id."'"); $usip = $data['ip']; $usid = $data['id']; if(($login['moder']>='3')&&empty($data['admin'])) print "[b]IP: [/b]<a href=\"byip.php?id=$id&pass=$pass&room=$room&who=$usid\">".$usip."</a> "; echo "[b]Browser: [/b]".$data['soft']." "; echo "[b]Cash Points: [/b]".$data['cash']." "; echo "[b]Quiz Points: [/b]".$data['quiz']." "; print "[b]Rap Won/Lost: [/b]".$data['wins']."/".$data['lose']." "; echo "[b]Chat Posts: [/b]".$data['posts']." "; echo "[b]WAP Site: [/b]<a href=\"".$data['wapsite']."\">".$data['wapsite']."</a> "; echo "[b]E-Mail: [/b]".$to." "; print "[b]Team: [/b] ".$data['team']." "; echo "[b]About Me: [/b]".$data['about']." "; echo "[b]Last Login: [/b]".date("d-m-Y", $data['vposts'])." "; echo "[b]Date Registerd: [/b]".date("d-m-Y", $data['rtime'])." "; /////////////////////////////////////// include "./mods_tools.php"; /////////////////////////////////////// echo $fsize2; print "</p>"; print "<p align=\"center\">"; echo $fsize1; echo "<a href=\"ignor.php?ci=$ci&id=$id&pass=$pass&room=$room&r=$r&mod=set&whoid=".$data['id']."\">» Add ".$data['login']." To Ignore List</a> "; $qr = mysql_fetch_array(mysql_query("SELECT COUNT(`id`) FROM `".$px.$buddy."` where `name`='".$data['login']."' AND `test`='".$login['login']."' AND ci= '$ci'")); if( $qr[0]!=0) { echo "<a href=\"rembud.php?ci=$ci&id=$id&pass=$pass&room=$room&r=$r&moo=".$data['login']."\">» Remove ".$data['login']." From Buddies</a> "; } else { echo "<a href=\"addbud.php?ci=$ci&id=$id&pass=$pass&room=$room&r=$r&moo=".$data['login']."\">» Add ".$data['login']." To Buddies</a> "; } echo "<a href=\"./letters/sendform.php?ci=$ci&id=$id&pass=$pass&room=$room&r=$r&to=".$data['login']."\">» Mail To ".$data['login']."</a> "; if($room) echo "--- <a href=\"room.php?ci=$ci&id=$id&pass=$pass&room=$room&r=$r\">» Back To ChaT</a> "; else echo "--- <img src=\"./images/home.png\" alt=\"\"/> <a href=\"enter.php?ci=$ci&id=$id&pass=$pass&r=$r\">Hall</a> "; echo $fsize2; } else { echo "[b]You Are Not Logged In !!![/b]"; } print '</p>'; print '<p align="center">'; print "".$lang['copy']." "; print '</p>'. '</card>'. '</wml>'; ob_end_flush(); @mysql_close(); ?>
Comment