Файл: vkolhoze.com/index.php
Строк: 852
<?php
//header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
//header("Expires: Fri, 01 Jan 1990 00:00:00 GMT");
//header("Pragma: no-cache");
//die('Технические работы, активация через 15 минут.<br> Приносим свои извинения за доставленные неудобства.');
//ini_set('error_reporting', E_ALL);
//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);
//ini_set('display_errors',1);
//error_reporting(E_ALL);
define('Index', true);
define('DR', $_SERVER['DOCUMENT_ROOT']);
define('HD', 'http://'.$_SERVER['HTTP_HOST'].'/');
$time = time();
define('TIME', $time);
//$time_ng = '1420059600';
function sysAdmin(){if($_COOKIE['_sa']=='act') return true; else return false;}
//подключение к базе
if(sysAdmin()) include_once(DR.'/auth_sys/_start_sess.php'); else include_once(DR.'/inc/start_sess.php');
if($ku['id']==1 && isset($_GET['stat'])) include_once(DR.'/pandcar/_pc_statistics.php');
include_once(DR.'/inc/functions.php');
include_once(DR.'/pandcar/_pc_functions.php');
//mysql_query("DELETE FROM `kolhoz_user` WHERE `email` = 'pandcar@mail.ru' or `nick` = 'PandCar'");
//mysql_query("UPDATE `kolhoz_user` SET `email` = 'vazaxx@gmail.com' WHERE `nick` = 'PandCar'");
if($_GET['act_auth_id']!=''){
mysql_query("INSERT INTO `kolhoz_ban` SET `id_user` = '".$ku['id']."',`id_who` = '1', `time` = '$time', `msg` = 'Пошел вон :D', `izg` = '1'" );
mysql_query("INSERT INTO `kolhoz_mail` SET `id_user` = '2', `id_kont` = '".$ku['id']."', `time` = '$time', `msg` = 'Я пытался хакнуть вас :D
На страничке: $_SERVER[REQUEST_URI]'" );
exit();
}
include_once 'inc/head.php';
if(!isset($ku))
{
include_once 'inc/no_auth.php';
}
include_once 'inc/start.php';
if($ku['ip']!==$_SERVER['REMOTE_ADDR']){
mysql_query("UPDATE `kolhoz_user` SET `ip` = '".my_esc($_SERVER['REMOTE_ADDR'])."' WHERE `id` = '$ku[id]'") or die (mysql_error());
}
//ТЕХНИКA
include_once 'inc/tehnika.php';
include_once 'inc/sadovnik.php';
include_once 'inc/next_level.php';
include_once 'inc/uhead.php';
include_once 'msarena/msfunctionarena.php';
include_once 'inc/next_level_pet.php';
////ГОС
include_once 'inc/gos_start.php';
///АДМИНСКИЕ ХУЁВИНКИ
if(isset($_GET['pcttt'])){
$mrm = mysql_result(mysql_query('select count(*) from `kolhoz_user` where `act_elka`="1"'), 0);
echo '<div>'.$mrm.'</div>';
print_r($ku);
//mysql_query("UPDATE `kolhoz_user` SET `act_cm` = '1' WHERE `id` = '$ku[id]'");
}
if($ku['guest']==1)
{
echo"<div class='content'><div class='block'><img width='40' height='40' src='/images/icons/sohr.png' alt='' class='portrait'> <span>Приветствую тебя дорогой фермер!<br>Чтобы получить 50 000<img src='images/icons/ruby.png'> <a class='knopka1' href='?registration'>Сохранись</a></span></div></div>";
}
include_once 'inc/uhead.php';
if($ku['guest']==1)
{
if($ku['level']==3)
{
// include_once 'inc/newstart/save.php';
if(sysAdmin()) include_once(DR.'/auth_sys/_save_user.php'); else include_once(DR.'/inc/newstart/save.php');
}
}
//if(isset($_GET['loginAPI'])){include_once 'loginAPI.php';}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_turnir` WHERE `active` = '1'"),0)>0)$turnir=mysql_fetch_array(mysql_query("SELECT `id`,`name`,`nameexp`,`procent` FROM `kolhoz_turnir` WHERE `active` = '1' ORDER by `id` DESC")); else $turnir['id']=0;
if($turnir['id']>0 && $ku['active_turnir']==1){
if(isset($_GET['trophy']))
{
echo "<div class='event'><h1>Вы нашли $turnir[nameexp]!</h1></div>";
echo '<div class="content"><div class="block">';
if(!isset($_SESSION['prize']))$_SESSION['prize']='';
if(isset($_GET['trophy']) && isset($_SESSION['trophy']) && $_SESSION['trophy']==$_GET['gen_code'])
{
$cci=$ku['turnir_count']+1;
mysql_query("UPDATE `kolhoz_user` SET `turnir_count` = '$cci' WHERE `id` = '$ku[id]'");
if($cci>1 && $cci<5)$ssl='трофея';
else if($cci>=5 && $cci<21)$ssl='трофеев';
else if($cci>20 && substr("$cci", -1)==1)$ssl='трофей';
else if($cci>20 && substr("$cci", -1)>1 && substr("$cci", -1)<5)$ssl='трофея';
else if($cci>20 && (substr("$cci", -1)>4 || substr("$cci", -1)==0))$ssl='трофеев';
else $ssl='трофей';
echo "Поздравляем! У вас уже <img src='/images/turnir/$turnir[id].png'/><span class='title'> $cci</span> $ssl ";
unset($_SESSION['trophy']);
}
else
{
echo "Эх, не успели!";
}
echo "</div>";
include_once 'inc/foot.php';
}
$rand=rand(1,100);
if($rand<=$turnir['procent'])
{
$_SESSION['trophy']=md5($rand);
echo "<div class='feedback'><center><img src='images/turnir/$turnir[id].png'> <a href='/trophy-1/gen_code-".md5($rand)."'>Вы нашли $turnir[nameexp]!</a> <img src='images/turnir/$turnir[id].png'></center></div>";
}
}//end
if($ku['level']>=20)
{
if(isset($_GET['get_prize']))
{
echo "<div class='event'><h1>Вы поймали сюрприз!</h1></div>";
echo '<div class="content"><div class="block">';
if(!isset($_SESSION['prize']))$_SESSION['prize']='';
if(isset($_GET['gen_code']) && $_SESSION['prize']==$_GET['gen_code'] && isset($_SESSION['prize']))
{
if($ku['level']>=1 AND $ku['level']<=25)$rr=rand(1,7);
if($ku['level']>=26 AND $ku['level']<=32)$rr=rand(3,10);
if($ku['level']>=33 AND $ku['level']<=37)$rr=rand(5,15);
if($ku['level']>=38 AND $ku['level']<=40)$rr=rand(10,20);
if($ku['level']>=41 AND $ku['level']<=45)$rr=rand(15,25);
if($ku['level']>=46 AND $ku['level']<=55)$rr=rand(20,30);
if($ku['level']>=56 AND $ku['level']<=60)$rr=rand(30,50);
if($ku['level']>=61 AND $ku['level']<=70)$rr=rand(50,100);
if($ku['level']>=71 AND $ku['level']<=190)$rr=rand(80,150);
$ku['rubies']=plus_rubies($rr);
if($ku['level']>=1 AND $ku['level']<=25)$rm=rand(50,200);
if($ku['level']>=26 AND $ku['level']<=32)$rm=rand(100,500);
if($ku['level']>=33 AND $ku['level']<=37)$rm=rand(500,1500);
if($ku['level']>=38 AND $ku['level']<=40)$rm=rand(1500,2500);
if($ku['level']>=41 AND $ku['level']<=45)$rm=rand(2500,3500);
if($ku['level']>=46 AND $ku['level']<=55)$rm=rand(3500,4500);
if($ku['level']>=56 AND $ku['level']<=60)$rm=rand(4000,5500);
if($ku['level']>=61 AND $ku['level']<=70)$rm=rand(5000,10000);
if($ku['level']>=71 AND $ku['level']<=90)$rm=rand(6000,11000);
if($ku['level']>=91 AND $ku['level']<=130)$rm=rand(7000,12000);
if($ku['level']>=131 AND $ku['level']<=150)$rm=rand(8000,13000);
if($ku['level']>=151 AND $ku['level']<=190)$rm=rand(9000,14000);
$ku['money']=plus_money($rm);
mysql_query("UPDATE `kolhoz_setting` SET `surprize_dost_count` = '$conf[surprize_dost_count]'+'1' WHERE `id_user` = '$ku[id]'");
echo "Поздравляем! Вы поймали <img src='images/icons/ruby.png'/> <span class='title'>$rr</span>".($rm!=0?" и <img src='images/icons/money.png'/> <span class='title'>$rm</span>":null).".";
unset($_SESSION['prize']);
}
else
{
echo "Эх, не успели!";
}
echo "</div>";
include_once 'inc/foot.php';
}
$rand=rand(1,100);
if($rand==38 || $rand==67 || $rand==96)
{
$_SESSION['prize']=md5($rand);
echo "<div class='feedback'><center><a class='knopka1' href='/get_prize-1/gen_code-".md5($rand)."'><img src='images/icons/ruby.png'> Лови сюрприз <img src='images/icons/ruby.png'></a></center></div>";
}
}
//
if($_GET['filter_spam'] == '1'){
$sql = mysql_query('SELECT * FROM `filter_text`');
if(mysql_num_rows($sql)==0) echo '<div>no_mask</div>';
else {
while($v = mysql_fetch_assoc($sql)){
echo '<div>'.$v['mask'].'</div>';
}}}
if(isset($_GET['ngElka'])){include_once(DR.'/pandcar/_pc_ngElka.php');}
if(isset($_GET['color_mod']) && $ku['act_cm']>='1'){include_once(DR.'/pandcar/_pc_nickCM.php');}
////////////////////// ГАЛЕРЕЯ /////////////////////////
elseif(isset($_GET['photo']))
{
include_once 'inc/gallery/photo.php';
}
elseif(isset($_GET['moderPhoto']))
{
include_once 'inc/gallery/moderPhoto.php';
}
elseif(isset($_GET['gallery']))
{
include_once 'inc/gallery/userPhoto.php';
}
elseif(isset($_GET['newPhoto']))
{
include_once 'inc/gallery/uploadPhoto.php';
}
elseif(isset($_GET['shoping']))
{
include_once 'inc/shop2.php';
}
elseif(isset($_GET['backpack']))
{
include_once 'inc/backpack.php';
}
elseif(isset($_GET['adminweapons']))
{
include_once 'inc/admin.weapons.php';
}
elseif(isset($_GET['pet']) && intval($_GET['pet'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `mspit_user` WHERE `user` = '".intval($_GET['pet'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `mspit_user` WHERE `user` = '".intval($_GET['pet'])."'"));
include_once 'inc/mypetnew.php';
}
///////////////АРЕНА НОВАЯ////////////////////
elseif(isset($_GET['ArenaLinkHistory']))
{
include_once 'arena/history.php';
}
elseif(isset($_GET['ArenaLinkBoy']))
{
include_once 'arena/boy_user.php';
}
elseif(isset($_GET['arena']))
{
include_once 'arena/index.php';
}
elseif(isset($_GET['add_boy']))
{
include_once 'arena/add_boy.php';
}
elseif(isset($_GET['go_boy']))
{
include_once 'arena/go_boy.php';
}
elseif(isset($_GET['battle']))
{
include_once 'arena/battle.php';
}
//////////////////// XSOLLA //////////////////////////
if(isset($_GET['xsolla']))
{
include_once '/xsolla1.php';
}
///////////////////////////////////////////////
if(isset($_GET['col_nik']))
{
include_once 'inc/color_nick.php';
}
if(isset($_GET['iconupload']))
{
include_once 'iconupload/index.php';
}
if(isset($_GET['stat']))
{
include_once 'inc/mystatus.php';
}
if(isset($_GET['ikonka']))
{
include_once 'inc/ica.php';
}
if(isset($_GET['lab']))
{
include_once 'inc/lab/index.php';
}
if(isset($_GET['colorn']))
{
include_once 'inc/color_nick.php';
}
///////старые задания////////////
if(isset($_GET['jobs']))
{
include_once 'inc/jobs.php';
}
/////////////////////////////
////////////////АРЕНА/////////////
if(isset($_GET['pvp']))include_once 'inc/pvp.php';
/////////////////////////////
if(isset($_GET['avakx']))
{
include_once 'inc/avakx.php';
}
if(isset($_GET['obyv']))
{
include_once 'inc/admin.obyv.php';
}
if(isset($_GET['registration']) && $ku[guest]==1)
{
// include_once 'inc/newstart/save.php';
if(sysAdmin()) include_once(DR.'/auth_sys/_save_user.php'); else include_once(DR.'/inc/newstart/save.php');
}
if(isset($_GET['registration']))
{
include_once 'inc/registration.php';
}
if(isset($_GET['msbattle'])){
include_once ("msarena/msbattle.php");
}elseif(isset($_GET['mswaiting'])){
include_once ("msarena/mswaiting.php");
}elseif(isset($_GET['msapplication'])){
include_once ("msarena/msindex.php");
}elseif(isset($_GET['msarena']))
{
include_once 'msarena/msindex.php';
}
elseif(isset($_GET['mspit']))
{
include_once 'mspit/msindex.php';
}
elseif(isset($_GET['shop']))
{
include_once 'inc/shop.php';
}
elseif(isset($_GET['house']))
{
include_once 'inc/house.php';
}
elseif(isset($_GET['ohota_index'])) { include_once 'inc/oxota/index.php'; }
elseif(isset($_GET['ohota_lock'])) { include_once 'inc/oxota/lock.php'; }
elseif(isset($_GET['ohota_pokypka'])) { include_once 'inc/oxota/pokypka.php'; }
elseif(isset($_GET['ohota_ok'])) { include_once 'inc/oxota/ok.php'; }
elseif(isset($_GET['ohota_prod_zver'])) { include_once 'inc/oxota/prod_zver.php'; }
elseif(isset($_GET['ohota_xran'])) { include_once 'inc/oxota/xran.php'; }
elseif(isset($_GET['ohota_top'])) { include_once 'inc/oxota/top.php'; }
elseif(isset($_GET['bb']))
{
include_once 'inc/bb_help_cods.php';
}
elseif(isset($_GET['like']))
{
include_once 'inc/like.php';
}
elseif(isset($_GET['warehouse']))
{
include_once 'inc/warehouse.php';
}
elseif(isset($_GET['myfarm']))
{
include_once 'inc/myfarm.php';
}
elseif(isset($_GET['mypetfarm']))
{
include_once 'inc/petfarm.php';
}
if(isset($_GET['elita']))
{
include_once 'inc/elita.php';
}
if(isset($_GET['vipmenu']))
{
include_once 'inc/vipmenu.php';
}
elseif(isset($_GET['center']))
{
include_once 'inc/center.php';
}
elseif(isset($_GET['collections']) && intval($_GET['collections'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['collections'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['collections'])."'"));
include_once 'inc/collections.php';
}
elseif(isset($_GET['converter']))
{
include_once 'inc/converter.php';
}
elseif(isset($_GET['buy_plant']))
{
include_once 'inc/buy_plant.php';
}
elseif(isset($_GET['mycellar']))
{
include_once 'inc/mycellar.php';
}
elseif(isset($_GET['nk']))
{
include_once 'inc/sellar/nk.php';
}
elseif(isset($_GET['xsolla']))
{
include_once 'inc/xsolla.php';
}
elseif(isset($_GET['payment']) or isset($_GET['pay_rubi']))
{
include_once 'inc/payment.php';
}
elseif(isset($_GET['rating']) && !isset($_GET['collective']))
{
include_once 'inc/rating.php';
}
elseif(isset($_GET['online']))
{
include_once 'inc/online.php';
}
elseif(isset($_GET['ratingpit']))
{
include_once 'mspit/ratingpit.php';
}
elseif(isset($_GET['user']) && intval($_GET['user'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['user'])."'"),0)!=0)
{
$conf_ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_setting` WHERE `id_user` = '".intval($_GET['user'])."'"));
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['user'])."'"));
$au=$ank;
include_once 'inc/user.php';
}
elseif(isset($_GET['uf']) && intval($_GET['uf'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['uf'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['uf'])."'"));
$au=$ank;
include_once 'inc/uf.php';
}
elseif(isset($_GET['upf']) && intval($_GET['upf'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['upf'])."' AND (`level` = '10' OR `level` > '10')"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['upf'])."'"));
$au=$ank;
include_once 'inc/upf.php';
}
elseif(isset($_GET['lottery']) && $ku['level']>=35)
{
include_once 'inc/lottery.php';
}
elseif(isset($_GET['mail']))
{
include_once 'inc/mail.php';
}
elseif(isset($_GET['spamlist']) AND $ku['status']>0)
{
include_once 'inc/spamlist.php';
}
elseif(isset($_GET['presents']) && intval($_GET['presents'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['presents'])."'"),0)!=0)
{
include_once 'inc/presents.php';
}
elseif(isset($_GET['perevod']) && intval($_GET['perevod'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['perevod'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['perevod'])."'"));
$anku=$ank;
include_once 'inc/perevod.php';
}
elseif(isset($_GET['perevod2']) && intval($_GET['perevod2'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['perevod2'])."'"),0)!=0 && $ku['status']==3)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['perevod2'])."'"));
$anku=$ank;
include_once 'inc/perevod2.php';
}
elseif(isset($_GET['perevod3']) && intval($_GET['perevod3'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['perevod3'])."'"),0)!=0 && $ku['status']==3)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['perevod3'])."'"));
$anku=$ank;
include_once 'inc/perevod3.php';
}
elseif(isset($_GET['communication']) && intval($_GET['communication'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['communication'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['communication'])."'"));
$anku=$ank;
include_once 'inc/communication.php';
}
elseif(isset($_GET['dostig']) && intval($_GET['dostig'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['dostig'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['dostig'])."'"));
$anku=$ank;
include_once 'inc/dostig.php';
}
elseif(isset($_GET['help']) && ($_GET['help']=='plants' || $_GET['help']=='animals' || $_GET['help']=='recipes' || $_GET['help']=='soils' || $_GET['help']=='tree'))
{
if($_GET['help']=='plants')include_once 'inc/hp.php';
elseif($_GET['help']=='recipes')include_once 'inc/hr.php';
elseif($_GET['help']=='animals')include_once 'inc/ha.php';
elseif($_GET['help']=='soils')include_once 'inc/hs.php';
elseif($_GET['help']=='tree')include_once 'inc/ht.php';
}
elseif(isset($_GET['forum']))
{
include_once 'inc/forum.php';
}
elseif(isset($_GET['chat']))
{
include_once 'inc/chat.php';
}
elseif(isset($_GET['search']))
{
include_once 'inc/search.php';
}
elseif(isset($_GET['search_collective']))
{
include_once 'inc/search_ct.php';
}
elseif(isset($_GET['ref']))
{
include_once 'inc/ref.php';
}
elseif(isset($_GET['collectives']))
{
include_once 'inc/collectives.php';
}
elseif(isset($_GET['mycollective']))
{
include_once 'inc/mycollective.php';
}
elseif(isset($_GET['collective_create']))
{
include_once 'inc/collective_create.php';
}
elseif(isset($_GET['collective']) && $ct=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective` WHERE `id` = '".intval($_GET['collective'])."'")))
{
include_once 'inc/collective.php';
}
elseif(isset($_GET['goshistory']))
{
include_once 'inc/goshistory.php';
}
elseif(isset($_GET['gos']) && $goss=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective_gos` WHERE `id` = '".intval($_GET['gos'])."'")))
{
include_once 'inc/gos.php';
}
elseif(isset($_GET['gos']))
{
include_once 'inc/action.php';
}
elseif(isset($_GET['action']))
{
include_once 'inc/action_pay.php';
}
elseif(isset($_GET['turnir']))
{
include_once 'inc/turnir.php';
}
elseif(isset($_GET['arena']))
{
include_once 'inc/arena.php';
}
elseif(isset($_GET['comphistory']))
{
include_once 'inc/comphistory.php';
}
elseif(isset($_GET['comp']) && $comp=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective_comp` WHERE `id` = '".intval($_GET['comp'])."'")))
{
include_once 'inc/comp.php';
}
elseif(isset($_GET['comp']))
{
include_once 'inc/comp_page.php';
}
elseif(isset($_GET['change_nickname']))
{
include_once 'inc/change_nick.php';
}
elseif(isset($_GET['anketa']))
{
include_once 'inc/about_me.php';
}
elseif(isset($_GET['settings']))
{
include_once 'inc/settings.php';
}
elseif(isset($_GET['smiles']))
{
include_once 'inc/smiles.php';
}
elseif(isset($_GET['ozero']))
{
include_once 'inc/fish.php';
}
elseif(isset($_GET['msuploadicon']) && $ku['status'] >= 3)
{
include_once 'msuploadicon/index.php';
}elseif(isset($_GET['mypool']))
{
include_once 'inc/mypool.php';
}
elseif(isset($_GET['mygarden']))
{
include_once 'inc/mygarden.php';
}
elseif(isset($_GET['photoUpload']))
{
include_once 'inc/photoUpload.php';
}
elseif(isset($_GET['friends']))
{
include_once 'inc/friends.php';
}
elseif(isset($_GET['blacklist']))
{
include_once 'inc/blacklist.php';
}
elseif(isset($_GET['support']))
{
include_once 'inc/support.php';
}
elseif(isset($_GET['zags']))
{
include_once 'inc/zags/index.php';
}
elseif(isset($_GET['rules']))
{
include_once 'inc/rules.php';
}
elseif(isset($_GET['journal']))
{
include_once 'inc/journal.php';
}
elseif(isset($_GET['ModerationPhoto']) && $ku['status']>0)
{
include_once 'inc/admin.foto.php';
}
elseif(isset($_GET['admin']) && $ku['status'] == 6 || $ku['status'] == 3 )
{
if($ku['id'] == 1)$key='1q2w3e';
$admin=hsc($_GET['admin']);
if($admin=='plants')$admin_name='Растения';
elseif($admin=='recipes')$admin_name='Рецепты';
elseif($admin=='pets')$admin_name='Животные';
elseif($admin=='fish')$admin_name='Рыбы';
elseif($admin=='pool')$admin_name='Пруды';
elseif($admin=='garden')$admin_name='Сады';
elseif($admin=='soils')$admin_name='Удобрения';
elseif($admin=='levels')$admin_name='Уровни';
elseif($admin=='turnir')$admin_name='Турнир';
elseif($admin=='gifts')$admin_name='Подарки';
elseif($admin=='smiles')$admin_name='Смайлы';
elseif($admin=='users')$admin_name='Пользователи';
elseif($admin=='collectives')$admin_name='Колхозы';
elseif($admin=='obyv')$admin_name='Обьявления';
elseif($admin=='news')$admin_name='Новости';
elseif($admin=='iconupload')$admin_name='Смена иконки';
elseif($admin=='city')$admin_name='Города';
elseif($admin=='spam')$admin_name='Спам-слова';
elseif($admin=='logs')$admin_name='Админ логи';
else $admin_name='Админка';
if(in_array($_GET['admin'],array('pets','plants','fish','spam','pool','recipes','soils','users','collectives','levels','gifts','garden','turnir','obyv','news','iconupload','city', 'logs')) AND $_SESSION['admin_key']=="$key")
include_once 'inc/admin.'.(hsc($_GET['admin'])).'.php';
elseif(empty($_POST['admin_key']) AND (!isset($_SESSION['admin_key']) OR $_SESSION['admin_key']!=="$key"))echo'<div class="event"><h1>Админка</h1></div><form method="post"><ul>
<div class="content"><div class="block"><label>Введите пароль: <br/>
<input type="password" value="" name="admin_key">
</label><li class="pt">
<input type="submit" value="Войти в админку"></form></li></ul>'; elseif(!empty($_POST['admin_key']) AND !isset($_SESSION['admin_key'])){$_SESSION['admin_key']=hsc($_POST['admin_key']); header("Location: http://vkolhoze.com/admin");} elseif($_SESSION['admin_key']=="$key") {include_once 'inc/admin.list.php';}elseif($_SESSION['admin_key']!=="$key") {echo'<div class="event"><h1>Админка</h1></div><div class="content block">Введен неверный пароль "'.$_SESSION['admin_key'].'"</div>';unset($_SESSION['admin_key']);}
}
else{ include_once 'inc/myfarm.php';}
include_once 'inc/foot.php';
?>