Beispiel #1
0
$db_debug && error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
$timestamp = time();
$db_cvtime != 0 && ($timestamp += $db_cvtime * 60);
$wind_in = $SCR = SCR;
$onlineip = pwGetIp();
if ($db_forcecharset && !defined('W_P') && !defined('AJAX')) {
    @header("Content-Type:text/html; charset={$db_charset}");
}
if ($db_loadavg && !defined('W_P') && pwLoadAvg($db_loadavg)) {
    $db_cc = 2;
}
if ($db_cc && !defined('COL')) {
    pwDefendCc($db_cc);
}
if ($db_htmifopen) {
    $_NGET = parseRewriteQueryString($pwServer['QUERY_STRING']);
    !empty($_NGET) && ($_GET = $_NGET);
}
foreach ($_POST as $_key => $_value) {
    if (!in_array($_key, array('atc_content', 'atc_title', 'quote_content', 'prosign', 'pwuser', 'pwpwd'))) {
        S::checkVar($_POST[$_key]);
    }
}
foreach ($_GET as $_key => $_value) {
    S::checkVar($_GET[$_key]);
}
list($wind_version, $wind_repair, $wind_from) = explode(',', WIND_VERSION);
$db_olsize = 96;
if (false !== ($dirstrpos = strpos($pwServer['SCRIPT_NAME'], $db_dir))) {
    $tmp = substr($pwServer['SCRIPT_NAME'], 0, $dirstrpos);
    $pwServer['PHP_SELF'] = "{$tmp}.php";
Beispiel #2
0
include_once S_ROOT . './source/function_user.php';
include_once S_ROOT . './models/mysqlDBA.php';
//时间
$mtime = explode(' ', microtime());
$_SGLOBAL['timestamp'] = $mtime[1];
$_SGLOBAL['supe_starttime'] = $_SGLOBAL['timestamp'] + $mtime[0];
if (defined('SHOW_PAGE_TIME')) {
    //页面速度测试
    $mtime = explode(' ', microtime());
    $sqlstarttime = number_format($mtime[1] + $mtime[0] - $_SGLOBAL['supe_starttime'], 6) * 1000;
}
//初始化
$_SGLOBAL['query_string'] = $_SERVER['QUERY_STRING'];
$_SGLOBAL['inajax'] = empty($_GET['inajax']) ? 0 : intval($_GET['inajax']);
$_SGLOBAL['mobile'] = empty($_GET['mobile']) ? 0 : trim($_GET['mobile']);
$_SGLOBAL['refer'] = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
require_once S_ROOT . "./config/global.conf.php";
//全局数组
if (file_exists(S_ROOT . "./config/app/" . APP . ".conf.php")) {
    require_once S_ROOT . "./config/app/" . APP . ".conf.php";
    //APP全局数组
}
if (REWRITE_URL) {
    $_NGET = parseRewriteQueryString($_SGLOBAL['query_string']);
    !empty($_NGET['controller']) && ($_GET = $_NGET);
    $_SGLOBAL['query_string'] = _queryString($_SGLOBAL['query_string']);
}
dbconnect(APP);
//连接数据库
loadController($arrController, APP);
$_SGLOBAL['memory'] = memory_get_usage();
Beispiel #3
0
//!$isAuthStatus && $N_allowtypeopen = false;
//快速回复
if ($isAuthStatus && (!$tpc_locked || $SYSTEM['replylock']) && ($admincheck || $pwforum->allowreply($winddb, $groupid))) {
    $psot_sta = 'reply';
    //control the faster reply
    $titletop1 = substrs('Re:' . str_replace(' ', ' ', $subject), $db_titlemax - 3);
    $fastpost = 'fastpost';
    $db_forcetype = 0;
    if (!$admincheck && !$foruminfo['allowrp'] && !$_G['allowrp']) {
        $groupid == 'guest' ? $anonymity = true : ($fastpost = '');
    }
}
//referer
if ($db_htmifopen) {
    $requestURI = substr($pwServer['HTTP_REFERER'], strlen($db_bbsurl) + 1);
    $refererParams = parseRewriteQueryString($requestURI);
} else {
    $refererPU = parse_url($pwServer['HTTP_REFERER']);
    parse_str($refererPU['query'], $refererParams);
}
require_once PrintEot('read');
//if (strrpos($pwServer['HTTP_REFERER'],'post.php') === false) {
CloudWind::yunSetCookie(SCR, $tid, $fid);
//}
footer();
function viewread($read, $start_limit)
{
    global $db, $_G, $isGM, $pwSystem, $groupid, $attach_url, $winduid, $tablecolor, $tpc_author, $tpc_buy, $tpc_pid, $tpc_tag, $count, $orderby, $pageinverse, $timestamp, $db_onlinetime, $attachdir, $attachpath, $readcolorone, $readcolortwo, $lpic, $ltitle, $imgpath, $db_ipfrom, $db_showonline, $stylepath, $db_windpost, $db_windpic, $db_signwindcode, $fid, $tid, $pid, $_MEDALDB, $rewardtype, $db_shield, $db_iftag, $db_md_ifopen;
    global $ping_logs, $buyAids, $creditdb, $admincheck;
    if ($read['istop'] == 'topped') {
        $read['lou'] = $read['floor'];