예제 #1
0
    COM_rdfUpToDateCheck();
    COM_olderStuff();
    return;
}
$display = FF_siteHeader();
// Check if the number of records was specified to show
$page = isset($_GET['page']) ? COM_applyFilter($_GET['page'], true) : 0;
$show = isset($_GET['show']) ? COM_applyFilter($_GET['show'], true) : 0;
if (empty($show)) {
    $show = 20;
}
// Check if this is the first page.
if (empty($page) || $page < 1) {
    $page = 1;
}
$display .= FF_Navbar($navbarMenu, $LANG_GF06['5']);
$display .= COM_startBlock($LANG_GF02['msg193']);
$p = new Template($_CONF['path'] . 'plugins/forum/templates/admin/');
$p->set_file(array('page' => 'migratestories.thtml', 'records' => 'migrate_records.thtml'));
if (!empty($_GET['num_stories'])) {
    $p->set_var('status_message', sprintf($LANG_GF02['msg192'], $_GET['num_stories'], $_GET['num_posts']));
} else {
    $p->set_var('show_message', 'none');
}
if (!empty($_REQUEST['seltopic']) and $_REQUEST['seltopic'] != 'all') {
    $curtopic = $_REQUEST['seltopic'];
    if ($_REQUEST['seltopic'] == "submissions") {
        $sql = "select tid,sid,title,date, 0 as comments from {$_TABLES['storysubmission']}";
        $countsql = DB_query("SELECT COUNT(*) FROM {$_TABLES['storysubmission']}");
    } else {
        $sql = "select tid,sid,title,date,comments from {$_TABLES['stories']} where tid='" . DB_escapeString($curtopic) . "'";
예제 #2
0
$report->set_var('LANG_deleteall', $LANG_GF01['DELETEALL']);
$report->set_var('LANG_DELCONFIRM', $LANG_GF01['DELCONFIRM']);
$report->set_var('LANG_DELALLCONFIRM', $LANG_GF01['DELALLCONFIRM']);
$report->set_var('LANG_select1', $LANG_GF02['msg106']);
$report->set_var('LANG_select2', $LANG_GF02['msg176']);
$report->set_var('LANG_Parent', $LANG_GF02['msg178']);
$report->set_var('LANG_Author', $LANG_GF01['AUTHOR']);
$report->set_var('LANG_Subject', $LANG_GF01['SUBJECT']);
$report->set_var('LANG_Views', $LANG_GF01['VIEWS']);
$report->set_var('LANG_Replies', $LANG_GF01['REPLIES']);
$report->set_var('LANG_Actions', $LANG_GF01['ACTIONS']);
$report->set_var('LANG_Moderate', $LANG_GF95['moderate']);
$report->set_var('LANG_Delete', $LANG_GF01['DELETE']);
$report->set_var('select_forum', selectHTML_forum($forum));
$report->set_var('select_member', selectHTML_members($member));
$report->set_var('navbar', FF_Navbar($navbarMenu, $LANG_GF06['6']));
if ($parentonly == 1) {
    $report->set_var('chk_parentonly', 'checked="checked"');
}
if ($num_messages == 0) {
    $report->set_var('startblock', COM_startBlock($LANG_GF95['header1']));
    $report->set_var('showalert', '');
    $report->set_var('alertmessage', $LANG_GF95['nomess']);
    $report->set_var('endblock', COM_endBlock());
} else {
    if ($forumname == '') {
        $report->set_var('startblock', COM_startBlock($LANG_GF95['header1']));
    } else {
        $report->set_var('startblock', COM_startBlock(sprintf($LANG_GF95['header2'], $forumname)));
    }
    $report->set_var('showalert', 'none');