<?php

header ("Content-type:text/vnd.wap.wml; charset=utf-8");

print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'.
' "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';

include "./ini.php";
mysql_query ("select * from bannedib WHERE ci='$ci' AND (ip = '".getenv(REMOTE_ADDR)."')and(browser = '".getenv(HTTP_USER_AGENT)."')");
                        if(mysql_affected_rows()!=0){include "b.php";}
$login = autorize();
print '<card title="'.$lang['modering'].'">'.
'<p align="center">';
if($login&&$login['moder']) {

        switch($mod) {

        case 'setstatus':
        if(empty($act)) {
        print $lang['who'].":<br/><input name=\"who\" value=\"$who\"/><br/>
        ".$lang['status'].":<br/><input name=\"status\" value=\"".$data['status']."\"/><br/>
        <anchor>".$lang['ok']."<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\">
        <postfield name=\"act\" value=\"set\"/>
        <postfield name=\"who\" value=\"$(who)\"/>
        <postfield name=\"status\" value=\"$(status)\"/>
        </go></anchor><br/>"; } else {
        if(@mysql_query("update `".$px.$utable."` set status='$status' where login='$who' and ci='$ci'")) print $lang['done'];
        else print $lang['error'];
        }
        break;
 case "makemoder":
        if(@mysql_query("update `".$px.$utable."` set moder=1 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>".$lang['is_moder']; }
        break;
        case 'delmoder':
        if(@mysql_query("update `".$px.$utable."` set moder=0 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>".$lang['is_not_moder']; }
	
	break;     
   	case 'makekiller':
        if(@mysql_query("update `".$px.$utable."` set moder=2 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>".$lang['is_killer']; }
        break;
        case 'delkiller':
        if(@mysql_query("update `".$px.$utable."` set moder=0 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>".$lang['is_not_killer']; }
        break;
        case 'maketopmoder':
        if(@mysql_query("update `".$px.$utable."` set moder=4 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>".$lang['is_topmoder']; }
        break;
        case 'deltopmoder':
        if(@mysql_query("update `".$px.$utable."` set moder=0 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>".$lang['is_not_topmoder']; }
        break;
        case 'makeshpion':
        if(@mysql_query("update `".$px.$utable."` set moder=3 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>Spy is Maked !"; }
                break;
        case 'makesenior':
        if(@mysql_query("update `".$px.$utable."` set moder=5 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>Maked Senoir Mod !"; }
	        break;
        case 'delsenior':
        if(@mysql_query("update `".$px.$utable."` set moder=0 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>Senoir Mod deleted !"; }
	break;
        case 'delshpion':
        if(@mysql_query("update `".$px.$utable."` set moder=0 where id='".$whoid."' and ci='".$ci."';")) {
                print "<b><u>".$dbuser['login']."</u></b>Spy is deleted !"; }
        break;

        case 'delmsgs':
        if(@mysql_query("delete from `".$px.$mtable."` where ci='$ci'")&&@mysql_query("delete from `".$px.$vtable."` where ci='$ci'")) print $lang['done'];
        else print $lang['error'];
          break;
        case 'addquiz':
        $q = @mysql_query("select * from `".$px.$quiz."` where login='".$login['id']."' and ci='$ci' order by id desc;");
        $last_meet = @mysql_fetch_array($q);
        if(empty($act)) {
                print $lang['title'].":<br/><input name=\"t\"/><br/>
                        ".$lang['content'].":<br/><input name=\"content\"/><br/>
                        ".$lang['organizators'].":<br/><input name=\"organizatory\"/><br/>
                        <anchor>".$lang['ok']."<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\">
                        <postfield name=\"act\" value=\"add\"/>
                        <postfield name=\"t\" value=\"$(t)\"/>
                        <postfield name=\"content\" value=\"$(content)\"/>
                        <postfield name=\"organizatory\" value=\"$(organizatory)\"/></go></anchor><br/>";
        } else { if(empty($error)) {
        if($t!=$last_meet['title']) {

        if(@mysql_query("insert into `".$px.$quiz."` values(0,'".$login['login']."','$t','$content','$organizatory','$ci');")) { print $lang['done']; } else { print $lang['error']; } } else { print $lang['meet_exist']; }
        } else { print $error; } }
        break;
               case 'delquiz':
        $q = @mysql_query("select * from `".$px.$quiz."` where ci='$ci' order by id desc;");
        if(empty($act)) {
        while($arr = @mysql_fetch_array($q)) {
        print "<a href=\"moder.php?ci=$ci&amp;act=del&amp;id=$id&amp;pass=$pass&amp;delid=".$arr['id']."&amp;mod=$mod\">".$arr['title']."</a><br/>";  }
        } else {
        if(mysql_query("delete from `".$px.$quiz."` where id='$delid' and ci='$ci' limit 1;")) print $lang['done'];
        }
        break;
        case "photo":
        if(empty($act)) {
        print "User:<br/><input name=\"who\"/><br/>
        Photo url:<br/><input name=\"link\" value=\"photos/\"/><br/>
        <anchor>OK<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\">
        <postfield name=\"act\" value=\"add\"/>
        <postfield name=\"who\" value=\"$(who)\"/>
        <postfield name=\"link\" value=\"$(link)\"/>
        </go></anchor><br/>"; } else {
        if(@mysql_query("update `".$px.$utable."` set photo='$link' where login='$who' and ci='$ci'")) {print "Sucessful;";}
         }
        break;

         case "cash":
        if(empty($act)) {
print "<small>User:</small><br/><input name=\"who\"/><br/>
<small>cash:</small><br/><input name=\"num\" format=\"*N\" value=\"\"/><br/>
<small><anchor>Ok<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=cash\" method=\"post\">
<postfield name=\"act\" value=\"add\"/>
<postfield name=\"who\" value=\"$(who)\"/>
<postfield name=\"num\" value=\"$(num)\"/>
</go></anchor></small><br/>"; } else {
if(mysql_query("update `".$px.$utable."` set cash='$num' where ci='$ci' AND login='$who'")) print "<b>Cash Successful</b><br/>";
else print $lang['error'];
}
break;
      case "quiz":
        if(empty($act)) {
print "<small>User:</small><br/><input name=\"who\"/><br/>
<small>Quiz points:</small><br/><input name=\"num\" format=\"*N\" value=\"\"/><br/>
<small><anchor>Ok<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=quiz\" method=\"post\">
<postfield name=\"act\" value=\"add\"/>
<postfield name=\"who\" value=\"$(who)\"/>
<postfield name=\"num\" value=\"$(num)\"/>
</go></anchor></small><br/>"; } else {
if(mysql_query("update `".$px.$utable."` set quiz='$num' where ci='$ci' AND login='$who'")) print "<b>Successful!</b><br/>";
else print $lang['error'];
}
break;  
   break;
case 'razip':
$q = mysql_query("select * from bannedib where ci='".$ci."' order by mid desc;");
if(empty($act)) {
while($arr=mysql_fetch_array($q)) {
print "<small><a href=\"moder.php?ci=$ci&amp;id=$id&amp;act=del&amp;pass=$pass&amp;mod=razip&amp;mid=".$arr['mid']."&amp;cid=$cid\">".$arr['ip'].",".$arr['browser']."</a></small><br/>";
}
} else {
if(mysql_query("delete from bannedib where ci='$ci' AND mid='$mid' limit 1;")) print "<b><small>IP+BROWSER Restored Now !</small></b><br/>";
}
break;
    case 'createroommod':
        if(empty($act)) {
        print "create Room:<br/><input type=\"text\" name=\"name\"/><br/>";
        print "Position:<br/><input size=\"2\" name=\"pos\" format=\"*N\"/><br/>";
        print "<anchor>Create<go href=\"mod1.php?ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\"><postfield name=\"name\" value=\"$(name)\"/><postfield name=\"pos\" value=\"$(pos)\"/></go></anchor><br/>";
        } else {
        $query = @mysql_query("select * from `".$px.$test."` where mod='room' and ci='$ci' order by id desc;");
        $db = @mysql_fetch_array($query);
        $ex = intval(substr($db['var'], 4));
        $i = $ex + 10;
        $name=htmlspecialchars(stripslashes(trim(substr($name,0,50))));
        $pos=htmlspecialchars(stripslashes(trim(substr($pos,0,10))));
        if(@mysql_query("insert into `".$px.$test."` values(0, 'room', 'room".$i."', '$name', '$name', '$pos', '$ci');")) print "<b>error not created!</b><br/>";
        }
        break;

        case 'editnik':
        if(empty($act)) {
        print $lang['old_nick']."<br/><input type=\"text\" name=\"old\"/><br/>";
        print $lang['new_nick']."<br/><input type=\"text\" name=\"new\"/><br/>";
        print "<anchor>".$lang['ok']."<go href=\"moder.php?ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\"><postfield name=\"old\" value=\"$(old)\"/><postfield name=\"new\" value=\"$(new)\"/></go></anchor><br/>";
        } else {
        $q = @mysql_query("select * from `".$px.$utable."` where login='$new' and ci='$ci' limit 1;");
        $ud = @mysql_fetch_array($q);
        if($ud['id']) { print $lang['such_nick_exist']; } else {
        if(@mysql_query("update `".$px.$utable."` set login='$new' where login='$old' and ci='$ci';")) print $lang['done'];
        else print $lang['user_not_exist']; }
        }
        break;

        case 'kill';
        if($login['moder']>=2) {
        $q = @mysql_query("select * from `".$px.$utable."` where id='$whoid' and ci= '$ci';");
        $dbuser = @mysql_fetch_array($q);
        if(@mysql_query("update `".$px.$utable."` set ban='kill' where id='".$whoid."' and ci='$ci';"))
                print "<b><u>".$dbuser['login']."</u>".$lang['killed']."</b><br/>"; }
        else print $lang['access_denied'];
        break;

        case 'agent';
        if($login['moder']>=3) {
        $q = @mysql_query("select * from `".$px.$utable."` where id='$whoid' and ci='$ci';");
        $dbuser = @mysql_fetch_array($q);
        print "<b>Ip:</b><br/>".$dbuser['ip']."<br/>";
        print "<b>Browser:</b><br/>".$dbuser['soft']."<br/>"; }
        else print $lang['access_denied'];
        break;

        case 'restore';
        if($login['moder']>1) {

        if(empty($act)) {
                print $lang['login'].":<br/><input type=\"text\" name=\"who\"/><br/>";
                print "<anchor>".$lang['ok']."<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;mod=$mod\" method=\"post\"><postfield name=\"act\" value=\"kick\"/><postfield name=\"who\" value=\"$(who)\"/></go></anchor><br/>";
        } else {
                $q = @mysql_query("select * from `".$px.$utable."` where login='$who' and ci='$ci';");
                $dbuser = @mysql_fetch_array($q);
                if(@mysql_query("update `".$px.$utable."` set ban='', btime='', breason='' where login='".$who."' and ci='$ci';"))
                        print "<b><u>".$who."</u>".$lang['restored']."</b><br/>";
                }
        }
        else print $lang['access_denied'];
        break;

        case 'kick':

        if(empty($act)) {
                print $lang['reason'].":<br/><input type=\"text\" name=\"pr\"/><br/>
                <select name=\"len\">
                <option value=\"30\">30".$lang['s']."</option>
                <option value=\"60\">60".$lang['s']."</option>
                <option value=\"90\">1".$lang['m']." 30".$lang['s']."</option>
                <option value=\"120\">2".$lang['m']."</option>
                <option value=\"300\">5".$lang['m']."</option>
                <option value=\"600\">10".$lang['m']."</option>";

	
        	if($login['admin']>=0)
                print "<option value=\"1800\">30".$lang['m']."</option><option value=\"3600\">1".$lang['h']."</option><option value=\"86400\">24".$lang['h']."</option>";
                print "</select><br/>
                <anchor>".$lang['kick']."<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;mod=$mod\" method=\"post\"><postfield name=\"len\" value=\"$(len)\"/><postfield name=\"act\" value=\"kick\"/><postfield name=\"whoid\" value=\"$whoid\"/><postfield name=\"pr\" value=\"$(pr)\"/></go></anchor><br/>";
        } else {

                if($login['moder']>=1 && $len<=600 || $login['admin']>=0 && $len<=86400 || $login['moder']>=2 && $len<=86400) {
                $q = @mysql_query("select * from `".$px.$utable."` where id='$whoid' and ci='$ci';");
                $dbuser = @mysql_fetch_array($q);
                if(@mysql_query("update `".$px.$utable."` set ban='".$login['login']."', btime='".(time() + $len)."', breason='$pr' where id='".$whoid."' and ci='$ci';"))
                        print "<b><u>".$dbuser['login']."</u>".$lang['kicked']."</b><br/>"; }
        


	}
        break;

        case 'addmeet':
        $q = @mysql_query("select * from `".$px.$meettable."` where login='".$login['id']."' and ci='$ci' order by id desc;");
        $last_meet = @mysql_fetch_array($q);
        if(empty($act)) {
                print $lang['title'].":<br/><input name=\"t\"/><br/>
                        ".$lang['content'].":<br/><input name=\"content\"/><br/>
                        ".$lang['organizators'].":<br/><input name=\"organizatory\"/><br/>
                        <anchor>".$lang['ok']."<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\">
                        <postfield name=\"act\" value=\"add\"/>
                        <postfield name=\"t\" value=\"$(t)\"/>
                        <postfield name=\"content\" value=\"$(content)\"/>
                        <postfield name=\"organizatory\" value=\"$(organizatory)\"/></go></anchor><br/>";
        } else { if(empty($error)) {
        if($t!=$last_meet['title']) {

        if(@mysql_query("insert into `".$px.$meettable."` values(0,'".$login['login']."','$t','$content','$organizatory','$ci');")) { print $lang['done']; } else { print $lang['error']; } } else { print $lang['meet_exist']; }
        } else { print $error; } }
        break;

        case 'delmeet':
        $q = @mysql_query("select * from `".$px.$meettable."` where ci='$ci' order by id desc;");
        if(empty($act)) {
        while($arr = @mysql_fetch_array($q)) {
        print "<a href=\"moder.php?ci=$ci&amp;act=del&amp;id=$id&amp;pass=$pass&amp;delid=".$arr['id']."&amp;mod=$mod\">".$arr['title']."</a><br/>";  }
        } else {
        if(mysql_query("delete from `".$px.$meettable."` where id='$delid' and ci='$ci' limit 1;")) print $lang['done'];
        }
        break;

        case 'title':
        if(empty($act)) {
        print $lang['head']."<br/><input type=\"text\" name=\"t\"/><br/>".$lang['room']."<br/><select name=\"name\">";
        $q = @mysql_query("select * from `".$px.$stable."` where `mod`='room' AND ci='$ci';");
        while ($dbdata = @mysql_fetch_array($q)) {
        print "<option value=\"".$dbdata['var']."\">".$dbdata['val1']."</option>"; }
        print "</select><br/>
        <anchor>Change<go href=\"moder.php?ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\"><postfield name=\"name\" value=\"$(name)\"/><postfield name=\"t\" value=\"$(t)\"/></go></anchor><br/>";
        } else {
        $t=htmlspecialchars(stripslashes(trim(substr($t,0,25))));
        if(@mysql_query("update `".$px.$stable."` set val2='$t' where var='$name' AND `mod`='room' and ci='$ci';")) print $lang['done'];
        }
        break;
        case 'head':
        if(empty($act)) {
        print $lang['head']."<br/><input type=\"text\" name=\"t\"/><br/>".$lang['room']."<br/><select name=\"name\">";
        $q = @mysql_query("select * from `".$px.$stable."` where `mod`='room' and ci='$ci';");
        while ($dbdata = @mysql_fetch_array($q)) {
        print "<option value=\"".$dbdata['var']."\">".$dbdata['val1']."</option>"; }
        print "</select><br/>
        <anchor>Change header<go href=\"moder.php?ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod\" method=\"post\"><postfield name=\"name\" value=\"$(name)\"/><postfield name=\"t\" value=\"$(t)\"/></go></anchor><br/>";
        } else {
        $t=htmlspecialchars(stripslashes(trim(substr($t,0,25))));
        if(@mysql_query("update `".$px.$stable."` set val1='$t' where var='$name' and `mod`='room' and ci='$ci';")) print $lang['done'];
        }
        break;

     case 'team':
        if(empty($act)) {
        print "Username:<br/><input name=\"who\" value=\"$who\"/><br/>
        Team:<br/><input name=\"status\" value=\"".$data['status']."\"/><br/>
        <anchor>Change<go href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=team\" method=\"post\">
        <postfield name=\"act\" value=\"set\"/>
        <postfield name=\"who\" value=\"$(who)\"/>
        <postfield name=\"status\" value=\"$(status)\"/>
        </go></anchor><br/>"; } else {

        if(@mysql_query("update `".$px.$utable."` set team='$status' where login='$who' and ci='$ci'")) {print "Change Successful";}

        }

break;
case "intro":
        if(empty($act)) {
print "<small>Enter Fun-ChaT in the box below:</small><br/><input name=\"who\"/><br/>
<small>Change Introduction:</small><br/><input name=\"intro\" value=\"\"/><br/>
<small><anchor>Ok<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=intro\" method=\"post\">
<postfield name=\"act\" value=\"add\"/>
<postfield name=\"who\" value=\"$(who)\"/>
<postfield name=\"intro\" value=\"$(intro)\"/>
</go></anchor></small><br/>"; } else {
if(mysql_query("update `".$px.$team."` set intro='$intro' where ci='$ci' AND team='$who'")) print "<b>Done !</b><br/>";
else print $lang['error'];
}
break;

   case 'rapwin':
        if(empty($act)) {
        print "User:<br/><input name=\"who\" value=\"$who\"/><br/>
        Wins:<br/><input name=\"wins\" value=\"".$data['wins']."\"/><br/>
        <anchor>Ok<go href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=rapwin\" method=\"post\">
        <postfield name=\"act\" value=\"set\"/>
        <postfield name=\"who\" value=\"$(who)\"/>
        <postfield name=\"wins\" value=\"$(wins)\"/>
        </go></anchor><br/>"; } else {

        if(@mysql_query("update `".$px.$utable."` set wins='$wins' where login='$who' and ci='$ci'")) {print "Successful";}

        }



break;
 case 'raplose':
        if(empty($act)) {
        print "User:<br/><input name=\"who\" value=\"$who\"/><br/>
        Lose:<br/><input name=\"lose\" value=\"".$data['lose']."\"/><br/>
        <anchor>Ok<go href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=raplose\" method=\"post\">
        <postfield name=\"act\" value=\"set\"/>
        <postfield name=\"who\" value=\"$(who)\"/>
        <postfield name=\"lose\" value=\"$(lose)\"/>
        </go></anchor><br/>"; } else {

        if(@mysql_query("update `".$px.$utable."` set lose='$lose' where login='$who' and ci='$ci'")) {print "Successful";}

        }

        break;
         case 'ipb':
        if(empty($act)) {
print "<small>....!</small><br/>";
} else {
$query_users = mysql_query("select * from chat_users where ci='".$ci."' AND login='".$who."';");
$query_login = mysql_query("select * from chat_users where ci='".$ci."' AND (id='".$id."' or login='".$login."');");
if (MySQL_Num_rows($query_users)==0) {print "<small>No Banned Users !</small><br/>";
} else {
$data = mysql_fetch_array($query_users);
$must = mysql_fetch_array($query_login);
$id = $must['id'];
$login = $must['login'];
$moder=$must['moder'];
$user_moder=$data['moder'];
$admin=$must['admin'];
$to=$data['email'];
$from=$must['email'];
$photo=$data['photo'];
$status=$data['status'];
$ip=$data['ip'];
$browser=$data['soft'];
print "<small>User Name : ".$data['login']."<br/>ip: $ip<br/>Browser:  $browser"; }
$browser = UrlEncode($browser);
                        echo "<br/><a href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=banip&amp;act=add&amp;ip=$ip&amp;brows=$browser\">Ban Ip</a><br/></small>";
}
break;

case 'banip':
        if(empty($act)) {
print "<small>....!</small><br/>";
} else {
$browser = UrlDecode($browser);
if(mysql_query("insert into bannedib values(0,'$ip','$brows','$login','$ci');")) print "<b><small>IP: $ip + Browser: $brows Banned !</small></b><br/>";
}
break;

        default:
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=addmeet\">Add Meeting</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delmeet\">Delete Meeting</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=createroommod\">Create User Room</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=title\">Change Room Head</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=head\">Rename Room</a><br/>";
if($login['moder']>=2)
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=restore\">Restore Login</a><br/>";
if($login['moder']>=5)
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=addquiz\">Add Quiz Question</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delquiz\">Delete Quiz Question</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=quiz\">Quiz Points</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=razip\">Restore Ip</a><br/>";
print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=photo\">Add Photo</a><br/>";
if($login['moder']>=4) {
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=editnik\">Change Nick</a><br/>";
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=setstatus\">Change Status</a><br/>";
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delmsgs\">Empty Rooms</a><br/>";
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=team\">Change Team</a><br/>";
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=rapwin\">Add Rap Win</a><br/>";
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=raplose\">Add Rap Lose</a><br/>";
print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=intro\">Change Introduction</a><br/>";
       print "<a href=\"$PHP_SELF?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=cash\">Give N Take Cash</a><br/>";
 }
        break;
        }
        if($mod)
        print "<a href=\"./moder.php?ci=$ci&amp;id=$id&amp;pass=$pass\">".$lang['modering']."</a><br/>";
        if($room)
        print "<a href=\"./room.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room\">".$lang['to_chat']."</a><br/>";
        else
        print "<a href=\"./enter.php?ci=$ci&amp;id=$id&amp;pass=$pass\">".$lang['holl']."</a><br/>";
                } else { $lang['access_denied']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>
