$p->set_var('LANG_deleteafter', $LANG_GF01['DELETEAFTER']); $p->set_var('LANG_all', $LANG_GF01['ALL']); $p->set_var('LANG_topic', $LANG_GF01['TOPIC']); $p->set_var('LANG_title', $LANG_GF01['TITLE']); $p->set_var('LANG_date', $LANG_GF01['DATE']); $p->set_var('LANG_comments', $LANG_GF01['COMMENTS']); if ($numrows > 0) { $base_url = $_CONF['site_admin_url'] . '/plugins/forum/migrate.php?seltopic=' . $curtopic; for ($i = 0; $i < $numrows; $i++) { list($topic, $sid, $story, $date, $comments) = DB_fetchArray($result); $p->set_var('sid', $sid); $p->set_var('topic', $topic); if (isset($_POST['seltopic']) && $_POST['seltopic'] == "submissions") { $p->set_var('story_link', $_CONF['site_admin_url'] . '/story.php?moderate=x&sid=' . $sid); } else { $p->set_var('story_link', $_CONF['site_url'] . '/article.php?story=' . $sid); } $p->set_var('story_title', $story); $p->set_var('date', $date); $p->set_var('num_comments', $comments); $p->set_var('cssid', $i % 2 + 1); $p->parse('story_record', 'records', true); } $p->set_var('page_navigation', COM_printPageNavigation($base_url, $page, $numpages)); } $p->parse('output', 'page'); $display .= $p->finish($p->get_var('output')); $display .= COM_endBlock(); $display .= FF_adminfooter(); $display .= FF_siteFooter(); echo $display;
function _ff_accessError() { global $LANG_GF01, $LANG_GF02; $display = FF_siteHeader(); $display .= '<br/>'; $display .= FF_BlockMessage($LANG_GF01['ACCESSERROR'], $LANG_GF02['msg03'], false); $display .= FF_siteFooter(); echo $display; exit; }
function FF_BlockMessage($title, $message = '', $sitefooter = true) { $retval = ''; $retval .= COM_startBlock($title); $retval .= $message; $retval .= COM_endBlock(); if ($sitefooter) { $retval .= FF_siteFooter(); } return $retval; }
function moderator_error($type) { global $forum_id, $_CONF, $LANG_GF02, $LANG_GF01; $display = ''; if ($type == ACCESS_DENIED) { echo COM_refresh($_CONF['site_url'] . '/forum/index.php'); exit; } $display = FF_siteHeader(); $display .= FF_ForumHeader($forum_id, ''); $display .= alertMessage($LANG_GF02['msg166'], $LANG_GF01['WARNING'], '', true); $display .= FF_siteFooter(); echo $display; exit; }