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.

66 lines
2.2 KiB

  1. <?php
  2. /**
  3. * @package uForum
  4. * @file admin/index.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 files
  12. include('./../config.php');
  13. include('./../includes/constants.php');
  14. include('./../includes/db.php');
  15. include('./../includes/errors.php');
  16. //connect to database
  17. DataBase::db_connect();
  18. include('./../includes/sessions.php');
  19. include('./../includes/classes/class_user.php');
  20. include('./../common.php');
  21. include('./../includes/admin/class_main.php');
  22. include('./../includes/classes/class_forum.php');
  23. include('./../lngs/'.Admin_Over::DefaultLang().'/admin.php');
  24. $default_skin = Admin_Over::ViewSkinName();
  25. SessDelInvalid();
  26. SessRegister();
  27. SessDeleteOld();
  28. if (User::UserInformation($_SESSION['uid'],'rank')!=2)
  29. {
  30. admin_message_forum($lng['yournotadmin'],'../index.php');
  31. }
  32. echo '
  33. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  34. <head>
  35. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  36. <link rel="shortcut icon" href="../skins/'.$default_skin.'/images/favicon.ico">
  37. <link rel="favicon" href="../skins/'.$default_skin.'/images/favicon.ico">
  38. <title>&micro;Forum ACP</title>
  39. <frameset rows="90,*" border="2" framespacing="0" frameborder="yes">
  40. <frame src="header.php" name="nav" marginheight="3" scrolling="no">
  41. <frame src="forum_info.php" name="main" marginwidth="10" marginheight="10">
  42. </frameset>
  43. </head>
  44. <body>
  45. Sorry, you browser doesn\'t support frames.
  46. </body>
  47. </html>
  48. ';
  49. /*echo '
  50. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  51. <head>
  52. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  53. <link rel="shortcut icon" href="../skins/'.$default_skin.'/images/favicon.ico">
  54. <link rel="favicon" href="../skins/'.$default_skin.'/images/favicon.ico">
  55. <title>&micro;Forum Administration</title>
  56. <frameset cols="200,*" rows="*" border="2" framespacing="0" frameborder="yes">
  57. <frame src="header.php" name="nav" marginwidth="3" marginheight="3" scrolling="auto">
  58. <frame src="forum_info.php" name="main" marginwidth="10" marginheight="10" scrolling="auto">
  59. </frameset>
  60. </head>
  61. <body>
  62. Sorry, you browser doesn\'t support frames.
  63. </body>
  64. </html>
  65. ';*/
  66. ?>