File size: 8Kb
<?php
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){echo '<div class=tp>Статусы бандитов</div>'; if(!isset($action)){echo'<img src="../../images/img/act.gif" alt=""> <a href="status.php?action=stat&'.SID.'">Статусы бандитов</a><br>';echo'<img src="../../images/img/act.gif" alt=""> <a href="status.php?action=urki&'.SID.'">Статусы уголовников</a><br>';echo'<img src="../../images/img/act.gif" alt=""> <a href="status.php?action=admin&'.SID.'">Статусы администрации!</a>';}if($action=="stat"){$siti_st = file(BASEDIR."local/navigator/conf/status.dat"); $siti_data = explode("|",$siti_st[0]);echo '<form method="post" action="status.php?action=editone&'.SID.'">';echo 'Статусы в городе!<br>';echo 'Баллы (<font color="red">1-5</font>):<br><input name="conf_set1" maxlength="20" value="'.$siti_data[1].'" /><br>';echo 'Баллы (<font color="red">5-10</font>):<br><input name="conf_set2" maxlength="20" value="'.$siti_data[2].'" /><br>';echo 'Баллы (<font color="red">10-20</font>):<br><input name="conf_set3" maxlength="20" value="'.$siti_data[3].'" /><br>';echo 'Баллы (<font color="red">20-50</font>):<br><input name="conf_set4" maxlength="20" value="'.$siti_data[4].'" /><br>';echo 'Баллы (<font color="red">50-80</font>):<br><input name="conf_set5" maxlength="20" value="'.$siti_data[5].'" /><br>';echo 'Баллы (<font color="red">80-125</font>):<br><input name="conf_set6" maxlength="20" value="'.$siti_data[6].'" /><br>';echo 'Баллы (<font color="red">125-150</font>):<br><input name="conf_set7" maxlength="20" value="'.$siti_data[7].'" /><br>';echo 'Баллы (<font color="red">150-180</font>):<br><input name="conf_set8" maxlength="20" value="'.$siti_data[8].'" /><br>';echo 'Баллы (<font color="red">180-200</font>):<br><input name="conf_set9" maxlength="20" value="'.$siti_data[9].'" /><br>';echo 'Баллы (<font color="red">200-300</font>):<br><input name="conf_set10" maxlength="20" value="'.$siti_data[10].'" /><br>';echo 'Баллы (<font color="red">300-500</font>):<br><input name="conf_set11" maxlength="20" value="'.$siti_data[11].'" /><br>';echo 'Баллы (<font color="red">500-700</font>):<br><input name="conf_set12" maxlength="20" value="'.$siti_data[12].'" /><br>';echo 'Баллы (<font color="red">700-1000</font>):<br><input name="conf_set13" maxlength="20" value="'.$siti_data[13].'" /><br>';echo 'Баллы (<font color="red">1000-1500</font>):<br><input name="conf_set14" maxlength="20" value="'.$siti_data[14].'" /><br>';echo 'Баллы (<font color="red">1500-2000</font>):<br><input name="conf_set15" maxlength="20" value="'.$siti_data[15].'" /><br>';echo 'Баллы (<font color="red">2000-50000</font>):<br><input name="conf_set16" maxlength="20" value="'.$siti_data[16].'" /><br>';echo '<br><input value="Изменить" type="submit" /></form>';} if($action=="editone"){$ufile = file(BASEDIR."local/navigator/conf/status.dat"); $udata = explode("|",$ufile[0]);$udata[1]=check($conf_set1);$udata[2]=check($conf_set2);$udata[3]=check($conf_set3);$udata[4]=check($conf_set4);$udata[5]=check($conf_set5);$udata[6]=check($conf_set6);$udata[7]=check($conf_set7);$udata[8]=check($conf_set8);$udata[9]=check($conf_set9);$udata[10]=check($conf_set10);$udata[11]=check($conf_set11);$udata[12]=check($conf_set12);$udata[13]=check($conf_set13);$udata[14]=check($conf_set14);$udata[15]=check($conf_set15);$udata[16]=check($conf_set16);for ($u=0; $u<$siti_config; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/status.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: status.php?isset=mp_yesset&".SID);}if($action=="urki"){$siti_st = file(BASEDIR."local/navigator/conf/urki.dat"); $siti_data = explode("|",$siti_st[0]);echo '<form method="post" action="status.php?action=edit&'.SID.'">';echo '<div class=body>Статусы в бан чате!<br>';echo 'Баллы (<font color="red">0</font>):<br><input name="conf_set0" maxlength="20" value="'.$siti_data[0].'" /><br>';echo 'Баллы (<font color="red">1-100</font>):<br><input name="conf_set1" maxlength="20" value="'.$siti_data[1].'" /><br>';echo 'Баллы (<font color="red">100-300</font>):<br><input name="conf_set2" maxlength="20" value="'.$siti_data[2].'" /><br>';echo 'Баллы (<font color="red">300-700</font>):<br><input name="conf_set3" maxlength="20" value="'.$siti_data[3].'" /><br>';echo 'Баллы (<font color="red">700-1600</font>):<br><input name="conf_set4" maxlength="20" value="'.$siti_data[4].'" /><br>';echo 'Баллы (<font color="red">1600-3000</font>):<br><input name="conf_set5" maxlength="20" value="'.$siti_data[5].'" /><br>';echo 'Баллы (<font color="red">3000-10000</font>):<br><input name="conf_set6" maxlength="20" value="'.$siti_data[6].'" /><br>';echo 'Баллы (<font color="red">10000-20000</font>):<br><input name="conf_set7" maxlength="20" value="'.$siti_data[7].'" /><br>';echo 'Баллы (<font color="red">20000-50000</font>):<br><input name="conf_set8" maxlength="20" value="'.$siti_data[8].'" /><br>';echo '<br><input value="Изменить" type="submit" /></form>';} if($action=="edit"){$ufile = file(BASEDIR."local/navigator/conf/urki.dat"); $udata = explode("|",$ufile[0]);$udata[0]=check($conf_set0);$udata[1]=check($conf_set1);$udata[2]=check($conf_set2);$udata[3]=check($conf_set3);$udata[4]=check($conf_set4);$udata[5]=check($conf_set5);$udata[6]=check($conf_set6);$udata[7]=check($conf_set7);$udata[8]=check($conf_set8);for ($u=0; $u<$siti_config; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/urki.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: status.php?isset=mp_yesset&".SID);}if($action=="admin"){$siti_st = file(BASEDIR."local/navigator/conf/admin.dat"); $siti_data = explode("|",$siti_st[0]);echo '<form method="post" action="status.php?action=ed&'.SID.'">';echo '<div class=body>Статусы администрации а бан чате!<br>';echo 'Супер Админ:<br><input name="conf_set0" maxlength="20" value="'.$siti_data[0].'" /><br>';echo 'Админ:<br><input name="conf_set1" maxlength="20" value="'.$siti_data[1].'" /><br>';echo 'Старший модер:<br><input name="conf_set2" maxlength="20" value="'.$siti_data[2].'" /><br>';echo 'Модер:<br><input name="conf_set3" maxlength="20" value="'.$siti_data[3].'" /><br>';echo '<br><input value="Изменить" type="submit" /></form>';} if($action=="ed"){$ufile = file(BASEDIR."local/navigator/conf/admin.dat"); $udata = explode("|",$ufile[0]);$udata[0]=check($conf_set0);$udata[1]=check($conf_set1);$udata[2]=check($conf_set2);$udata[3]=check($conf_set3);for ($u=0; $u<$siti_config; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/admin.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: status.php?isset=mp_yesset&".SID);}
echo'</div><div class="btm">» <a href="../index.php?'.SID.'">В город</a><br>';
echo'» <a href="setting.php?">Настройки</a><br>';
echo'» <a href="../../index.php?'.SID.'">На главную</a></div>';
} else {header ("Location: ../index.php?error&".SID);}} else {header ("Location: ../index.php?error&".SID);}
include_once "../../themes/$config_themes/foot.php";
?>