A lightweight forum engine written in PHP. Repository is now obsolete and read-only. http://www.pioder.pl/uforum.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.4 KiB

<?php
/**
* @package uForum
* @file admin/header.php
* @version $Id$
* @copyright 2007-2010 (c) PioDer <[email protected]>
* @link http://www.pioder.pl/
* @license see LICENSE.txt
**/
define('IN_uF', true);
require('./../config.php');
require('./../includes/constants.php');
require('./../includes/db.php');
require('./../includes/errors.php');
//connect to database
DataBase::db_connect();
require('./../includes/sessions.php');
require('./../includes/classes/class_user.php');
require('./../common.php');
require('./../includes/admin/class_main.php');
require('./../lngs/'.Admin_Over::DefaultLang().'/admin.php');
SessDelInvalid();
SessRegister();
SessDeleteOld();
if (User::UserInformation($_SESSION['uid'],'rank')!=2)
{
admin_message_forum($lng['yournotadmin'],'../index.php');
}
$skin = array(
'uf_pa'=>$lng['uf_pa'],
'index'=>$lng['index'],
'gotoforum'=>$lng['go_to_forum'],
'scriptstat'=>$lng['scriptstat'],
'scriptoptions'=>$lng['scriptconfig'],
'admin_forums'=>$lng['admin_forums'],
'admin_groups'=>$lng['admin_groups'],
'admin_users'=>$lng['admin_users'],
'admin_banlist'=>$lng['admin_banlist'],
'admin_censorlist'=>$lng['admin_censorlist'],
'admin_smilelist'=>$lng['admin_smilelist'],
'mass_email' => $lng['mass_email'],
'admin_styles' => $lng['styles'],
'main_beam'=>$lng['pa_mainpage']
);
require('./template/overall_header.tpl');
?>