Exemple #1
0
        // {
        // require_once(e_PLUGIN."newforumposts_main/newforumposts_main.php");
        // }
    }
    //news archive
    if ($action != "item" && $action != 'list' && $pref['newsposts_archive']) {
        if ($sql->db_Select_gen($query)) {
            $newsAr = $sql->db_getList();
            if ($newsarchive = checkCache('newsarchive')) {
                $newsCachedPage = $newsCachedPage . $newsarchive;
            } else {
                show_newsarchive($newsAr, $interval);
            }
        }
    }
    renderCache($newsCachedPage, TRUE);
}
if (!($news_total = $sql->db_Select_gen($query))) {
    // No news items
    require_once HEADERF;
    echo "<br /><br /><div style='text-align:center'><b>" . (strstr(e_QUERY, "month") ? LAN_NEWS_462 : LAN_NEWS_83) . "</b></div><br /><br />";
    require_once FOOTERF;
    exit;
}
$newsAr = $sql->db_getList();
$news_total = $sql->total_results;
// Get number of entries
//$sql -> db_Select_gen("SELECT FOUND_ROWS()");
$frows = $sql->db_Fetch();
//$news_total = $frows[0];
//echo "<br />Total ".$news_total." items found, ".count($newsAr)." displayed, Interval = {$interval}<br /><br />";
Exemple #2
0
    }
    // #### END ---------------------------------------------------------------------------------------------------
}
if ($tmp_cache = checkCache($cacheString)) {
    require_once HEADERF;
    if (!$action) {
        render_wmessage();
        if (isset($pref['fb_active'])) {
            // --->feature box
            require_once e_PLUGIN . "featurebox/featurebox.php";
        }
        if (isset($pref['nfp_display']) && $pref['nfp_display'] == 1) {
            require_once e_PLUGIN . "newforumposts_main/newforumposts_main.php";
        }
    }
    renderCache($tmp_cache, TRUE);
}
if (!$sql->db_Select_gen($query)) {
    require_once HEADERF;
    echo "<br /><br /><div style='text-align:center'><b>" . (strstr(e_QUERY, "month") ? LAN_462 : LAN_83) . "</b></div><br /><br />";
    require_once FOOTERF;
    exit;
} else {
    $newsAr = $sql->db_getList();
}
$p_title = $action == "item" ? $newsAr[1]['news_title'] : $newsAr[1]['category_name'];
if ($action != "" && !is_numeric($action)) {
    define("e_PAGETITLE", $p_title);
}
require_once HEADERF;
if (!$action) {