* @link http://pioder.gim2przemysl.int.pl/ * @license GNU GPL v3 **/ if ( !defined('IN_uF') ) { die('Hacking attempt'); } class Admin_Over { function ListPages($page, $count = 50)//for edit profile, not used in limit! { $content = ''; for ($i=1;$i<=$count;$i++) { if ($i==$page) { $content .= ''; } else { $content .= ''; } } return $content; unset($content); } function ListDir($dir, $selection) { $result=''; $rep=opendir('./../'.$dir); while ($file = readdir($rep)) { if($file != '..' && $file !='.' && $file !='' && $file[0] != '.') { if (is_dir('./../'.$dir.'/'.$file)){ if ($file==$selection) { $result .=''; } else { $result .=''; } } } } return $result; unset($rep, $file, $result); } 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 '