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.

65 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. SessDelInvalid();
  25. SessRegister();
  26. SessDeleteOld();
  27. if (User::UserInformation($_SESSION['uid'],'rank')!=2)
  28. {
  29. admin_message_forum($lng['yournotadmin'],'../index.php');
  30. }
  31. echo '
  32. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  33. <head>
  34. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  35. <link rel="shortcut icon" href="../images/favicon.ico">
  36. <link rel="favicon" href="../images/favicon.ico">
  37. <title>&micro;Forum ACP</title>
  38. <frameset rows="90,*" border="2" framespacing="0" frameborder="yes">
  39. <frame src="header.php" name="nav" marginheight="3" scrolling="no">
  40. <frame src="forum_info.php" name="main" marginwidth="10" marginheight="10">
  41. </frameset>
  42. </head>
  43. <body>
  44. Sorry, you browser doesn\'t support frames.
  45. </body>
  46. </html>
  47. ';
  48. /*echo '
  49. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  50. <head>
  51. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  52. <link rel="shortcut icon" href="../skins/'.$default_skin.'/images/favicon.ico">
  53. <link rel="favicon" href="../skins/'.$default_skin.'/images/favicon.ico">
  54. <title>&micro;Forum Administration</title>
  55. <frameset cols="200,*" rows="*" border="2" framespacing="0" frameborder="yes">
  56. <frame src="header.php" name="nav" marginwidth="3" marginheight="3" scrolling="auto">
  57. <frame src="forum_info.php" name="main" marginwidth="10" marginheight="10" scrolling="auto">
  58. </frameset>
  59. </head>
  60. <body>
  61. Sorry, you browser doesn\'t support frames.
  62. </body>
  63. </html>
  64. ';*/
  65. ?>