function BaseFooter($showbottom = true) { global $_USER, $_CONF, $LANG_GF02, $forum, $CONF_FORUM; $retval = ''; if (!$CONF_FORUM['registration_required'] or !COM_isAnonUser()) { $footer = COM_newTemplate($CONF_FORUM['path_layout'] . 'forum/layout'); $footer->set_file(array('footerblock' => 'footer/footer.thtml', 'header' => 'forum_outline_header.thtml', 'footer' => 'forum_outline_footer.thtml')); $footer->set_var('imgset', $CONF_FORUM['imgset']); $footer->parse('outline_header', 'header', true); $footer->parse('outline_footer', 'footer', true); if ($forum == '') { // $footer->set_var ('forum_time', f_forumtime() ); if ($showbottom == "true") { $footer->set_var('forum_legend', f_legend()); $footer->set_var('forum_whosonline', f_whosonline()); } } else { // $footer->set_var ('forum_time', f_forumtime() ); if ($showbottom == "true") { $footer->set_var('forum_legend', f_legend()); $footer->set_var('forum_rules', f_forumrules()); } } $footer->set_var('search_forum', f_forumsearch()); $footer->set_var('select_forum', f_forumjump()); $footer->parse('output', 'footerblock'); $retval .= $footer->finish($footer->get_var('output')); } return $retval; }
/* Check to see if user has checked multiple records to delete */ if ($op == 'delchecked') { foreach ($_POST['chkrecid'] as $id) { $id = COM_applyFilter($id); if (DB_getItem($_TABLES['gf_watch'], 'uid', "id='{$id}'") == $_USER['uid']) { DB_query("DELETE FROM {$_TABLES['gf_watch']} WHERE ID='{$id}'"); } } } $report = new Template($_CONF['path_layout'] . 'forum/layout'); $report->set_file(array('report' => 'reports/notifications.thtml', 'records' => 'reports/notifications_line.thtml', 'outline_header' => 'forum_outline_header.thtml', 'outline_footer' => 'forum_outline_footer.thtml')); $report->set_var('imgset', $CONF_FORUM['imgset']); $report->set_var('layout_url', $_CONF['layout_url']); $report->set_var('site_url', $_CONF['site_url']); $report->set_var('LANG_TITLE', $LANG_GF02['msg89']); $report->set_var('select_forum', f_forumjump($_CONF['site_url'] . '/forum/notify.php', $forum)); $filteroptions = ''; for ($i = 1; $i <= 3; $i++) { if ($notifytype == $i) { $filteroptions .= '<option value="' . $i . '" SELECTED>' . $LANG_GF08[$i] . '</option>'; } else { $filteroptions .= '<option value="' . $i . '">' . $LANG_GF08[$i] . '</option>'; } } $report->set_var('filter_options', $filteroptions); $report->set_var('LANG_Heading1', $LANG_GF01['ID']); $report->set_var('LANG_Heading2', $LANG_GF01['FORUM']); $report->set_var('LANG_Heading3', $LANG_GF01['SUBJECT']); $report->set_var('LANG_Heading4', $LANG_GF01['DATEADDED']); $report->set_var('LANG_Heading5', $LANG_GF01['STARTEDBY']); $report->set_var('LANG_Heading6', $LANG_GF01['VIEWS']);
function FF_BaseFooter($showbottom = true) { global $_USER, $_CONF, $LANG_GF02, $forum, $_FF_CONF; $retval = ''; if (!$_FF_CONF['registration_required'] || !COM_isAnonUser()) { $footer = new Template($_CONF['path'] . 'plugins/forum/templates/footer/'); $footer->set_file('footerblock', 'footer.thtml'); if ($forum == '') { $footer->set_var('forum_time', f_forumtime()); if ($showbottom == "true") { $footer->set_var('forum_legend', f_legend()); $footer->set_var('forum_whosonline', f_whosonline()); } } else { $footer->set_var('forum_time', f_forumtime()); if ($showbottom == "true") { $footer->set_var('forum_legend', f_legend()); $footer->set_var('forum_rules', f_forumrules()); } } $footer->set_var('search_forum', f_forumsearch()); $footer->set_var('select_forum', f_forumjump()); $footer->parse('output', 'footerblock'); $retval .= $footer->finish($footer->get_var('output')); } return $retval; }