Example #1
0
        include_once R_P . 'simple/mod_thread.php';
        break;
    case 't':
        $tid =& $id;
        include_once R_P . 'simple/mod_read.php';
        break;
    default:
        include_once R_P . 'simple/mod_index.php';
}
Update_ol();
if ($db) {
    $qn = $db->query_num;
}
$db_obstart ? $ft_gzip = "Gzip enabled" : ($ft_gzip = "Gzip disabled");
if ($db_footertime == 1) {
    $totaltime = number_format(pwMicrotime() - $P_S_T, 6);
    $wind_spend = "Time {$totaltime} second(s),query:{$qn}";
}
include PrintEot('simple_footer');
pwOutPut();
/*
$ceversion = defined('CE') ? 1 : 0;
$output = str_replace(array('<!--<!---->', "<!---->\r\n", '<!---->'), '', ob_get_contents());
if ($db_htmifopen) {
	$output = preg_replace("/\<a(\s*[^\>]+\s*)href\=([\"|\']?)((index|cate|thread|read|faq|rss)\.php\?[^\"\'>\s]+\s?)[\"|\']?/ies", "Htm_cv('\\3','<a\\1href=\"')", $output);
}
$output .= "<script type=\"text/javascript\" src=\"http://init.phpwind.net/init.php?sitehash=$db_sitehash&v=$wind_version&c=$ceversion\"></script>";
ob_end_clean();
ObStart();
echo $output;
flush();
Example #2
0
function guestfooter()
{
    global $db_footertime, $db_obstart, $db_union, $P_S_T, $timestamp, $db;
    Update_ol();
    $wind_spend = '';
    if ($db_footertime == 1) {
        $totaltime = number_format(pwMicrotime() - $P_S_T, 6);
        $qn = $db ? $db->query_num : 0;
        $wind_spend = "Total {$totaltime}(s) query {$qn},";
    }
    $ft_time = get_date($timestamp, 'm-d H:i');
    $ft_gzip = ($db_obstart ? 'Gzip enabled' : 'Gzip disabled') . $db_union[3];
    $output = preg_replace("/<span id=\"windspend\"\\>(.+?)<\\/span>/is", "<span id=\"windspend\">{$wind_spend} Time now is:{$ft_time}, {$ft_gzip}</span>", ob_get_contents());
    echo ObContents($output);
    unset($output);
    N_flush();
    exit;
}
Example #3
0
/**
 * 输出页脚,并处理输出缓存中的内容
 */
function footer()
{
    global $db, $db_obstart, $db_footertime, $P_S_T, $mtablewidth, $db_ceoconnect, $wind_version, $imgpath, $stylepath, $footer_ad, $db_union, $timestamp, $db_icp, $db_icpurl, $db_advertdb, $groupid, $db_ystats_ifopen, $db_ystats_unit_id, $db_ystats_style, $pwServer, $db_ifcredit, $credit_pop, $db_foot, $db_mode, $db_modes, $shortcutforum, $_G, $winddb, $db_toolbar, $winduid, $db_menuinit, $db_appifopen, $db_job_ispop, $db_job_isopen, $db_siteappkey, $_Navbar, $db_statscode;
    defined('AJAX') && ajax_footer();
    $wind_spend = '';
    //$db_statscode = html_entity_decode($db_statscode);
    $ft_gzip = ($db_obstart ? 'Gzip enabled' : 'Gzip disabled') . $db_union[3];
    if ($db_footertime == 1) {
        $totaltime = number_format(pwMicrotime() - $P_S_T, 6);
        $qn = $db ? $db->query_num : 0;
        $wind_spend = "Total {$totaltime}(s) query {$qn},";
        //*Dev Code Start*//
        if ($GLOBALS['db_debug']) {
            include_once R_P . 'lang_change.php';
            $wind_spend .= "SQLtime:" . number_format($db->totaltime, 6);
            $wind_spend .= !function_exists('memory_get_usage') ? '' : ',Memory Usage:' . round(memory_get_usage() / 1024 / 1024, 4) . 'MB,';
            $_GET['debug'] && pwCache::writeover(D_P . "data/wind_spend.txt", SCR . ":\t" . $wind_spend . "\r\n", 'ab');
            $masterDb = $db->getMastdb();
            if ($masterDb->arr_query) {
                writeover(D_P . "data/sqllist.txt", $masterDb->arr_query, 'wb');
            }
        }
        //*Dev Code End*//
    }
    $ft_time = get_date($timestamp, 'm-d H:i');
    $db_icp && ($db_icp = "<a href=\"http://www.miibeian.gov.cn\" target=\"_blank\">{$db_icp}</a>");
    if ($db_toolbar) {
        if ($_COOKIE['toolbarhide']) {
            $toolbarstyle = 'style="display:none"';
            $openbarstyle = '';
            $closebarstyle = 'style="display:none"';
        } else {
            $toolbarstyle = '';
            $openbarstyle = 'style="display:none"';
            $closebarstyle = '';
            if ($db_appifopen) {
                $appshortcut = trim($winddb['appshortcut'], ',');
                if (!empty($appshortcut) && $db_siteappkey) {
                    $appshortcut = explode(',', $appshortcut);
                    $bottom_appshortcut = array();
                    $appclient = L::loadClass('appclient');
                    $bottom_appshortcut = $appclient->userApplist($winduid, $appshortcut, 1);
                }
            }
        }
    }
    $db_menuinit = trim($db_menuinit, ',');
    runJob();
    require PrintEot('footer');
    if ($db_advertdb['Site.PopupNotice'] || $db_advertdb['Site.FloatLeft'] || $db_advertdb['Site.FloatRight'] || $db_advertdb['Site.FloatRand']) {
        require PrintEot('advert');
    }
    pwOutPut();
}