Размер файла: 1.75Kb
- <?php
-
- require_once ("../includes/start.php");
- require_once ("../includes/functions.php");
- require_once ("../includes/header.php");
- include_once ("../themes/".$config['themes']."/index.php");
-
- $t=microtime();
- session_name('ad');
- session_start();
- $s=session_id();
- print '<?xml version="1.0" encoding="utf-8"?>
- <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
-
- <html xmlns="http://www.w3.org/1999/xhtml">
-
- <head>
- <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
- <meta name="generator" content="Adobe GoLive"/>
- <title>Админ-панель</title>
- </head>
-
- <p align="left"><small>';
- if (!@$act)
- {
- print
- '<form method="post" action="admin.php?act=do">
- Пароль:<br/>
- <input name="pass" maxlength="30" value=""/><br/>
- <input value="Войти" name="do" type="submit"/></form><br/>';
- }
- else
- {if (@$_SESSION['admin']!='yes')
- $pass=@$_POST['pass'];
- //Тут нужно задать пароль от админ-панели
- include 'nast.php';
- if (@$pass!=$passw and @$_SESSION['admin']!='yes')
- print 'неверный пароль<br/><a href="admin.php">Повторить ввод</a><br/>';
- else{
- $_SESSION['admin']='yes';
- $sess_id=session_id();
- include('db.php');
- print "<a href=\"upload.php?ad=$s\">Загрузка файлов</a><br/>";
- print "<a href=\"updatefile.php?ad=$s\">Обновление списка файлов</a><br/>";
- print "<a href=\"import.php?ad=$s\">Импорт файлов</a><br/>";
- $tim=time()-300;
-
-
- print "<a href=\"exitadmin.php?ad=$s\">Выход из системы</a><br/>
- ";
- }
- }
- include_once ("themes/".$config['themes']."/foot.php");
- ?>
- </small></p></body></html>
-
-