Ejemplo n.º 1
0
error_reporting(E_ALL ^ E_NOTICE);
define('ROOT_PATH', dirname(__FILE__) . '/', true);
//不区别大小写
define('OK', true);
// Turn off magic_quotes_runtime
set_magic_quotes_runtime(0);
function pagetime($type = '')
{
    static $orig_time;
    if ($type == "init") {
        $orig_time = microtime(true);
    } else {
        return printf("%1.5f", microtime(true) - $orig_time);
    }
}
pagetime("init");
include ROOT_PATH . 'include/config.inc.php';
include ROOT_PATH . 'include/mysql.class.php';
include ROOT_PATH . 'include/global.func.php';
include ROOT_PATH . 'include/template.class.php';
include ROOT_PATH . 'include/chinese.class.php';
$db = new mysql($dbcfg['host'], $dbcfg['user'], $dbcfg['pass'], $dbcfg['name'], 'utf8');
unset($dbcfg);
unset($_ENV, $HTTP_ENV_VARS, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS, $HTTP_POST_FILES, $HTTP_COOKIE_VARS);
if (getenv('HTTP_CLIENT_IP')) {
    $onlineip = getenv('HTTP_CLIENT_IP');
} else {
    $onlineip = $_SERVER['REMOTE_ADDR'];
}
$onlineurl = 'http://' . $_SERVER['HTTP_HOST'] . addslashes($_SERVER["REQUEST_URI"]);
if ($config['gzip'] && extension_loaded('zlib') && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false)) {
Ejemplo n.º 2
0
    }
    ?>
	<script type="text/javascript" src="jscript/pixie.js.php?<?php 
    if (isset($s)) {
        print "s={$s}";
    }
    if (isset($x)) {
        print "&amp;x={$x}";
    }
    if (isset($lang['ck_toggle_advanced'])) {
        print "&amp;advmode={$lang['ck_toggle_advanced']}";
    }
    ?>
"></script>
	<!-- bad behavior -->
	<?php 
    bb2_insert_head();
    ?>
	<!-- If javascript is disabled show more of the carousel and display the ckeditor textareas -->
	<noscript><style type="text/css">.jcarousel-skin-tango{max-height:100%;}.ck-textarea{display:block;}#mycarousel {position:relative;overflow:hidden;padding:20px 0 27px 0; list-style: none; background-image:url("admin/theme/images/formbacklarge.gif");background-repeat:repeat-x;background-position:0 110px;width: 100%;}#mycarousel li { float: left; width:83px;height:129px; margin-right: 10px;}#mycarousel li:nth-child(1) { margin-left: 10px;}</style></noscript>
</body>
</html>
	<!-- page generated in: <?php 
    pagetime('print');
    ?>
 -->
	<?php 
    if ($gzip_admin == 'yes') {
        @ob_end_flush();
    }
}