Exemplo n.º 1
0
        require_once R_P . 'require/hitupdate.php';
        procUnLock('hitupdate');
    }
}
if ($higholnum < $usertotal) {
    $db->update("UPDATE pw_bbsinfo SET " . pwSqlSingle(array('higholnum' => $usertotal, 'higholtime' => $timestamp)) . " WHERE id=1");
    $higholnum = $usertotal;
}
if ($hposts < $tposts) {
    $db->update('UPDATE pw_bbsinfo SET hposts=' . pwEscape($tposts) . ' WHERE id=1');
    $hposts = $tposts;
}
$mostinbbstime = get_date($higholtime);
if ($db_onlinelmt != 0 && $usertotal >= $db_onlinelmt && !$ol_offset) {
    Cookie('ol_offset', '', 0);
    Showmsg('most_online');
}
if ($plantime && $timestamp > $plantime && procLock('task')) {
    require_once R_P . 'require/task.php';
    procUnLock('task');
}
$db_newinfoifopen && (require_once R_P . "require/newinfo.php");
require_once PrintEot('index');
if (isset($area_refresh_static) && $area_refresh_static && function_exists("area_static_deal")) {
    $area_static_content = ob_get_contents();
    area_static_deal("saveStaticContent", array('content' => $area_static_content));
    ob_clean();
    echo $area_static_header, $area_static_content;
    unset($area_static_header, $area_static_content);
}
footer();
Exemplo n.º 2
0
<?php

!defined('M_P') && exit('Forbidden');
InitGP(array('cateid'), 'GP', 2);
$cateid > 0 && ObHeader("cate.php?cateid={$cateid}");
include_once D_P . 'data/bbscache/area_config.php';
$area_need_dynamic = area_static_deal('isNeedDynamic');
$area_refresh_static = false;
if (!$area_need_dynamic) {
    $area_index_content = area_static_deal('getStaticContent');
}
require_once M_P . 'require/header.php';
if (!$area_need_dynamic) {
    echo $area_index_content;
    footer();
    exit;
}
$first_notice = array_slice($notice_A, 0, 7);
function area_static_deal($op, $params = array())
{
    global $area_static_ifon, $area_static_next, $area_static_step;
    global $timestamp, $db_htmdir, $area_need_dynamic, $area_refresh_static;
    $area_data_file = R_P . $db_htmdir . '/area_index.htm';
    if ($op == "isNeedDynamic") {
        $area_need_dynamic = isset($_GET['getdynamic']) && $_GET['getdynamic'];
        if (!$area_static_ifon) {
            $area_need_dynamic = true;
        }
        return $area_need_dynamic;
    } elseif ($op == "getStaticContent") {
        if ($area_need_dynamic) {