<?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){if(!isset($action)){$siti_st = file(BASEDIR."local/navigator/conf/securiti.dat"); $siti_ohr = explode("|",$siti_st[0]);echo '<div class=tp>Охранное агенство</div><div class=body>'; echo'» <a href="securiti.php?st0&'.SID.'">'.$siti_ohr[0].'-><a> '.$siti_ohr[1].' $ Здopoвьe: <font color="red">'.$siti_ohr[2].'</font><br>';if(isset($st0)){echo'<form method="post" action="securiti.php?action=sk0&'.SID.'">';echo 'Название:<br><input name="conf_or0" maxlength="100" value="'.$siti_ohr[0].'" /><br>Цена:<br><input name="conf_or1" maxlength="20" value="'.$siti_ohr[1].'" /><br>Здopoвьe:<br><input name="conf_or2" maxlength="20" value="'.$siti_ohr[2].'" /><br><input value="Изменить" type="submit" /></form>';}echo'» <a href="securiti.php?st1&'.SID.'">'.$siti_ohr[3].'-><a> '.$siti_ohr[4].' $ Здopoвьe: <font color="red">'.$siti_ohr[5].'</font><br>';if(isset($st1)){echo'<form method="post" action="securiti.php?action=sk1&'.SID.'">';echo 'Название:<br><input name="conf_or3" maxlength="100" value="'.$siti_ohr[3].'" /><br>Цена:<br><input name="conf_or4" maxlength="20" value="'.$siti_ohr[4].'" /><br>Здopoвьe:<br><input name="conf_or5" maxlength="20" value="'.$siti_ohr[5].'" /><br><input value="Изменить" type="submit" /></form>';}echo'» <a href="securiti.php?st2&'.SID.'">'.$siti_ohr[6].'-><a> '.$siti_ohr[7].' $ Здopoвьe: <font color="red">'.$siti_ohr[8].'</font><br>';if(isset($st2)){echo'<form method="post" action="securiti.php?action=sk2&'.SID.'">';echo 'Название:<br><input name="conf_or6" maxlength="100" value="'.$siti_ohr[6].'" /><br>Цена:<br><input name="conf_or7" maxlength="20" value="'.$siti_ohr[7].'" /><br>Здopoвьe:<br><input name="conf_or8" maxlength="20" value="'.$siti_ohr[8].'" /><br><input value="Изменить" type="submit" /></form>';}echo'» <a href="securiti.php?st3&'.SID.'">'.$siti_ohr[9].'-><a> '.$siti_ohr[10].' $ Здopoвьe: <font color="red">'.$siti_ohr[11].'</font><br>';if(isset($st3)){echo'<form method="post" action="securiti.php?action=sk3&'.SID.'">';echo 'Название:<br><input name="conf_or9" maxlength="100" value="'.$siti_ohr[9].'" /><br>Цена:<br><input name="conf_or10" maxlength="20" value="'.$siti_ohr[10].'" /><br>Здopoвьe:<br><input name="conf_or11" maxlength="20" value="'.$siti_ohr[11].'" /><br><input value="Изменить" type="submit" /></form>';} echo'» <a href="securiti.php?st4&'.SID.'">'.$siti_ohr[12].'-><a> '.$siti_ohr[13].' $ Здopoвьe: <font color="red">'.$siti_ohr[14].'</font><br>';if(isset($st4)){echo'<form method="post" action="securiti.php?action=sk4&'.SID.'">';echo 'Название:<br><input name="conf_or12" maxlength="100" value="'.$siti_ohr[12].'" /><br>Цена:<br><input name="conf_or13" maxlength="20" value="'.$siti_ohr[13].'" /><br>Здopoвьe:<br><input name="conf_or14" maxlength="20" value="'.$siti_ohr[14].'" /><br><input value="Изменить" type="submit" /></form>';} echo'» <a href="securiti.php?st5&'.SID.'">'.$siti_ohr[15].'-><a> '.$siti_ohr[16].' $ Здopoвьe: <font color="red">'.$siti_ohr[17].'</font><br>';if(isset($st5)){echo'<form method="post" action="securiti.php?action=sk5&'.SID.'">';echo 'Название:<br><input name="conf_or15" maxlength="100" value="'.$siti_ohr[15].'" /><br>Цена:<br><input name="conf_or16" maxlength="20" value="'.$siti_ohr[16].'" /><br>Здopoвьe:<br><input name="conf_or17" maxlength="20" value="'.$siti_ohr[17].'" /><br><input value="Изменить" type="submit" /></form>';} echo'» <a href="securiti.php?st6&'.SID.'">'.$siti_ohr[18].'-><a> '.$siti_ohr[19].' $ Здopoвьe: <font color="red">'.$siti_ohr[20].'</font><br>';if(isset($st6)){echo'<form method="post" action="securiti.php?action=sk6&'.SID.'">';echo 'Название:<br><input name="conf_or18" maxlength="100" value="'.$siti_ohr[18].'" /><br>Цена:<br><input name="conf_or19" maxlength="20" value="'.$siti_ohr[19].'" /><br>Здopoвьe:<br><input name="conf_or20" maxlength="20" value="'.$siti_ohr[20].'" /><br><input value="Изменить" type="submit" /></form>';} echo'» <a href="securiti.php?st7&'.SID.'">'.$siti_ohr[21].'-><a> '.$siti_ohr[22].' $ Здopoвьe: <font color="red">'.$siti_ohr[23].'</font><br>';if(isset($st7)){echo'<form method="post" action="securiti.php?action=sk7&'.SID.'">';echo 'Название:<br><input name="conf_or21" maxlength="100" value="'.$siti_ohr[21].'" /><br>Цена:<br><input name="conf_or22" maxlength="20" value="'.$siti_ohr[22].'" /><br>Здopoвьe:<br><input name="conf_or23" maxlength="20" value="'.$siti_ohr[23].'" /><br><input value="Изменить" type="submit" /></form>';} echo'» <a href="securiti.php?st8&'.SID.'">'.$siti_ohr[24].'-><a> '.$siti_ohr[25].' $ Здopoвьe: <font color="red">'.$siti_ohr[26].'</font><br>';if(isset($st8)){echo'<form method="post" action="securiti.php?action=sk8&'.SID.'">';echo 'Название:<br><input name="conf_or24" maxlength="100" value="'.$siti_ohr[24].'" /><br>Цена:<br><input name="conf_or25" maxlength="20" value="'.$siti_ohr[25].'" /><br>Здopoвьe:<br><input name="conf_or26" maxlength="20" value="'.$siti_ohr[26].'" /><br><input value="Изменить" type="submit" /></form>';}echo'» <a href="securiti.php?st9&'.SID.'">'.$siti_ohr[27].'-><a> '.$siti_ohr[28].' $ Здopoвьe: <font color="red">'.$siti_ohr[29].'</font><br>';if(isset($st9)){echo'<form method="post" action="securiti.php?action=sk9&'.SID.'">';echo 'Название:<br><input name="conf_or27" maxlength="100" value="'.$siti_ohr[27].'" /><br>Цена:<br><input name="conf_or28" maxlength="20" value="'.$siti_ohr[28].'" /><br>Здopoвьe:<br><input name="conf_or29" maxlength="20" value="'.$siti_ohr[29].'" /><br><input value="Изменить" type="submit" /></form>';}echo'» <a href="securiti.php?st10&'.SID.'">'.$siti_ohr[30].'-><a> '.$siti_ohr[31].' $ Здopoвьe: <font color="red">'.$siti_ohr[32].'</font><br>';if(isset($st10)){echo'<form method="post" action="securiti.php?action=sk10&'.SID.'">';echo 'Название:<br><input name="conf_or30" maxlength="100" value="'.$siti_ohr[30].'" /><br>Цена:<br><input name="conf_or31" maxlength="20" value="'.$siti_ohr[31].'" /><br>Здopoвьe:<br><input name="conf_or32" maxlength="20" value="'.$siti_ohr[32].'" /><br><input value="Изменить" type="submit" /></form>';}echo'» <a href="securiti.php?st11&'.SID.'">'.$siti_ohr[33].'-><a> Здopoвьe: <font color="red">'.$siti_ohr[35].'</font><br>';if(isset($st11)){echo'<form method="post" action="securiti.php?action=sk11&'.SID.'">';echo 'Название:<br><input name="conf_or33" maxlength="100" value="'.$siti_ohr[33].'" /><br>Здopoвьe:<br><input name="conf_or35" maxlength="20" value="'.$siti_ohr[35].'" /><br><input value="Изменить" type="submit" /></form>';}}if($action=="sk11"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.dat"); $udata = explode("|",$ufile[0]);$udata[33]=check($conf_or33);$udata[35]=check($conf_or35);for ($u=0; $u<$siti_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk10"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk9"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk8"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk7"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk0"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk1"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk2"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk3"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk4"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk5"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".SID);}if($action=="sk6"){ $ufile = file(BASEDIR."local/navigator/conf/securiti.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_securiti; $u++){$utext.=$udata[$u].'|';}$fp=fopen(BASEDIR."local/navigator/conf/securiti.dat","a+"); flock($fp,LOCK_EX); ftruncate($fp,0); fputs($fp,$utext);fflush($fp);flock($fp,LOCK_UN);fclose($fp); unset($utext); header ("Location: securiti.php?".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";
?>