View file public_html/games2/admin/bazar.php

File size: 14.72Kb
<?php
############################################
### Этот скрипт написан для Wap-Motor 18 ###
###Автор скрипта Dred#######################
###ICQ: 757041##############################
###Сайт: http://nmn.webhop.net##############
###Желающие могут подкинуть деньжат#########
###Z840880492902############################
###R852036927651############################
############################################
require_once"../../template/start.php";require_once"../../template/regglobals.php";require_once"../../template/config.php";require_once"../../template/siti_conf.php";require_once"../../template/functions.php";require_once"../../template/antidos.php";require_once"../../template/cookies.php";require_once"../../template/gzip.php";require_once"../../template/header.php";require_once"../../template/referer.php";include_once"../../themes/$config_themes/index.php";include_once"../../template/isset.php";if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!="") {if ($dostup==101 && $log==$config_nikname){if(!isset($action)){$siti_st = file(BASEDIR."local/navigator/conf/bazar.dat"); $siti_b = explode("|",$siti_st[0]);echo '<b>Продуктовый рынок</b><br><hr>';echo'<form method="post" action="bazar.php?action=sk13&amp;'.SID.'">';echo 'Задать делитель:<br><input name="conf_or39" maxlength="10" value="'.$siti_b[39].'" /><br><input value="Изменить" type="submit" /></form>';$siti_b1=round($siti_b[1]/$siti_b[39]);echo'&#187; <a href="bazar.php?st0&amp;'.SID.'">'.$siti_b[0].'-><a> '.$siti_b[1].' $ Здopoвьe: <font color="red">'.$siti_b1.'%</font><br>';if(isset($st0)){echo'<form method="post" action="bazar.php?action=sk0&amp;'.SID.'">';echo 'Название:<br><input name="conf_or0" maxlength="100" value="'.$siti_b[0].'" /><br>Цена:<br><input name="conf_or1" maxlength="20" value="'.$siti_b[1].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b2=round($siti_b[4]/$siti_b[39]);echo'&#187; <a href="bazar.php?st1&amp;'.SID.'">'.$siti_b[3].'-><a> '.$siti_b[4].' $ Здopoвьe: <font color="red">'.$siti_b2.'%</font><br>';if(isset($st1)){echo'<form method="post" action="bazar.php?action=sk1&amp;'.SID.'">';echo 'Название:<br><input name="conf_or3" maxlength="100" value="'.$siti_b[3].'" /><br>Цена:<br><input name="conf_or4" maxlength="20" value="'.$siti_b[4].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b3=round($siti_b[7]/$siti_b[39]);echo'&#187; <a href="bazar.php?st2&amp;'.SID.'">'.$siti_b[6].'-><a> '.$siti_b[7].' $ Здopoвьe: <font color="red">'.$siti_b3.'%</font><br>';if(isset($st2)){echo'<form method="post" action="bazar.php?action=sk2&amp;'.SID.'">';echo 'Название:<br><input name="conf_or6" maxlength="100" value="'.$siti_b[6].'" /><br>Цена:<br><input name="conf_or7" maxlength="20" value="'.$siti_b[7].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b4=round($siti_b[10]/$siti_b[39]); echo'&#187; <a href="bazar.php?st3&amp;'.SID.'">'.$siti_b[9].'-><a> '.$siti_b[10].' $ Здopoвьe: <font color="red">'.$siti_b4.'%</font><br>';if(isset($st3)){echo'<form method="post" action="bazar.php?action=sk3&amp;'.SID.'">';echo 'Название:<br><input name="conf_or9" maxlength="100" value="'.$siti_b[9].'" /><br>Цена:<br><input name="conf_or10" maxlength="20" value="'.$siti_b[10].'" /><br><input value="Изменить" type="submit" /></form>';} $siti_b5=round($siti_b[13]/$siti_b[39]); echo'&#187; <a href="bazar.php?st4&amp;'.SID.'">'.$siti_b[12].'-><a> '.$siti_b[13].' $ Здopoвьe: <font color="red">'.$siti_b5.'%</font><br>';if(isset($st4)){echo'<form method="post" action="bazar.php?action=sk4&amp;'.SID.'">';echo 'Название:<br><input name="conf_or12" maxlength="100" value="'.$siti_b[12].'" /><br>Цена:<br><input name="conf_or13" maxlength="20" value="'.$siti_b[13].'" /><br><input value="Изменить" type="submit" /></form>';} $siti_b6=round($siti_b[16]/$siti_b[39]); echo'&#187; <a href="bazar.php?st5&amp;'.SID.'">'.$siti_b[15].'-><a> '.$siti_b[16].' $ Здopoвьe: <font color="red">'.$siti_b6.'%</font><br>';if(isset($st5)){echo'<form method="post" action="bazar.php?action=sk5&amp;'.SID.'">';echo 'Название:<br><input name="conf_or15" maxlength="100" value="'.$siti_b[15].'" /><br>Цена:<br><input name="conf_or16" maxlength="20" value="'.$siti_b[16].'" /><br><input value="Изменить" type="submit" /></form>';} $siti_b7=round($siti_b[19]/$siti_b[39]); echo'&#187; <a href="bazar.php?st6&amp;'.SID.'">'.$siti_b[18].'-><a> '.$siti_b[19].' $ Здopoвьe: <font color="red">'.$siti_b7.'%</font><br>';if(isset($st6)){echo'<form method="post" action="bazar.php?action=sk6&amp;'.SID.'">';echo 'Название:<br><input name="conf_or18" maxlength="100" value="'.$siti_b[18].'" /><br>Цена:<br><input name="conf_or19" maxlength="20" value="'.$siti_b[19].'" /><br><input value="Изменить" type="submit" /></form>';} $siti_b8=round($siti_b[22]/$siti_b[39]);echo'&#187; <a href="bazar.php?st7&amp;'.SID.'">'.$siti_b[21].'-><a> '.$siti_b[22].' $ Здopoвьe: <font color="red">'.$siti_b8.'%</font><br>';if(isset($st7)){echo'<form method="post" action="bazar.php?action=sk7&amp;'.SID.'">';echo 'Название:<br><input name="conf_or21" maxlength="100" value="'.$siti_b[21].'" /><br>Цена:<br><input name="conf_or22" maxlength="20" value="'.$siti_b[22].'" /><br><input value="Изменить" type="submit" /></form>';} $siti_b9=round($siti_b[25]/$siti_b[39]);echo'&#187; <a href="bazar.php?st8&amp;'.SID.'">'.$siti_b[24].'-><a> '.$siti_b[25].' $ Здopoвьe: <font color="red">'.$siti_b9.'%</font><br>';if(isset($st8)){echo'<form method="post" action="bazar.php?action=sk8&amp;'.SID.'">';echo 'Название:<br><input name="conf_or24" maxlength="100" value="'.$siti_b[24].'" /><br>Цена:<br><input name="conf_or25" maxlength="20" value="'.$siti_b[25].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b10=round($siti_b[28]/$siti_b[39]);echo'&#187; <a href="bazar.php?st9&amp;'.SID.'">'.$siti_b[27].'-><a> '.$siti_b[28].' $ Здopoвьe: <font color="red">'.$siti_b10.'%</font><br>';if(isset($st9)){echo'<form method="post" action="bazar.php?action=sk9&amp;'.SID.'">';echo 'Название:<br><input name="conf_or27" maxlength="100" value="'.$siti_b[27].'" /><br>Цена:<br><input name="conf_or28" maxlength="20" value="'.$siti_b[28].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b11=round($siti_b[31]/$siti_b[39]);echo'&#187; <a href="bazar.php?st10&amp;'.SID.'">'.$siti_b[30].'-><a> '.$siti_b[31].' $ Здopoвьe: <font color="red">'.$siti_b11.'%</font><br>';if(isset($st10)){echo'<form method="post" action="bazar.php?action=sk10&amp;'.SID.'">';echo 'Название:<br><input name="conf_or30" maxlength="100" value="'.$siti_b[30].'" /><br>Цена:<br><input name="conf_or31" maxlength="20" value="'.$siti_b[31].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b12=round($siti_b[34]/$siti_b[39]);echo'&#187; <a href="bazar.php?st11&amp;'.SID.'">'.$siti_b[33].'-><a> '.$siti_b[34].' $ Здopoвьe: <font color="red">'.$siti_b12.'%</font><br>';if(isset($st11)){echo'<form method="post" action="bazar.php?action=sk11&amp;'.SID.'">';echo 'Название:<br><input name="conf_or33" maxlength="100" value="'.$siti_b[33].'" /><br>Цена:<br><input name="conf_or34" maxlength="20" value="'.$siti_b[34].'" /><br><input value="Изменить" type="submit" /></form>';}$siti_b13=round($siti_b[37]/$siti_b[39]);echo'&#187; <a href="bazar.php?st12&amp;'.SID.'">'.$siti_b[36].'-><a> '.$siti_b[37].' $ Здopoвьe: <font color="red">'.$siti_b13.'%</font><br>';if(isset($st12)){echo'<form method="post" action="bazar.php?action=sk12&amp;'.SID.'">';echo 'Название:<br><input name="conf_or36" maxlength="100" value="'.$siti_b[36].'" /><br>Цена:<br><input name="conf_or37" maxlength="20" value="'.$siti_b[37].'" /><br><input value="Изменить" type="submit" /></form>';}}if($action=="sk13"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[39]=check($conf_or39);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk12"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[36]=check($conf_or36);$udata[37]=check($conf_or37);$udata[38]=check($conf_or38);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk11"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[33]=check($conf_or33);$udata[34]=check($conf_or34);$udata[35]=check($conf_or35);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk10"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[30]=check($conf_or30);$udata[31]=check($conf_or31);$udata[32]=check($conf_or32);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk9"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[27]=check($conf_or27);$udata[28]=check($conf_or28);$udata[29]=check($conf_or29);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk8"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[24]=check($conf_or24);$udata[25]=check($conf_or25);$udata[26]=check($conf_or26);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk7"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[21]=check($conf_or21);$udata[22]=check($conf_or22);$udata[23]=check($conf_or23);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk0"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[0]=check($conf_or0);$udata[1]=check($conf_or1);$udata[2]=check($conf_or2);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk1"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[3]=check($conf_or3);$udata[4]=check($conf_or4);$udata[5]=check($conf_or5);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk2"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[6]=check($conf_or6);$udata[7]=check($conf_or7);$udata[8]=check($conf_or8);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk3"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[9]=check($conf_or9);$udata[10]=check($conf_or10);$udata[11]=check($conf_or11);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk4"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[12]=check($conf_or12);$udata[13]=check($conf_or13);$udata[14]=check($conf_or14);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk5"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[15]=check($conf_or15);$udata[16]=check($conf_or16);$udata[17]=check($conf_or17);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}if($action=="sk6"){ $ufile = file(BASEDIR."local/navigator/conf/bazar.dat"); $udata = explode("|",$ufile[0]);$udata[18]=check($conf_or18);$udata[19]=check($conf_or19);$udata[20]=check($conf_or20);for ($u=0; $u<$siti_bazar; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/bazar.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: bazar.php?".SID);}echo'<br><img src="../../images/img/panel.gif" alt=""> <a href="setting.php?'.SID.'">В настройки</a><br>';echo'<img src="../../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">В город</a><br>';} else {header ("Location: ../index.php?error&".SID);}} else {header ("Location: ../index.php?error&".SID);}eval(base64_decode('ZWNobyc8aHI+PGEgaHJlZj0iaHR0cDovL25tbi53ZWJob3AubmV0Ij5OTU4u
V0VCSE9QLk5FVDwvYT48YnI+JzsKaW5jbHVkZV9vbmNlKEJBU0VESVIuInRo
ZW1lcy8kY29uZmlnX3RoZW1lcy9mb290LnBocCIpOw=='));?>