* @link http://www.pioder.pl/ * @license see LICENSE.txt **/ 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 ' DSF Administration '; } } ?>