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

<?php
/**
* @package uForum
* @file admin/index.php
* @version $Id$
* @copyright 2007-2010 (c) PioDer <[email protected]>
* @link http://www.pioder.pl/
* @license see LICENSE.txt
**/
define('IN_uF', true);
//include files
include('./../config.php');
include('./../includes/constants.php');
include('./../includes/db.php');
include('./../includes/errors.php');
//connect to database
DataBase::db_connect();
include('./../includes/sessions.php');
include('./../includes/classes/class_user.php');
include('./../common.php');
include('./../includes/admin/class_main.php');
include('./../includes/classes/class_forum.php');
include('./../lngs/'.Admin_Over::DefaultLang().'/admin.php');
SessDelInvalid();
SessRegister();
SessDeleteOld();
if (User::UserInformation($_SESSION['uid'],'rank')!=2)
{
admin_message_forum($lng['yournotadmin'],'../index.php');
}
echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="../images/favicon.ico">
<link rel="favicon" href="../images/favicon.ico">
<title>&micro;Forum ACP</title>
<frameset rows="90,*" border="2" framespacing="0" frameborder="yes">
<frame src="header.php" name="nav" marginheight="3" scrolling="no">
<frame src="forum_info.php" name="main" marginwidth="10" marginheight="10">
</frameset>
</head>
<body>
Sorry, you browser doesn\'t support frames.
</body>
</html>
';
/*echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="../skins/'.$default_skin.'/images/favicon.ico">
<link rel="favicon" href="../skins/'.$default_skin.'/images/favicon.ico">
<title>&micro;Forum Administration</title>
<frameset cols="200,*" rows="*" border="2" framespacing="0" frameborder="yes">
<frame src="header.php" name="nav" marginwidth="3" marginheight="3" scrolling="auto">
<frame src="forum_info.php" name="main" marginwidth="10" marginheight="10" scrolling="auto">
</frameset>
</head>
<body>
Sorry, you browser doesn\'t support frames.
</body>
</html>
';*/
?>