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 2009(c) PioDer <pioder@wp.pl>
  7. * @link http://pioder.gim2przemysl.int.pl/
  8. * @license GNU GPL v3
  9. **/
  10. define('IN_uF', true);
  11. include('./../config.php');
  12. include('./../includes/constants.php');
  13. include('./../includes/db.php');
  14. include('./../includes/errors.php');
  15. //connect to database
  16. DataBase::db_connect();
  17. include('./../includes/sessions.php');
  18. include('./../includes/classes/class_user.php');
  19. include('./../common.php');
  20. include('./../includes/admin/class_main.php');
  21. include('./../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_nav'],
  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. include('./template/overall_header.tpl');
  46. ?>