View file mp.php
<?php //Coding by Studentsov //ICQ: 161971 //Jabber: [email protected] //Выполняю создание модификаций для популярных CMS, быстро и не дорого! 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'; require_once 'themes/' . $config_themes . '/index.php'; require_once 'template/isset.php'; if (isset ($_GET['isset']) and $_GET['isset'] == 'bad_mpanel_password') { echo '<div align="center"><font color="#FF0000"><b>Вы ввели неверный пароль доступа к панели управления</b></font><br></div>'; } if (empty ($_SESSION['log']) or $dostup == 107 or (isset ($_SESSION['mpanel_password']) and $_SESSION['mpanel_password'] === trim (file_get_contents (BASEDIR . 'local/datamain/mpanel_password.dat')))) { header ('Location: pages/error.php?error=404'); exit; } if (isset ($_POST['mp_password'])) { $mp_password = check ($_POST['mp_password']); if ($mp_password === trim (file_get_contents (BASEDIR . 'local/datamain/mpanel_password.dat'))) { $_SESSION['mpanel_password'] = $mp_password; if (isset ($_SESSION['return_url'])) { header ('Location: ' . $config_home . base64_decode ($_SESSION['return_url'])); unset ($_SESSION['return_url']); }else { header ('Location: ' . BASEDIR . $config_mpanel . '/index.php'); } }else { header ('Location: mp.php?isset=bad_mpanel_password'); } exit; } echo '<img src="../images/img/admin.gif" alt=""> <b>Проверка доступа</b><br><br>'; echo '<form action="mp.php" method="post">'; echo '<b>Введите код доступа:</b><br>'; echo '<input type="password" name="mp_password"><br><br>'; echo '<input type="submit" value="Далее"></form><br>'; echo '<img src="../images/img/homepage.gif" alt=""> <a href="index.php">На главную</a>'; require_once 'themes/' . $config_themes . '/foot.php'; ?>