Файл: test.zfarm.mobi/index.php
Строк: 527
<?php
ob_start('ob_gzhandler');
session_start();
require 'styledb/mystyledb.php';
require 'styledb/mystylefnc.php';
require 'styledb/mystylesession.php';
require 'styledb/mystylehead.php';
if(!empty($usid)){
require 'styledb/mystyleuserinclude.php';
require 'mystylefutboll/includefutboll.php';
require 'styledb/userinfo.php';
require 'styledb/mystyleinfouserpanel.php';
require 'mystylecolexp/mystylefun.php';
}
$whoip = $_SERVER["HTTP_X_REAL_IP"];
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_msip` WHERE `ip` = '".$whoip."' AND `type` = '".num(1)."'"),0)!=0){
header("Location: ./banip.php");
exit;
}
$mystyle_zombi = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_setting_site` WHERE `id` = '".num(1)."'"));
if(isset($_GET['NoReg'])){
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Неверный запрос. <br/> Вы уже проходили регистрацию!</span>
</div>';
}
if(!isset($user)){
if(isset($_GET['msremail'])) {
include_once 'styledb/usermails.php';
}elseif(isset($_GET['mystylere'])) {
include_once 'mystylereg/mystyleend.php';
}elseif(isset($_GET['mystylereg'])) {
include_once 'mystylereg/mystyleindex.php';
}else{
include_once 'mystylelink/linkindex.php';
}
}
if(!empty($usid)){
if(isset($_GET['msmail'])) {
include_once 'msmail/msindex.php';
}elseif(isset($_GET['mspanel'])) {
$cpanel = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_cuser` WHERE `user` = '".num($user['id'])."'"));
if($cpanel['admin'] == 1 || $cpanel['admin'] == 2 || $cpanel['admin'] == 3 || $cpanel['admin'] == 4){
include_once 'msclub/mspanel.php';
}else{
$text = 'Вы не в списке администрации';
$_SESSION['msg'] = $text;
header("Location: ./?msclub");
exit;
}
}elseif(isset($_GET['msnewsclub'])) {
include_once 'msclub/msnews.php';
}elseif(isset($_GET['mssunduk'])) {
include_once 'msclub/mssunduk.php';
}elseif(isset($_GET['mswarehouse'])) {
include_once 'msclub/mswarehouse.php';
}elseif(isset($_GET['msfarm'])) {
include_once 'msclub/msfarm.php';
}elseif(isset($_GET['mspresent']) && $user['admin'] == 1) {
include_once 'AdminPanel/mspresent.php';
}elseif(isset($_GET['msclubbacsadd'])) {
include_once 'msclub/msclubbacsadd.php';
}elseif(isset($_GET['msclubmoneyadd'])) {
include_once 'msclub/msclubmoneyadd.php';
}elseif(isset($_GET['msclan'])) {
include_once 'msclub/msclan.php';
}elseif(isset($_GET['mscorm'])) {
include_once 'Animals/mscorm.php';
}elseif(isset($_GET['msmoder']) && $user['admin'] == 1) {
include_once 'AdminPanel/msmoder.php';
}elseif(isset($_GET['msclub'])) {
include_once 'msclub/msindex.php';
}elseif(isset($_GET['mspitshop'])) {
include_once 'mspit/mspitshop.php';
}elseif(isset($_GET['mspit'])) {
include_once 'mspit/msindex.php';
}elseif(isset($_GET['msbury'])) {
include_once 'mystyleuser/msbury.php';
}elseif(isset($_GET['mscrypt'])) {
include_once 'mscrypt/msindex.php';
}elseif(isset($_GET['msnews'])) {
include_once 'styledb/msnews.php';
}elseif(isset($_GET['msmail_edit'])) {
include_once 'mystyleuser/usermail.php';
}elseif(isset($_GET['watertheplant'])) {
include_once 'mystyleuser/watertheplant.php';
}elseif(isset($_GET['mystylecolfre'])) {
include_once 'mystylecolfre/mystyleindex.php';
}elseif(isset($_GET['mystyleusermenu'])) {
include_once 'styledb/mystyleusermenu.php';
}elseif(isset($_GET['mystylecollectionexpvolshebnik'])) {
include_once 'mystylecolexp/mystylecollectionexpvolshebnik.php';
}elseif(isset($_GET['mystylevolshebnik'])) {
include_once 'mystylecolexp/mystylevolshebnik.php';
}elseif(isset($_GET['mystylecollectionexp'])) {
include_once 'mystylecolexp/mystyleindex.php';
}elseif(isset($_GET['mystylemozgi'])) {
include_once 'mystyleshop/mystylemozgi.php';
}elseif(isset($_GET['mystyleshop'])) {
include_once 'mystyleshop/mystyleshop.php';
}elseif(isset($_GET['mystyleshopmozgi'])) {
include_once 'mystyleshop/mystyleshopmozgi.php';
}elseif(isset($_GET['mystyleinfohost'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/mystyleinfohost.php';
}
}elseif(isset($_GET['mystyleciup'])) {
include_once 'mystylecollect/mystyleciup.php';
}elseif(isset($_GET['linkcollectionshansupload'])) {
include_once 'mystylecollect/linkcollectionshansupload.php';
}elseif(isset($_GET['linkredpacksmallupload'])) {
include_once 'mystyleuser/linkredpacksmallupload.php';
}elseif(isset($_GET['blacklist'])) {
include_once 'mystylefrend/linkblack.php';
}elseif(isset($_GET['friends'])) {
include_once 'mystylefrend/linkfrend.php';
}elseif(isset($_GET['linkpaymentuser'])) {
include_once 'MyStyle_WebMoney/mypayment.php';
}elseif(isset($_GET['linkpayment'])) {
include_once 'MyStyle_WebMoney/linkpayment.php';
}elseif(isset($_GET['linkuserwebmoney'])) {
include_once 'MyStyle_WebMoney/userwebmoney.php';
}elseif(isset($_GET['linkwebmoney'])) {
include_once 'MyStyle_WebMoney/linkwebmoney.php';
}elseif(isset($_GET['linkadminwebmoney'])) {
if($user['admin'] == 1){
include_once 'MyStyle_WebMoney/linkadminwebmoney.php';
}
}elseif(isset($_GET['mystylecollectionsindex'])) {
include_once 'mystylecollect/mystylecollectionsindex.php';
}elseif(isset($_GET['adminmailread'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/adminmailread.php';
}
}elseif(isset($_GET['linkrating'])) {
include_once 'mystyleuser/linkrating.php';
}elseif(isset($_GET['infofutboll'])) {
include_once 'mystylefutboll/infofutbollanketa.php';
}elseif(isset($_GET['newgardenanimals'])) {
include_once 'mystyleuser/newgardenanimals.php';
}elseif(isset($_GET['mystyleupdatesite'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/mystyleupdatesite.php';
}
}elseif(isset($_GET['mystyleupdateuser'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/mystyleupdateuser.php';
}
}elseif(isset($_GET['userpolsettingmystyleauthor'])) {
include_once 'mystyleuser/userpol.php';
}elseif(isset($_GET['setting'])) {
include 'mystyleuser/usersetting.php';
}elseif(isset($_GET['userskype'])) {
include_once 'mystyleuser/userskype.php';
}elseif(isset($_GET['useracq'])) {
include_once 'mystyleuser/useracq.php';
}elseif(isset($_GET['infouserfutboll'])) {
include_once 'mystylefutboll/infouserfutboll.php';
}elseif(isset($_GET['adminfutbolladd'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/adminfutbolladd.php';
}
}elseif(isset($_GET['indexadminpanel'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/adminindex.php';
}
}elseif(isset($_GET['adminfutboll'])) {
if($user['admin'] == 1){
include_once 'AdminPanel/adminfutboll.php';
}
}elseif(isset($_GET['startuser'])) {
include_once 'mystylefutboll/futbolladmin.php';
}elseif(isset($_GET['animalmoney'])) {
include_once 'Animals/animalmoney.php';
}elseif(isset($_GET['exitfutboll'])) {
include_once 'mystylefutboll/exitfutboll.php';
}elseif(isset($_GET['commanduserfutboll'])) {
include_once 'mystylefutboll/commandfutboll.php';
}elseif(isset($_GET['linkusercommand'])) {
include_once 'mystylefutboll/linkusercommand.php';
}elseif(isset($_GET['mail'])) {
include_once 'mystylelink/maillink.php';
}elseif(isset($_GET['futbollcommand'])) {
include_once 'mystylefutboll/linkmenucommand.php';
}elseif(isset($_GET['linkregfutboll'])) {
include_once 'mystylefutboll/linkreg.php';
}elseif(isset($_GET['linkredpacksmallshop'])) {
include_once 'mystyleuser/shopudobr.php';
}elseif(isset($_GET['linkredpacksmall'])) {
include_once 'mystyleuser/linkredpacksmall.php';
}elseif(isset($_GET['bayanimals'])) {
include_once 'Animals/bayanimals.php';
}elseif(isset($_GET['linkanimals'])) {
include_once 'Animals/linkanimals.php';
}elseif(isset($_GET['smile'])) {
include_once 'mystyleuser/linksmile.php';
}elseif(isset($_GET['chat'])) {
include_once 'mystylechat/linkindex.php';
}elseif(isset($_GET['newgardenbed'])) {
include_once 'mystyleuser/gardenbed.php';
}elseif(isset($_GET['linkzadaniya'])) {
if($user['status'] == 3){
include_once 'AdminPanel/zadaniya.php'; }
}elseif(isset($_GET['forum'])) {
include_once 'mystyleforum/linkindex.php';
}elseif(isset($_GET['link1'])) {
include_once 'mystylepostr/1.php';
}elseif(isset($_GET['link2'])) {
include_once 'mystylepostr/2.php';
}elseif(isset($_GET['link3'])) {
include_once 'mystylepostr/3.php';
}elseif(isset($_GET['link4'])) {
include_once 'mystylepostr/4.php';
}elseif(isset($_GET['link5'])) {
include_once 'mystylepostr/5.php';
}elseif(isset($_GET['link6'])) {
include_once 'mystylepostr/6.php';
}elseif(isset($_GET['link7'])) {
include_once 'mystylepostr/7.php';
}elseif(isset($_GET['link8'])) {
include_once 'mystylepostr/8.php';
}elseif(isset($_GET['link9'])) {
include_once 'mystylepostr/9.php';
}elseif(isset($_GET['link10'])) {
include_once 'mystylepostr/10.php';
}elseif(isset($_GET['link11'])) {
include_once 'mystylepostr/11.php';
}elseif(isset($_GET['link12'])) {
include_once 'mystylepostr/12.php';
}elseif(isset($_GET['menupostroyki'])) {
include_once 'mystylepostr/index.php';
}elseif(isset($_GET['profile'])) {
include_once 'mystyleuser/useranketa.php';
}elseif(isset($_GET['linkpostroykiusergood'])) {
include_once 'mystylelipost/linkpostroykiuser.php';
}elseif(isset($_GET['linkusershahta'])) {
include_once 'mystylelipost/linkshahta.php';
}elseif(isset($_GET['linkuserkamenelomnya'])) {
include_once 'mystylelipost/linkkamenelomnya.php';
}elseif(isset($_GET['linkusercorm'])) {
include_once 'mystylelipost/linkcorm.php';
}elseif(isset($_GET['linkuserlesopilka'])) {
include_once 'mystylelipost/linklesopilka.php';
}elseif(isset($_GET['usermenu'])) {
include_once 'styledb/linkmenu.php';
}elseif(isset($_GET['usersunduk'])) {
include_once 'mystyleuser/linksunduk.php';
}elseif(isset($_GET['useronline'])) {
include_once 'mystyleuser/linkonline.php';
}elseif(isset($_GET['linkrabotniki'])) {
include_once 'mystyleuser/linkrabotniki.php';
}elseif(isset($_GET['linkusermachete'])) {
include_once 'mystyleuser/usermachete.php';
}elseif(isset($_GET['linkuserresursy'])) {
include_once 'mystylelipost/linkdecoruser.php';
}elseif(isset($_GET['linkresursy'])) {
include_once 'mystylelipost/linkdecor.php';
}elseif(isset($_GET['linkpostrouki'])) {
include_once 'mystylelipost/linkindex.php';
}elseif(isset($_GET['linkusersklad'])) {
include_once 'mystyleuser/linksklad.php';
}elseif(isset($_GET['linkusernick'])) {
include_once 'mystyleuser/linknick.php';
}elseif(isset($_GET['linkuserpassword'])) {
include_once 'mystyleuser/linkpass.php';
}elseif(isset($_GET['linkavatar'])){
include_once 'mystyleuser/linkavatar.php';
}elseif(isset($_GET['linkexit'])){
include_once 'styledb/linkexit.php';
}elseif(isset($_GET['linkdown'])){
include_once 'mystyleuser/linkdown.php';
}else{
include_once 'mystyleuser/linkuserindex.php';
}
include_once 'styledb/mystylefoot.php';
}
$html = ob_get_contents();
ob_end_clean();
exit($html);
/*
if(isset($_GET['linkuserzadaniya'])) {
include_once 'mystyleuser/linkzadaniya.php';
}else
if($user['level'] == '2')
{
if($int['int'] == $user['int_zadaniya']){
if($int_user['type'] == 'no'){
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Новое задание. <br/> Задание от <a href="?linkuserzadaniya">'.$int['name'].'</a></span>
</div>';
}
}
}
*/
/////////////////////////
/*
Author MyStyle ZomBi.Biz
12/05/2013
*/
/////////////////////////
?>