<?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/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";require_once"../../template/isset.php";$time=time();$file=check($file);if ($_SESSION['log']!="" && md5($_SESSION['par'])!="" && md5($_SESSION['par'])==$provpar && $_SESSION['log']==$provlog ) {if ($dostup==101 && $log==$config_nikname){ echo'<img src="../images/img/menu.gif" alt=""> <b>Ред главной города</b><br><br>';if(!isset($action)){$opis=file("../../local/datamain/siti.dat");$count=count($opis);echo '<div class=b>';for ($i = 0; $i < $count; $i++){$al.=$opis[$i];}echo '<form action="edit.php?action=editfile&amp;'.SID.'" name="form" method="POST">';echo '<textarea cols="110" rows="20" name="fil">'.$al.'</textarea>';echo '<br><input type="submit" value="Редактировать"></form><hr>';echo '</div>';}if($action=="editfile"){if($fil!=""){$fp = fopen("../../local/datamain/siti.dat","a+");flock ($fp,LOCK_EX);ftruncate($fp,0);fputs($fp,$fil);fflush ($fp);flock ($fp,LOCK_UN);fclose($fp);chmod ("../../local/datamain/siti.dat", 0666);}header ("Location: setting.php?isset=mp_editfiles&".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=='));?>