[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: не проходит авторизация в админку
Страницы: 1, 2
Начинающий
dron4ik в индексе есть подкллючения конфига
Начинающий
dron4ik

<?php
/**
* The administration panel (router)
* Панель администрации (роутер)
*
@author IT studio IRBIS-team
*
@copyright © 2009 IRBIS-team
*/
/////////////////////////////////////////////////////////

/**
* We establish the charset and level of errors
* Устанавливаем кодировку и уровень ошибок
*/

header("Content-Type: text/html; charset=utf-8");
error_reporting(E_ALL);
/**
* We include buffering
* Включаем буфферизацию
*/

ob_start();
session_start();
/**
* De
bug
* Дебаггер
*
@TODO To clean in release
*/

define('IRB_TRACE', true);
include '../debug.php';

/**
* Installation of a key of access to files
* Установка ключа доступа к файлам
*/

define('IRB_KEY', true);

/**
* The administrator-panel identifier
* Идентификатор админ-панели
*/

define('IRB_ADMIN', true);

/**
* We connect a configuration file
* Подключаем конфигурационный файл
*/

include '../config.php';

/**
* We connect a file of the language
* Подключаем языковой файл
*/

include IRB_ROOT .'language/'. IRB_LANGUAGE .'.php';

/**
* We connect a file of initialization of variables
* Подключаем файл инициализации переменных
*/

include IRB_ROOT .'variables.php';

/**
* We connect a file of the general functions
* Подключаем файл общих функций
*/

include IRB_ROOT .'libs/default.php';

/**
* We connect a file of the views functions
* Подключаем файл функций отображения
*/

include IRB_ROOT .'libs/view.php';


if(!empty($_SESSION['admin']))
{
/**
* The switch of modules
* Переключатель страниц
*/

switch($GET['page'])
{
case 'meta':
include IRB_ROOT .'admin/meta/router.php';
break;

case 'exit':
include IRB_ROOT .'admin/sequrity/exit.php';
break;

case 'main':
include IRB_ROOT .'admin/main/router.php';
break;

case 'guest':
include IRB_ROOT .'admin/guest/router.php';
break;

default:
include IRB_ROOT .'admin/meta/router.php';
break;
}

$tpl = getTpl('admin_menu');
$admin_menu = parseTpl($tpl, array());

}
else
{
$admin_menu = '';
include IRB_ROOT .'admin/sequrity/enter.php';
}

$content = ob_get_contents();
ob_end_clean();

$title = getMeta('title');

/**
* Includes the main template of a site
* Подключаем главный шаблон сайта
*/

include IRB_ROOT .'skins/tpl/admin.tpl';

Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.