Вход Регистрация
Файл: vfermu.ru/index.php
Строк: 410
В игре нет дыр,нет иньекций и т.д Это новый скрипт игры колхоза с новыми модулями ,нужна помощь в установке - пишите админу dream сайты : http://vferme.mobi/ и http://vfermu.ru/
<?php
include_once "sys/db/conect.php";
include_once 
"sys/fnc/style.php";
include_once 
"sys/fnc/fnc.php";
include_once 
"sys/fnc/start.php";
include_once 
"sys/fnc/gos_start.php";
if(
$ku['id']==2){

error_reporting(E_ALL);
ini_set('display_errors',true);
}

if(!isset(
$ku))include_once "sys/home/home.php";
include_once 
"sys/fnc/level.php";
include_once 
"sys/other/verh_site.php";
///////ip
if($ku['ip']!==$_SERVER['REMOTE_ADDR']){
mysql_query("UPDATE `farm_user` SET `ip` = '".my_esc($_SERVER['REMOTE_ADDR'])."' WHERE `id` = '$ku[id]'") or die (mysql_error());
}
if(
$ku['browser']!==$_SERVER['HTTP_USER_AGENT'])
{
mysql_query("UPDATE `farm_user` SET `browser` = '".my_esc($_SERVER['HTTP_USER_AGENT'])."' WHERE `id` = '$ku[id]'") or die (mysql_error());
}
///конец
include_once "sys/other/dostig2.php";
include_once 
"sys/fnc/teh.php";
include_once 
"sys/other/sadovnik.php";
include_once 
"sys/other/podarok.php";
if(
$ku['start']==1)
{
if(
$ku['level']>=5)
{
include_once 
'sys/home/start_save.php';
}
}
elseif(isset(
$_GET['myfarm']))
{
include_once
'sys/myfarm/myfarm.php';
}
if(isset(
$_GET['lift'])){include_once 'By_Rus/lift/lift.php';}
elseif(isset(
$_GET['newpets'])){include_once 'By_Rus/mypet/newpets.php';}
elseif(isset(
$_GET['mypet'])){include_once 'By_Rus/mypet/mypet.php';}
elseif(isset(
$_GET['pets'])){include_once 'By_Rus/mypet/pets.php';}
elseif(isset(
$_GET['lotoRUS']) && $ku['level']>=10){include_once 'By_Rus/loto/lotoRUS.php';}
elseif(isset(
$_GET['kazino']) && $ku['level']>=10){include_once 'sys/kazino/index.php';}
elseif(isset(
$_GET['zachot']) && $ku['level']>=1){include_once 'sys/zachot/index.php';}
elseif(isset(
$_GET['zdosting']) && $ku['level']>=1){include_once 'sys/zachot/dosting.php';}
elseif(isset(
$_GET['krutni']) && $ku['level']>=10){include_once 'sys/kazino/krutni.php';}
elseif(isset(
$_GET['worldkassa'])){include_once 'worldkassa/index.php';}
elseif(isset(
$_GET['payment'])){include_once 'By_Rus/payment/index.php';}
elseif(isset(
$_GET['list']))
{
include_once
'sys/adminka/admin.list.php';
}
elseif(isset(
$_GET['center']))
{
include_once
'sys/other/center.php';
}
elseif(isset(
$_GET['timeLSauth']))
{
include_once
'sys/other/timeLSauth.php';
}
elseif(isset(
$_GET['go']))
{
include_once
'go.php';
}
elseif(isset(
$_GET['mail_user']))
{
include_once
'sys/other/mail_user.php';
}
elseif(isset(
$_GET['photo']))
{
include_once 
'sys/gallery/photo.php';
}
elseif(isset(
$_GET['moderPhoto']))
{
include_once 
'sys/gallery/moderPhoto.php';
}
elseif(isset(
$_GET['gallery']))
{
include_once 
'sys/gallery/userPhoto.php';
}
elseif(isset(
$_GET['newPhoto']))
{
include_once 
'sys/gallery/uploadPhoto.php';
}
elseif(isset(
$_GET['rating']))
{
include_once
'sys/other/rating.php';
}
elseif(isset(
$_GET['search']))
{
include_once
'sys/other/search.php';
}


elseif(isset(
$_GET['weather']))
{
include_once
'sys/weather.php';
}

elseif(isset(
$_GET['vhod']))
{
include_once
'vhod.php';
}

elseif(isset(
$_GET['razz']))
{
include_once
'sys/house/razz.php';
}

elseif(isset(
$_GET['znakom']))
{
include_once
'sys/By_rotmans/znakom.php';
}



elseif(isset(
$_GET['sunduk']))
{
include_once
'sunduk.php';
}

elseif(isset(
$_GET['settings']))
{
include_once
'sys/other/settings.php';
}
elseif(isset(
$_GET['agreement']))
{
include_once
'sys/other/agreement.php';
}
elseif(isset(
$_GET['new_pass']))
{
include_once
'sys/other/new_pass.php';
}
elseif(isset(
$_GET['change']))
{
include_once
'sys/other/change.php';
}
elseif(isset(
$_GET['online']))
{
include_once
'sys/other/online.php';
}
if(isset(
$_GET['nursery']))
{
include_once 
'sys/nursery/nursery.php';
}
elseif(isset(
$_GET['mail']))
{
include_once 
'sys/other/mail.php';
}
elseif(isset(
$_GET['friends']))
{
include_once 
'sys/other/friends.php';
}
elseif(isset(
$_GET['blacklist']))
{
include_once 
'sys/other/blacklist.php';
}
elseif(isset(
$_GET['paswort_new']))
{
include_once 
'sys/other/paswort_new.php';
}

elseif(isset(
$_GET['weather']))
{
include_once 
'sys/pogoda/inc/weather.php';
}

elseif(isset(
$_GET['myfarm']))
{
include_once 
'sys/myfarm/myfarm.php';
}
elseif(isset(
$_GET['log']))
{
include_once 
'sys/home/log.php';
}
elseif(isset(
$_GET['warehouse']))
{
include_once 
'sys/other/warehouse.php';
}
elseif(isset(
$_GET['smiles']))
{
include_once 
'sys/other/smiles.php';
}
elseif(isset(
$_GET['journal']))
{
include_once 
'sys/other/journal.php';
}
elseif(isset(
$_GET['converter']))
{
include_once 
'sys/other/converter.php';
}
elseif(isset(
$_GET['shop']))
{
include_once 
'sys/shop/shop.php';
}
elseif(isset(
$_GET['user']) && intval($_GET['user'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['user'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['user'])."'"));
$au=$ank;
include_once 
'sys/other/user.php';
}
elseif(isset(
$_GET['dostig']) && intval($_GET['dostig'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['dostig'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['dostig'])."'"));
$anku=$ank;
include_once 
'sys/other/dostig.php';
}
elseif(isset(
$_GET['communication']) && intval($_GET['communication'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['communication'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['communication'])."'"));
$anku=$ank;
include_once 
'sys/other/communication.php';
}
elseif(isset(
$_GET['collections']) && intval($_GET['collections'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['collections'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['collections'])."'"));
include_once 
'sys/other/collections.php';
}
elseif(isset(
$_GET['collective']) && $ct=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective` WHERE `id` = '".intval($_GET['collective'])."'")))
{
include_once 
'sys/collective/index.php';
}
elseif(isset(
$_GET['goss']) && $goss=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_gos` WHERE `id` = '".intval($_GET['goss'])."'")))
{
include_once 
'sys/other/gos_history.php';
}
elseif(isset(
$_GET['uf']) && intval($_GET['uf'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['uf'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['uf'])."'"));
$au=$ank;
include_once 
'sys/other/uf.php';
}
elseif(isset(
$_GET['upf']) && intval($_GET['upf'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['upf'])."' AND (`level` = '10' OR `level` > '10')"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['upf'])."'"));
$au=$ank;
include_once 
'sys/other/upf.php';
}
elseif(isset(
$_GET['uc']) && intval($_GET['uc'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['uc'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['uc'])."'"));
$au=$ank;
include_once 
'sys/other/uc.php';
}
elseif(isset(
$_GET['pr']) && intval($_GET['pr'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['pr'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '".intval($_GET['pr'])."'"));
$au=$ank;
include_once 
'sys/other/pr.php';
}
elseif(isset(
$_GET['presents']) && intval($_GET['presents'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_user` WHERE `id` = '".intval($_GET['presents'])."'"),0)!=0)
{
include_once 
'sys/other/presents.php';
}
elseif(isset(
$_GET['forum']))
{
include_once 
'sys/other/forum.php';
}
elseif(isset(
$_GET['chat']))
{
include_once 
'sys/other/chat.php';
}
elseif(isset(
$_GET['mysellar']) && $ku['level']>=10)
{
include_once 
'sys/sellar/index.php';
}

elseif(isset(
$_GET['pekar']) && $ku['level']>=3)
{
include_once 
'sys/pekar/index.php';
}


elseif(isset(
$_GET['buy_plant']))
{
include_once 
'sys/other/buy_plant.php';
}
elseif(isset(
$_GET['buy_speci']))
{
include_once 
'sys/other/buy_speci.php';
}
elseif(isset(
$_GET['red_user']))
{
include_once 
'sys/other/red_user';
}
elseif(isset(
$_GET['mypetfarm']) && $ku['level']>=10)
{
include_once 
'sys/mypetfarm/index.php';
}
elseif(isset(
$_GET['mycollective']))
{
include_once 
'sys/collective/mycollective.php';
}
elseif(isset(
$_GET['collective_create']))
{
include_once 
'sys/other/collective_create.php';
}
elseif(isset(
$_GET['collectives']))
{
include_once 
'sys/other/collectives.php';
}
elseif(isset(
$_GET['search_collective']))
{
include_once 
'sys/other/search_ct.php';
}
elseif(isset(
$_GET['cvet_nick']))
{
include_once 
'sys/other/cvet_nick.php';
}
elseif(isset(
$_GET['cvet_msg']))
{
include_once 
'sys/other/cvet_msg.php';
}
elseif(isset(
$_GET['mypool']))
{
include_once 
'sys/mypool/index.php';
}
elseif(isset(
$_GET['action']))
{
include_once 
'sys/other/action.php';
}
elseif(isset(
$_GET['support']))
{
include_once 
'sys/other/support.php';
}
elseif(isset(
$_GET['lottery']))
{
include_once 
'sys/other/lottery.php';
}
elseif(isset(
$_GET['gos']))
{
include_once 
'sys/other/gos.php';
}
elseif(isset(
$_GET['goshistory']))
{
include_once 
'sys/other/goshistory.php';
}
elseif(isset(
$_GET['zadanie']))
{
include_once 
'sys/other/zadanie.php';
}
elseif(isset(
$_GET['ava']))
{
include_once 
'sys/other/ava.php';
}
elseif(isset(
$_GET['mod_photo']))
{
include_once 
'sys/other/mod_photo.php';
}
elseif(isset(
$_GET['buildingMaterials']))
{
include_once 
'sys/house/buildingMaterials.php';
}
elseif(isset(
$_GET['house']))
{
include_once 
'sys/house/house.php';
}
elseif(isset(
$_GET['turnir']))
{
include_once 
'sys/other/turnir.php';
}
elseif(isset(
$_GET['search_city']))
{
include_once 
'sys/other/search_city.php';
}
//////////////////////////end
elseif(isset($_GET['admin']) && $ku['status']==3){
$admin=hsc($_GET['admin']);
if(
$admin=='seting')$admin_name='Общие настройки';
elseif(
$admin=='plants')$admin_name='Растения';
elseif(
$admin=='soils')$admin_name='Удобрения';
elseif(
$admin=='smiles')$admin_name='Смайлы';
elseif(
$admin=='level')$admin_name='Уровни';
elseif(
$admin=='toxa')$admin_name='Тест';
elseif(
$admin=='user')$admin_name='Пользователи';
elseif(
$admin=='sellar')$admin_name='Рецепты';
elseif(
$admin=='pet')$admin_name='Животные';
elseif(
$admin=='pool')$admin_name='Риби';
elseif(
$admin=='turnir')$admin_name='Турнир';
elseif(
$admin=='city')$admin_name='Города';
elseif(
$admin=='gifts')$admin_name='Подарки';
elseif(
$admin=='sunduk')$admin_name='Сундуки';
else 
$admin_name='$name_admin';
if(
in_array($_GET['admin'],array('city','seting','turnir','plants','soils','smiles','gifts','level','user','sellar','pet','pool','toxa','sunduk')))
include_once 
'sys/adminka/admin.'.$_GET['admin'].'.php';
else include_once 
'sys/adminka/admin.auth.php';
echo 
"<title>$admin_name</title>";
}
include 
"sys/myfarm/myfarm.php";

?>
Онлайн: 2
Реклама