Files
uf/includes/admin/class_main.php
pioder 98bd401edb + Replaced old functions to listing dirs in admin_script.php and admin_users.php
+ Fixed update server address
+ Replaced URL in footer
+ Deleted admin styles page
+ Fixed a few bugs in polish language files

git-svn-id: https://svn.pioder.pl/uf-svn/uF@35 72ec579a-5ced-4fa4-82f3-afba5d98df2f
2009-11-10 16:11:00 +00:00

60 lines
1.5 KiB
PHP

<?php
/**
* @package uForum
* @file includes/admin/class_main.php
* @version $Id$
* @copyright 2009(c) PioDer <pioder@wp.pl>
* @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">';
}
}
?>