File size: 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>Неверный Логин или Пароль</b>";}else{
print '
<br/>
<a href="./dron.php?admin='.$admin.'&pass='.$pass.'&cmd=add">Добавить Баннер</a>
<br/>
<a href="./dron.php?admin='.$admin.'&pass='.$pass.'&cmd=del">Удалить Баннер</a>
<br/>
';
}
}
include "footer.php";
?>