pagenum = (int)filter_input(INPUT_GET, 'pagenum'); $output_handler = new OutputHandler; $output_handler->addToHead(''); $output_handler->addToFooter(''); $output_handler->addToFooter(''); $output_handler->addToHead(''); $output_handler->addToFooter(''); $output_handler->addToHead(''); $output_handler->addToJquery('$(".sidebar, .sidebar-sm .admin-submenu, .sidebar-sm .search-box, .messages-box").mCustomScrollbar({theme: "minimal-dark", axis: "y", scrollInertia: 550, mouseWheel: {enable: !0, axis: "y", preventDefault: !0}});'); $html = '
'; $html .= $this->TopMenu(); $html .= $this->Sidebar(); $html .= '
'; $html .= ''; $html .= ''; $html .= renderNotices(getNotices()); $html .= CONTENT; $html .= '
'; if (fusion_get_settings('rendertime_enabled')) { $html .= showrendertime().showMemoryUsage().'
'; } $html .= 'Material Admin Theme © '.date('Y').' '.$locale['material_013'].' RobiNN | '.showcopyright('', TRUE); $html .= '
'; $errors = showFooterErrors(); if ($errors) { $html .= '
'.$errors.'
'; } $html .= '
'; if (!$this->IsMobile()) { $html .= $this->MessagesBox(); $html .= $this->ThemeSettings(); } $html .= '
'; $html .= '
'; echo $html; } private function TopMenu() { $locale = fusion_get_locale(); $aidlink = fusion_get_aidlink(); $settings = fusion_get_settings(); $userdata = fusion_get_userdata(); $html = ''; return $html; } private function Sidebar() { $locale = fusion_get_locale('', MDT_LOCALE); $html = ''; add_to_jquery('search_ajax("'.ADMIN.'includes/acp_search.php'.fusion_get_aidlink().'");'); return $html; } public function ThemeSettings() { $locale = fusion_get_locale('', MDT_LOCALE); $html = ''; return $html; } public function MessagesBox() { $locale = fusion_get_locale('', MDT_LOCALE); $html = ''; return $html; } public function Messages() { $userdata = fusion_get_userdata(); $result = dbquery(" SELECT message_id, message_subject, message_from user_id, u.user_name, u.user_status, u.user_avatar, message_datestamp FROM ".DB_MESSAGES." INNER JOIN ".DB_USERS." u ON u.user_id=message_from WHERE message_to='".$userdata['user_id']."' AND message_user='".$userdata['user_id']."' AND message_read='0' AND message_folder='0' GROUP BY message_id "); if (dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_user='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'")) { if (dbrows($result) > 0) { while ($data = dbarray($result)) { $this->messages[] = [ 'link' => $data['message_id'], 'title' => $data['message_subject'], 'user' => [ 'user_id' => $data['user_id'], 'user_name' => $data['user_name'], 'user_status' => $data['user_status'], 'user_avatar' => $data['user_avatar'] ], 'datestamp' => timer($data['message_datestamp']) ]; } } } return $this->messages; } public function GetMessages() { return $this->messages; } public function IsMobile() { return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER['HTTP_USER_AGENT']); } }