Просмотр файла new_book_line/adminedit.php

Размер файла: 3.59Kb
<?


Error_Reporting(E_ALL & ~E_NOTICE);          /////////////// игнорируем ошибки
header("Content-type:text/vnd.wap.wml;charset=utf-8");      //////// тип и кодировка документа

////////////// Параметры книги /////////////////////////////////////////////////

$gl="../index.php";     /////////ссылка на главную
$admin="Admin";                   ////////админ
$parad="admin";                    ////////пароль админа
$zag="&#1040;&#1076;&#1084;&#1080;&#1085;&#1080;&#1089;&#1090;&#1088;&#1072;&#1090;&#1080;&#1074;&#1085;&#1072;&#1103; &#1087;&#1072;&#1085;&#1077;&#1083;&#1100;";
//////////////////////////////////////////////////////////////////////////////






$currHour=date("H",time());///////////формат даты и времени
$currDate=date("dS F, Y", time());
$curr=date("i:s", time());
$currTime=date("$currHour:i:s", time());

if($parad!=$pas) {$log="";}


print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
        <!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
        <wml><card id=\"mas\" title=\"$zag\"><p align=\"center\">";
                                                        ///////////// выводим вмл заголовок
//<b>$currTime</b><br/><small>$currDate</small></p><p>

include ("online.php");



if($log==$admin){
   print"&#1059;&#1076;&#1072;&#1083;&#1077;&#1085;&#1080;&#1077; &#1089;&#1086;&#1086;&#1073;&#1097;&#1077;&#1085;&#1080;&#1081;:";
  print"<br/>

  <anchor title=\"del\">&#1087;&#1086; &#1080;&#1084;&#1077;&#1085;&#1080;:

        <go href=\"del.php?delname=true\" method=\"post\">
        <postfield name=\"log\" value=\"$admin\"/>
        <postfield name=\"pas\" value=\"$pas\"/>
        <postfield name=\"namedel\" value=\"$(namedel)\"/>
        </go>
        </anchor><br/>
        <input name=\"namedel\" maxlength=\"20\" value=\"\"/><br/>

        <anchor title=\"del\">&#1055;&#1086; &#1085;&#1086;&#1084;&#1077;&#1088;&#1072;&#1084;
        <go href=\"del.php?delnumber=true\" method=\"post\">
        <postfield name=\"log\" value=\"$admin\"/>
        <postfield name=\"pas\" value=\"$pas\"/>
        <postfield name=\"number\" value=\"$(number)\"/>

        </go>
        </anchor><br/>
        <input name=\"number\" maxlength=\"10\" value=\"\"/><br/>

         <b>&#1047;&#1072;&#1073;&#1072;&#1085;&#1080;&#1090;&#1100;:<br/></b>

        <anchor title=\"ban\">&#1055;&#1086; &#1080;&#1084;&#1077;&#1085;&#1080;:
        <go href=\"bann.php?\" method=\"post\">
        <postfield name=\"log\" value=\"$admin\"/>
        <postfield name=\"pas\" value=\"$pas\"/>
        <postfield name=\"banname\" value=\"$(banname)\"/>
        </go>
        </anchor><br/>
        <input name=\"banname\" maxlength=\"20\" value=\"\"/><br/>

        <anchor title=\"ban\">&#1055;&#1086; IP:
        <go href=\"bann.php?\" method=\"post\">
        <postfield name=\"log\" value=\"$admin\"/>
        <postfield name=\"pas\" value=\"$pas\"/>
        <postfield name=\"banip\" value=\"$(banip)\"/>
        </go>
        </anchor><br/>
        <input name=\"banip\" maxlength=\"20\" value=\"\"/>
        <br/>
        <anchor title=\"ban\">&#1047;&#1072;&#1073;&#1072;&#1085;&#1077;&#1085;&#1085;&#1099;&#1077;
        <go href=\"bannview.php?\" method=\"post\">
        <postfield name=\"log\" value=\"$admin\"/>
        <postfield name=\"pas\" value=\"$pas\"/>
        </go>
        </anchor><br/>


        ";












  print"<br/>";
  print"<br/>";
   }
print"<br/><a href=\"$gl\">&#x041D;&#x0430; &#x0433;&#x043B;&#x0430;&#x0432;&#x043D;&#x0443;&#x044E;</a><br/>
</p></card></wml>";

?>