Просмотр файла admin.php

Размер файла: 2.1Kb
<?
/*
	#=====================================================#
	#              (c) 2006  Banner Rotate v.1            #
	#=====================================================#
	#            WAP site http://mega-wap.com.ru          #
    #            WEB site http://art-tech.net.ru          #
	#=====================================================#
	#                 Programmed By Demonaz               #
	#                    [email protected]                  #
	#=====================================================#
*/

include "header.php";

////////////////////////////////////////////////////////////////////
////////////////////////////  Вход в Админинг //////////////////////
////////////////////////////////////////////////////////////////////
if (empty($admin) || empty($pass)){
print '
Login:
<br/>
<input name="admin_login" type="text" maxlength="10" />
<br/>
Pass:
<br/>
<input name="admin_pass" type="password" maxlength="10" />
<br/>
<anchor title="ok">Ok
	<go href="admin.php?cmd=enter" method="post">
	<postfield name="admin" value="$(admin_login)"/>
	<postfield name="pass" value="$(admin_pass)"/>
	</go>
	</anchor><br/>
';
include "footer.php";
exit;
}

///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////

if (empty($cmd)){$cmd = false;}


if ($cmd == "enter"){

include "./config.php";

if(empty($enter)){$enter = 0;}

if ($enter == 0){print "<b>&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1099;&#1081; &#1051;&#1086;&#1075;&#1080;&#1085; &#1080;&#1083;&#1080; &#1055;&#1072;&#1088;&#1086;&#1083;&#1100;</b>";}else{
print '
<br/>
<a href="./dron.php?admin='.$admin.'&amp;pass='.$pass.'&amp;cmd=add">&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1041;&#1072;&#1085;&#1085;&#1077;&#1088;</a>
<br/>
<a href="./dron.php?admin='.$admin.'&amp;pass='.$pass.'&amp;cmd=del">&#1059;&#1076;&#1072;&#1083;&#1080;&#1090;&#1100; &#1041;&#1072;&#1085;&#1085;&#1077;&#1088;</a>
<br/>
';
}
}
include "footer.php";
?>