/** Return a select option list of available territories (prefixes within the given region) */ public function generate_prefixselect($forumid = 0) { if (!$forumid) { $regionquery = $this->db->query('SELECT f.fid, f.name from ' . TABLE_PREFIX . 'forums f WHERE f.active = 1 AND f.open = 1 AND f.icforum = 1 and not exists(SELECT 1 FROM ' . TABLE_PREFIX . 'icgroups i WHERE f.fid = i.fid) LIMIT 1'); $result = $this->db->fetch_array($regionquery); $forumid = $result['fid']; } /** MYBB Function for prefix selection **/ return build_forum_prefix_select($forumid); }
} } $inline_edit_js = $clearstoredpass = ''; // Is this a real forum with threads? if ($foruminfo['type'] != "c") { if (!$threadcount) { eval("\$threads = \"" . $templates->get("forumdisplay_nothreads") . "\";"); } $clearstoredpass = ''; if ($foruminfo['password'] != '') { eval("\$clearstoredpass = \"" . $templates->get("forumdisplay_threadlist_clearpass") . "\";"); } $post_code_string = ''; if ($mybb->user['uid']) { $post_code_string = "&my_post_key=" . $mybb->post_code; } $prefixselect = build_forum_prefix_select($fid, $tprefix); $lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name']))); eval("\$rssdiscovery = \"" . $templates->get("forumdisplay_rssdiscovery") . "\";"); eval("\$threadslist = \"" . $templates->get("forumdisplay_threadlist") . "\";"); } else { $rssdiscovery = ''; $threadslist = ''; if (empty($forums)) { error($lang->error_containsnoforums); } } $plugins->run_hooks("forumdisplay_end"); $foruminfo['name'] = strip_tags($foruminfo['name']); eval("\$forums = \"" . $templates->get("forumdisplay") . "\";"); output_page($forums);