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

  1. <?php
  2. /**
  3. * @package uForum
  4. * @file admin/header.php
  5. * @version $Id$
  6. * @copyright 2007-2010 (c) PioDer <pioder@wp.pl>
  7. * @link http://www.pioder.pl/
  8. * @license see LICENSE.txt
  9. **/
  10. define('IN_uF', true);
  11. require('./../config.php');
  12. require('./../includes/constants.php');
  13. require('./../includes/db.php');
  14. require('./../includes/errors.php');
  15. //connect to database
  16. DataBase::db_connect();
  17. require('./../includes/sessions.php');
  18. require('./../includes/classes/class_user.php');
  19. require('./../common.php');
  20. require('./../includes/admin/class_main.php');
  21. require('./../lngs/'.Admin_Over::DefaultLang().'/admin.php');
  22. SessDelInvalid();
  23. SessRegister();
  24. SessDeleteOld();
  25. if (User::UserInformation($_SESSION['uid'],'rank')!=2)
  26. {
  27. admin_message_forum($lng['yournotadmin'],'../index.php');
  28. }
  29. $skin = array(
  30. 'uf_pa'=>$lng['uf_pa'],
  31. 'index'=>$lng['index'],
  32. 'gotoforum'=>$lng['go_to_forum'],
  33. 'scriptstat'=>$lng['scriptstat'],
  34. 'scriptoptions'=>$lng['scriptconfig'],
  35. 'admin_forums'=>$lng['admin_forums'],
  36. 'admin_groups'=>$lng['admin_groups'],
  37. 'admin_users'=>$lng['admin_users'],
  38. 'admin_banlist'=>$lng['admin_banlist'],
  39. 'admin_censorlist'=>$lng['admin_censorlist'],
  40. 'admin_smilelist'=>$lng['admin_smilelist'],
  41. 'mass_email' => $lng['mass_email'],
  42. 'admin_styles' => $lng['styles'],
  43. 'main_beam'=>$lng['pa_mainpage']
  44. );
  45. require('./template/overall_header.tpl');
  46. ?>