View file admin/pagestart.php

File size: 618B
<?php
/***************************************************************************
 *                                mides.ru
 *                            -------------------
 ***************************************************************************/
if (!defined('IN_PHPBB'))
{
	die("Hacking attempt");
}
define('IN_ADMIN', true);
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

if( $userdata['user_level'] != ADMIN ) {header ("Location: http://mides.ru");}

if (empty($no_page_header))
{
	include('./page_header_admin.'.$phpEx);
}
?>