function initVars()
 {
     $this->vars = L::config();
     $this->vars['imgpath'] = $GLOBALS['imgpath'];
     $this->vars['db_bbstitle'] = $this->vars['db_bbstitle']['other'];
     $this->vars['db_bbsname_a'] = addslashes($this->vars['db_bbsname']);
     //模版内用到
     $this->vars['wind_version'] = $GLOBALS['wind_version'];
     if (!is_array($this->vars['db_union'])) {
         $this->vars['db_union'] = explode("\t", stripslashes($this->vars['db_union']));
         $this->vars['db_union'][0] && ($this->vars['db_hackdb'] = array_merge((array) $this->vars['db_hackdb'], (array) unserialize($this->vars['db_union'][0])));
     }
     list($this->vars['_Navbar']) = pwNavBar();
 }
Exemple #2
0
<?php

!defined('M_P') && exit('Forbidden');
!defined('USED_HEAD') && define('USED_HEAD', 1);
define('F_M', true);
extract(L::style(null, 'wind'));
if (!defined('MSG')) {
    if (in_array($q, array('write', 'diary', 'share', 'article', 'photos', 'groups', 'group', 'galbum', 'friend', 'home', 'myapp', 'app', 'board', 'browse', 'invite', 'hot'))) {
        if ($space == 1) {
            $pwModeCss = $imgpath . '/apps/browse-style.css';
        } else {
            $pwModeCss = $imgpath . '/apps/app-style.css';
        }
    } elseif ($q == 'user') {
        $pwModeCss = $imgpath . '/apps/browse-style.css';
    } else {
        $pwModeCss = $imgpath . '/apps/index-style.css';
    }
} else {
    $pwModeCss = $imgpath . '/apps/app-style.css';
}
if ($q == 'home') {
    $baseUrl = 'mode.php?m=' . $m . '&';
}
$db_menuinit .= ",'td_userinfomore' : 'menu_userinfomore'";
$jobnum = $winddb['jobnum'] > 0 ? "(" . $winddb['jobnum'] . ")" : "";
list($_Navbar, $_LoginInfo) = pwNavBar();
$searchUrl = $basename . 'q=friend&type=find&';
require_once PrintEot('header');
unset($_Navbar, $pwModeCss);
Exemple #3
0
function Showmsg($msg_info, $dejump = 0)
{
    @extract($GLOBALS, EXTR_SKIP);
    global $stylepath, $tablewidth, $mtablewidth, $tplpath, $db;
    define('PWERROR', 1);
    $msg_info = getLangInfo('msg', $msg_info);
    if (defined('AJAX')) {
        echo $msg_info;
        ajax_footer();
    }
    $showlogin = false;
    if ($dejump != '1' && $groupid == 'guest' && $REQUEST_URI == str_replace(array('register', 'login'), '', $REQUEST_URI) && (!$db_pptifopen || $db_ppttype != 'client')) {
        if (strpos($REQUEST_URI, 'post.php') !== false || strpos($REQUEST_URI, 'job.php?action=vote') !== false || strpos($REQUEST_URI, 'job.php?action=pcjoin') !== false) {
            $tmpTid = (int) GetGP('tid', 'GP');
            $tmpTid && ($REQUEST_URI = substr($REQUEST_URI, 0, strrpos($REQUEST_URI, '/')) . "/read.php?tid={$tmpTid}&toread=1");
        }
        $jumpurl = "http://" . $pwServer['HTTP_HOST'] . $REQUEST_URI;
        list(, $qcheck) = explode("\t", $db_qcheck);
        $qkey = $qcheck && $db_question ? array_rand($db_question) : '';
        $showlogin = true;
    }
    extract(L::style());
    list($_Navbar, $_LoginInfo) = pwNavBar();
    ob_end_clean();
    ObStart();
    require_once PrintEot('showmsg');
    exit;
}
Exemple #4
0
    @closedir($img);
    //require_once(R_P.'require/header.php');
    $custominfo = unserialize($db_union[7]);
    $customfield = L::config('customfield', 'customfield');
    $customfieldService = L::loadClass('CustomerFieldService', 'user');
    require_once PrintEot('weibologin_register');
    footer();
} elseif ($action == 'weibologinbind') {
    $sessionId = GetCookie(PW_WEIBO_LOGIN_COOKIE_NAME);
    $sessionInfo = $weiboLoginService->getLoginSession($sessionId);
    if (!$sessionId || !$sessionInfo || !$sessionInfo['sessiondata']['sinaUser']) {
        refreshto('login.php', '登录会话超时,请重试', 3);
    }
    $weiboUser = $sessionInfo['sessiondata']['sinaUser'];
    //for compatible
    list(, $_LoginInfo) = pwNavBar();
    $type = $sessionInfo['sessiondata']['type'];
    $loginWay = $weiboLoginService->getLoginWay($type);
    if (!$loginWay) {
        Showmsg('登录类型错误,请重试');
    }
    $weiboSiteBindInfoService = L::loadClass('WeiboSiteBindInfoService', 'sns/weibotoplatform/service');
    /* @var $weiboSiteBindInfoService PW_WeiboSiteBindInfoService */
    $weiboAccount = $weiboSiteBindInfoService->getOfficalAccount($type);
    InitGP(array('step'));
    if (2 == $step) {
        $loginq = 0;
        //验证问题去除,自动通过
        $db_gdcheck = 0;
        //验证码去除,自动通过
        PostCheck(0, $db_gdcheck & 2, $loginq, 0);
Exemple #5
0
/**
 * 显示系统提示信息
 *
 * @param string $msg_info 信息内容
 * @param int $dejump ?
 */
function Showmsg($msg_info, $dejump = 0)
{
    @extract($GLOBALS, EXTR_SKIP);
    global $stylepath, $tablewidth, $mtablewidth, $tplpath, $db;
    define('PWERROR', 1);
    $msg_info = getLangInfo('msg', $msg_info);
    if (defined('AJAX')) {
        echo $msg_info;
        ajax_footer();
    }
    $showlogin = false;
    if ($dejump != '1' && $groupid == 'guest' && $REQUEST_URI == str_replace(array('register', 'login'), '', $REQUEST_URI) && (!$db_pptifopen || $db_ppttype != 'client')) {
        if (strpos($REQUEST_URI, 'post.php') !== false || strpos($REQUEST_URI, 'job.php?action=vote') !== false || strpos($REQUEST_URI, 'job.php?action=pcjoin') !== false) {
            $tmpTid = (int) S::getGP('tid', 'GP');
            $tmpTid && ($REQUEST_URI = substr($REQUEST_URI, 0, strrpos($REQUEST_URI, '/')) . "/read.php?tid={$tmpTid}&toread=1");
        }
        $jumpurl = "http://" . $pwServer['HTTP_HOST'] . $REQUEST_URI;
        //list(, $qcheck) = explode("\t", $db_qcheck);
        $qkey = $db_ckquestion & 2 && $db_question ? array_rand($db_question) : '';
        $showlogin = true;
    }
    extract(L::style());
    //css file for showmsg
    require L::style('', $skinco, true);
    if ("wind" != $tplpath && file_exists(D_P . 'data/style/' . $tplpath . '_css.htm')) {
        $css_path = D_P . 'data/style/' . $tplpath . '_css.htm';
    } else {
        $css_path = D_P . 'data/style/wind_css.htm';
    }
    //end css file
    list($_Navbar, $_LoginInfo) = pwNavBar();
    ob_end_clean();
    ObStart();
    /*
    	if (defined('AREA_PAGE') && function_exists('areaLoadFrontView')) {
    		require_once areaLoadFrontView('area_manage_showmsg');exit;
    	}*/
    require_once PrintEot('showmsg');
    exit;
}