Вход Регистрация
Файл: admin.php
Строк: 385
<?php
#######################################################
#             За дополнениями обращайтесь:            #
#                   icq 449-424-588                   #
#               email: Dimonnet@inbox.ru              #
#######################################################
#         created by ___хакер___ (MaZaFaKa)           #
#######################################################
# запрещено распространять чат на бесплатной основе!!!#
#######################################################
ini_set('display_errors''off');
header ("Content-type:text/html; charset=utf-8");

print 
'<?xml version="1.0" encoding="utf-8"?>';
print 
"<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">";

include "./ini.php";

$login autorize();
print 
"<title>Админка</title><link rel="StyleSheet" type="text/css" href="style/0".$s.".css"></head><body><div align="center"><div class="smain">";
mysql_query ("select * from bannedib WHERE `ci`='$ci' AND (ip = '".htmlspecialchars(getenv(REMOTE_ADDR))."')and(browser = '".htmlspecialchars(getenv(HTTP_USER_AGENT))."')");
                        if(
mysql_affected_rows()!=0){include "b.php";}

$login autorize();
if(
$login&&$login['admin']) {
        print 
"<div style="text-aligncenter"><div class="contur_rek"><div class="header_rek">Админка</div></div></div>";
        
$q = @mysql_query("select * from `".$px.$utable."` where `id`='".$whoid."' and `ci`='".$ci."';");
        print 
"<div style="text-alignleft"><div class="contur"><div class="header">";
        
$dbuser = @mysql_fetch_array($q);

        switch(
$mod) {

        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>&#1064;&#1087;&#1080;&#1086;&#1085;!"; }
        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>&#1053;&#1077; &#1096;&#1087;&#1080;&#1086;&#1085;!"; }
        break;
case 
'addnews':
        
$q = @mysql_query("select * from `chat_news` where `otkogo`='".$login['id']."' and `ci`='$ci' order by id desc;");
        
$last_new = @mysql_fetch_array($q);
        if(empty(
$act)) {
             print 
"<form action="admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1053;&#1086;&#1074;&#1086;&#1089;&#1090;&#1100;:<br/><input name="t"/><br/>
                        &#1047;&#1072;&#1075;&#1086;&#1083;&#1086;&#1074;&#1086;&#1082;:<br/><input name="
z"/><br/>
                        <input type="
hidden" name="act" value="add"/><input type="submit" value=" OK "></form>";

        } else { if(empty(
$error)) {
        if(
$z!=$last_new['title']) {

if(@
mysql_query("insert into `chat_news` values(0,'".$login['login']."','$t','$z','$ci');")) { print $lang['done']; } else { print $lang['error']; } } else { print "&#1058;&#1072;&#1082;&#1072;&#1103; &#1085;&#1086;&#1074;&#1086;&#1089;&#1090;&#1100; &#1091;&#1078;&#1077; &#1077;&#1089;&#1090;&#1100;!"; }
        } else { print 
$error; } }
        break;

        case 
'delnews':
        
$q = @mysql_query("select * from `chat_news` where `ci`='$ci' order by id desc;");
        if(empty(
$act)) {
        while(
$arr = @mysql_fetch_array($q)) {
        print 
"<a href="admin.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 `chat_news` where `id`='$delid' and `ci`='$ci' limit 1;")) print $lang['done'];
        }
        break;

        case 
'del':

        if(!empty(
$act)) {
        if(
mysql_query("delete from `".$px.$utable."` where `id`='$whoid' and `ci`='$ci';"))
                print 
"<b><u>".$dbuser['login']."</u></b> &#1059;&#1076;&#1072;&#1083;&#1105;&#1085;!<br/>";
        } else {
        print 
"<b><br/>&#1042;&#1099; &#1076;&#1077;&#1081;&#1089;&#1090;&#1074;&#1080;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086; &#1093;&#1086;&#1090;&#1080;&#1090;&#1077;?&#1059;&#1076;&#1072;&#1083;&#1080;&#1090;&#1100;
        <a href="
admin.php?ci=$ci&amp;act=del&amp;id=$id&amp;pass=$pass&amp;whoid=$whoid&amp;room=$room&amp;mod=$mod" method="get"/>".$lang['this_user']."</b><br/>";
        }
        break;

        case 
"photo":
        if(empty(
$act)) {
        print 
"<form action="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1050;&#1086;&#1084;&#1091;?:<br/><input type=text name="who"/><br/>
        &#1040;&#1076;&#1088;&#1077;&#1089; &#1092;&#1086;&#1090;&#1086;:<br/><input type=text name="
link" value="photos/"/><br/>
        <input type="
hidden" name="act" value="add"/><input type="submit" value="OK"></form></div>"; } else {
        if(@
mysql_query("update `".$px.$utable."` set photo='$link' where `login`='$who' and `ci`='$ci'")) {print "&#1092;&#1086;&#1090;&#1082;&#1072; &#1091;&#1089;&#1090;&#1072;&#1085;&#1086;&#1074;&#1083;&#1077;&#1085;&#1072;";}
         }
        break;

         case 
"posts":
        if(empty(
$act)) {
print 
"<form action="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=posts" method="post">&#1050;&#1086;&#1084;&#1091;:<br/><input name="who"/><br/>
&#1055;&#1086;&#1089;&#1090;&#1099;:<br/><input name="
num" format="*N" value=""/><br/>
<input type="
hidden" name="act" value="add"/><input type="submit" value=" OK "></form>"; } else {
if(
mysql_query("update `".$px.$utable."` set posts='$num' where `ci`='$ci' AND `login`='$who'")) print "&#1058;&#1077;&#1087;&#1077;&#1088;&#1100; &#1091; $who - <b>[$num] </b> &#1087;&#1086;&#1089;&#1090;&#1072;
<br/>"
;
else print 
$lang['error'];
}
break;

        case 
'setstatus':
        if(empty(
$act)) {
        print 
"<form action="./admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1050;&#1086;&#1084;&#1091;?(&#1053;&#1080;&#1082;):<br/><input name="who" value="$who"/><br/>
        &#1057;&#1090;&#1072;&#1090;&#1091;&#1089;:<br/><input name="
status" value="".$data['status'].""/><br/><input type="hidden" name="act" value="set"/>
        <input type="
submit" value=" OK "></form>"; } else {

        if(@
mysql_query("update `".$px.$utable."` set status='$status' where `login`='$who' and `ci`='$ci'")) {print "C&#1090;&#1072;&#1090;&#1091;&#1089; &#1080;&#1079;&#1084;&#1077;&#1085;&#1077;&#1085;<br/> &#1085;&#1072;<br/>[$status]<br/>";}

        }
        break;

        case 
'delmsgs':
        if(@
mysql_query("DELETE FROM `chat_messages` WHERE `ci` = '$ci'")&&@mysql_query("DELETE FROM `chat_vict` WHERE `ci` = '$ci'")) {print "&#1050;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099; &#1086;&#1095;&#1080;&#1097;&#1077;&#1085;&#1099;<br/>";} else {print "&#1054;&#1096;&#1080;&#1073;&#1082;&#1072;";}

        break;

        case 
'ipb':
        if(empty(
$act)) {
print 
"<form action="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=ipb" method="post">&#1042;&#1074;&#1077;&#1076;&#1080;&#1090;&#1077; &#1085;&#1080;&#1082;:<br/><input name="who"/><br/>
<input type="
hidden" name="act" value="search"/><input type="submit" value=" OK "></form>";
} 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 "&#1053;&#1077; &#1085;&#1072;&#1081;&#1076;&#1077;&#1085;!<br/>";
} else {
$data=mysql_fetch_array($query_users);
$must=mysql_fetch_array($query_login);
$id=htmlspecialchars($must['id'], ENT_QUOTES);
$login=htmlspecialchars($must['login'], ENT_QUOTES);
$moder=htmlspecialchars($must['moder'], ENT_QUOTES);
$user_moder=htmlspecialchars($data['moder'], ENT_QUOTES);
$admin=htmlspecialchars($must['admin'], ENT_QUOTES);
$to=htmlspecialchars($data['email'], ENT_QUOTES);
$from=htmlspecialchars($must['email'], ENT_QUOTES);
$photo=htmlspecialchars($data['photo'], ENT_QUOTES);
$status=htmlspecialchars($data['status'], ENT_QUOTES);
$ip=htmlspecialchars($data['ip'], ENT_QUOTES);
$browser=htmlspecialchars($data['soft'], ENT_QUOTES);
print 
"&#1053;&#1080;&#1082;: ".$data['login']."<br/>"; }
print 
"&#1055;&#1072;&#1088;&#1086;&#1083;&#1100;: ".$data['pass']."<br/>";
print 
"IP: ".$ip." <br/>";
print 
"&#1041;&#1088;&#1072;&#1091;&#1079;&#1077;&#1088;: ".$browser." <br/>";
$browser UrlEncode($browser);
                        echo 
"<br/><a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=banip&amp;action=add&amp;ip=$ip&amp;brows=$browser">&#1047;&#1072;&#1073;&#1072;&#1085;&#1080;&#1090;&#1100;</a><br/>";
}
break;

case 
'banip':
        if(empty(
$act)) {
print 
"<form action="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=banip" method="post">IP:<br/><input name="ip" value="".$ip.""/><br/>
&#1041;&#1088;&#1072;&#1091;&#1079;&#1077;&#1088;:<br/><input name="
brows" value="".$brows.""/><br/>
<input type="
hidden" name="act" value="add"/><input type="submit" value=" OK "></form>";
} else {
$browser UrlDecode($browser);
if(
mysql_query("insert into bannedib values(0,'$ip','$brows','$login','$ci');")) print "<b>IP: $ip+&#1041;&#1088;&#1072;&#1091;&#1079;&#1077;&#1088;: $brows &#1079;&#1072;&#1073;&#1072;&#1085;&#1077;&#1085;!<br/></b>";
}
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 
"<a href="admin.php?s=$s&amp;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><br/>";
}
} else {
if(
mysql_query("delete from bannedib where `ci`='$ci' AND `mid`='$mid' limit 1;")) print "<b>IP+BROWSER &#1056;&#1072;&#1079;&#1073;&#1072;&#1085;&#1077;&#1085;!</b><br/>";
}
break;

        case 
'delltrs':
        if(@
mysql_query(" delete from `chat_letters` where `ci`='$ci';")) {print "&#1055;&#1080;&#1089;&#1100;&#1084;&#1072; &#1091;&#1076;&#1072;&#1083;&#1077;&#1085;&#1099;<br/>";}
        else {print 
"&#1054;&#1096;&#1080;&#1073;&#1082;&#1072;<br/>";}
        break;

        case 
'editnameroom':
        if(empty(
$act)) {
        print 
"<form action="admin.php?s=$s&amp;ci=$ci&ampact=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1053;&#1072;&#1079;&#1074;&#1072;&#1085;&#1080;&#1077;:<br/><input type="text" name="t"/><br/>&#1050;&#1086;&#1084;&#1085;&#1072;&#1090;&#1072;:<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/><input type="submit" value=" ОК "></form>";
        } else {
        
$t=htmlspecialchars(stripslashes(trim(substr($t,0,50))));
        if(@
mysql_query("update `".$px.$stable."` set val1='$t' where `var`='$name' and `mod`='room' and `ci`='$ci';")) {print "&#1053;&#1072;&#1079;&#1074;&#1072;&#1085;&#1080;&#1077; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099; &#1080;&#1079;&#1084;&#1077;&#1085;&#1077;&#1085;&#1086;";}
        }
        break;

        case 
'editposroom':
        if(empty(
$act)) {
        print 
"<form action="admin.php?s=$s&amp;ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1055;&#1086;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077;:<br/>&#1085;&#1072;&#1095;&#1080;&#1085;&#1072;&#1077;&#1090;&#1089;&#1103; &#1089; 0
        <br/><input size="
2" name="pos" format="*N"/>
                        <br/>&#1050;&#1086;&#1084;&#1085;&#1072;&#1090;&#1072;:<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/><input type="submit" value=" ОК "></form>";
        } else {

        
$pos=htmlspecialchars(stripslashes(trim(substr($pos,0,50))));

        if(@
mysql_query("update `".$px.$stable."` set val3='$pos' where `var`='$name' and `mod`='room' and `ci`='$ci';")) print $lang['done'];
        }
        break;

        case 
'getpass':
        if(empty(
$act)) {
        print 
"<form action="?s=$s&amp;ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1042;&#1074;&#1077;&#1076;&#1080;&#1090;&#1077; &#1085;&#1080;&#1082;:<br/><input type="text" name="user"/><br/>";
        print 
"<input type="submit" value=" OK "></form>";
        } else {

        
$user htmlspecialchars(stripslashes(trim(substr($user,0,50))));

        
$q = @mysql_query("select pass from `".$px.$utable."` where `login`='$user' and `ci`='$ci' limit 1;");
        
$duser = @mysql_fetch_array($q);
        if(
$duser) print "<b>&#1055;&#1072;&#1088;&#1086;&#1083;&#1100; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1103; [$user] - ".$duser['pass']."!</b><br/>";
        else print 
$lang['user_not_exist'];
        }
        break;

        case 
'createroom':
        if(empty(
$act)) {
        print 
"<form action="admin.php?s=$s&amp;ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1053;&#1072;&#1079;&#1074;&#1072;&#1085;&#1080;&#1077; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099;:<br/><input type="text" name="name"/><br/>";
        print 
"&#1055;&#1086;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099;:<br/><input size="2" name="pos" format="*N"/><br/>";
        print 
"<input type="submit" value=" Создать ">";
        } else {
        
$query = @mysql_query("select * from `".$px.$stable."` where `mod`='room' and `ci`='$ci' order by id desc;");
        
$db = @mysql_fetch_array($query);
        
$ex intval(substr($db['var'], 4));
        
$i $ex 1;
        
$name=htmlspecialchars(stripslashes(trim(substr($name,0,50))));
        
$pos=htmlspecialchars(stripslashes(trim(substr($pos,0,10))));
        if(@
mysql_query("insert into `".$px.$stable."` values(0, 'room', 'room".$i."', '$name', '$name', '$pos', '$ci');")) print "<b>&#1050;&#1086;&#1084;&#1085;&#1072;&#1090;&#1072; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1072;!</b><br/>";
        }
        break;

        case 
'editnik':
        if(empty(
$act)) {
        print 
"<form action="?s=$s&amp;ci=$ci&amp;act=update&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1057;&#1090;&#1072;&#1088;&#1099;&#1081; &#1085;&#1080;&#1082;:<br/><input type="text" name="old"/><br/>";
        print 
"&#1053;&#1086;&#1074;&#1099;&#1081; &#1085;&#1080;&#1082;:<br/><input type="text" name="new"/><br/>";
        print 
"<input type="submit" value=" OK "></form>";
        } 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 "&#1043;&#1086;&#1090;&#1086;&#1074;&#1086;";}
         }
        }
        break;

        case 
"delroom":
        if(empty(
$act)) {
        print 
"<form action="?s=$s&amp;ci=$ci&amp;act=del&amp;id=$id&amp;pass=$pass&amp;mod=$mod" method="post">&#1050;&#1086;&#1084;&#1085;&#1072;&#1090;&#1072;:<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/><input type="submit" value="Удалить">";
        } else {

        if(@
mysql_query("delete from `".$px.$stable."` where `var`='$name' and `mod`='room' and `ci`='$ci';")) print $lang['done'];
        }
        break;

        default:
        print 
"</div></div></div><div style="text-alignleft"><div class="contur"><div class="header"><a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=editnameroom">&#8594; &#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1085;&#1072;&#1079;&#1074;&#1072;&#1085;&#1080;&#1077; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=editposroom">&#8594; &#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1087;&#1086;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=createroom">&#8594; &#1057;&#1086;&#1079;&#1076;&#1072;&#1090;&#1100; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1091;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delroom">&#8594; &#1059;&#1076;&#1072;&#1083;&#1080;&#1090;&#1100; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1091;</a><br/>";
        print 
"<a href="admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=addnews">&#8594; &#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1085;&#1086;&#1074;&#1086;&#1089;&#1090;&#1100;</a><br/>";
        print 
"<a href="admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delnews">&#8594; &#1059;&#1076;&#1072;&#1083;&#1080;&#1090;&#1100; &#1085;&#1086;&#1074;&#1086;&#1089;&#1090;&#1100;</a><br/></small>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=getpass">&#8594; &#1059;&#1079;&#1085;&#1072;&#1090;&#1100; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=ipb&amp;ref=$ref">&#8594; &#1041;&#1072;&#1085;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=razip&amp;ref=$ref">&#8594; &#1056;&#1072;&#1079;&#1073;&#1072;&#1085;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=photo">&#8594; &#1059;&#1089;&#1090;&#1072;&#1085;&#1086;&#1074;&#1080;&#1090;&#1100; &#1092;&#1086;&#1090;&#1086;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=editnik">&#8594; &#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1085;&#1080;&#1082;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=posts">&#8594; &#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1087;&#1086;&#1089;&#1090;&#1099;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=setstatus">&#8594; &#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1089;&#1090;&#1072;&#1090;&#1091;&#1089;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delmsgs">&#8594; &#1054;&#1095;&#1080;&#1089;&#1090;&#1080;&#1090;&#1100; &#1082;&#1086;&#1084;&#1085;&#1072;&#1090;&#1099;</a><br/>";
        print 
"<a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=delltrs">&#8594; &#1054;&#1095;&#1080;&#1089;&#1090;&#1080;&#1090;&#1100; &#1087;&#1080;&#1089;&#1100;&#1084;&#1072;</a></div><div class="main"></div></div></div><br/>";

        break;
        }

        if(
$mod) {
        print 
"<br/><a href="admin.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#8594; &#1040;&#1076;&#1084;&#1080;&#1085;&#1082;&#1072;</a>";
        print 
"</div></div></div>";
        }
        if(
$room)
        print 
"<a href="./room.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room">&#1042; &#1095;&#1072;&#1090;</a>";
        else
        print 
"<div style="text-aligncenter"><div class="contur_rek"><div class="header_rek"><a href="./enter.php?s=$s&amp;ci=$ci&amp;id=$id&amp;pass=$pass">&#1055;&#1088;&#1080;&#1093;&#1086;&#1078;&#1072;&#1103;</a>";
        } else { print 
"&#1044;&#1086;&#1089;&#1090;&#1091;&#1087; &#1079;&#1072;&#1082;&#1088;&#1099;&#1090;!!!"; }

@
mysql_close();
print 
"</body></html>";
ob_end_flush();
?>
Онлайн: 0
Реклама