<?php
|
|
/**
|
|
* @package uForum
|
|
* @file includes/admin/class_main.php
|
|
* @version $Id$
|
|
* @copyright 2009(c) PioDer <[email protected]>
|
|
* @link http://pioder.gim2przemysl.int.pl/
|
|
* @license GNU GPL v3
|
|
**/
|
|
if ( !defined('IN_uF') )
|
|
{
|
|
die('Hacking attempt');
|
|
}
|
|
class Admin_Over
|
|
{
|
|
|
|
|
|
function DefaultLang()
|
|
{
|
|
global $forum_config;
|
|
if ($_SESSION['uid']>0)
|
|
{
|
|
return User::UserInformation($_SESSION['uid'],'lang');
|
|
}
|
|
else
|
|
{
|
|
return $forum_config['defaultlang'];
|
|
}
|
|
}
|
|
function TotalTopics()
|
|
{
|
|
$sql = "SELECT `t_id` FROM ".TOPICS_TABLE.";";
|
|
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain total posts information');
|
|
$result = DataBase::num_rows($query);
|
|
return($result);
|
|
}
|
|
function TotalPosts()
|
|
{
|
|
$sql = "SELECT `p_id` FROM ".POSTS_TABLE.";";
|
|
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain total posts information');
|
|
$result = DataBase::num_rows($query);
|
|
return($result);
|
|
}
|
|
function GenerateHeader()
|
|
{
|
|
global $default_skin;
|
|
global $lng;
|
|
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="template/images/favicon.ico">
|
|
<link rel="stylesheet" href="template/skin.css" type="text/css">
|
|
<title>DSF Administration</title>
|
|
</head>
|
|
<body class="body">';
|
|
}
|
|
}
|
|
?>
|