<?phpsession_start();
include('includes/header.php');
if (userPermit(3))
{
include('interface/flash/manage/header.tpl.php');
}
$tableName = db_perfix . '_' . 'props_info';
$query = mysql_query("SELECT * FROM $tableName")
or die(mysql_error());
$rows = mysql_fetch_array($query);
$uploadLimit = $rows;
if (isset($_SESSION))
$uploadLimit = $rows;
if (isset($_REQUEST))
$page = strip_tags($_REQUEST);
else $page = "main";
if (isset($_REQUEST))
{
$usr = $_REQUEST;
include('user_view.php');
}
elseif (isset($_REQUEST))
{
$img = $_REQUEST;
include('view_image.php');
}
elseif (isset($_REQUEST))
{
$p = $_REQUEST;
include('pages.php');
}
elseif (isset($_REQUEST))
{
$t = $_REQUEST;
include('articles.php');
}
else
{
if (isset($page))
{
switch ($page)
{
case "upload":
include('upload.php');
break;
case "register":
include('register.php');
break;
case "signout":
include('sign_out.php');
break;
case "signin":
include('sign_in.php');
break;
case "viewall":
include('view_all.php');
break;
case "contact":
include ('contact.php');
break;
case "profile":
include('profile.php');
break;
case "new":
include('new.php');
break;
case "forum":
include('forum.php');
break;
case "new_massage":
include ('new_massage.php');
break;
case "new_article":
include ('send_article.php');
break;
case "main":
include('main.php');
break;
case "user_view":
include('user_view.php');
break;
case "art_view":
include('all_articles.php');
break;
case "arte":
include('article_editor.php');
break;
case "topice":
include('topic_editor.php');
break;
case "sube":
include('sub_editor.php');
break;
case "forum2":
include('forum_beta.php');
break;
case "dbback":
include('dbback.php');
break;
}
}
}
include('includes/footer.php');
?>