Example #1
0
<?php

!defined('R_P') && exit('Forbidden');
$USCR = 'space_info';
$isGM = S::inArray($windid, $manager);
!$isGM && $groupid == 3 && ($isGM = 1);
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($uid);
if (!($space =& $newSpace->getInfo())) {
    Showmsg('用户不存在!');
}
$indexRight = $newSpace->viewRight('index');
$indexValue = $newSpace->getPrivacyByKey('index');
$infoRight = $indexRight == true ? $newSpace->viewRight('info') : false;
$infoValue = $indexValue != 2 ? $newSpace->getPrivacyByKey('info') : '2';
//* include_once pwCache::getPath(D_P . 'data/bbscache/level.php');
pwCache::getData(D_P . 'data/bbscache/level.php');
$newSpace->getDetailInfo();
$newSpace->initSet();
$isSpace = true;
$customerService = L::loadClass('CustomerFieldService', 'user');
$customerValues = $customerService->getCustomerValues($uid);
require_once uTemplate::printEot('user_info');
pwOutPut();
function getOptions($options)
{
    if (!$options) {
        return array();
    }
    $array = array();
    $options = explode("\n", $options);
Example #2
0
}
/*
require_once(R_P . 'u/lib/space.class.php');
$newSpace = new PwSpace($uid ? $uid : $winduid);
$space =& $newSpace->getInfo();
empty($space) && Showmsg('user_not_exists');
*/
L::loadClass('photo', 'colony', false);
$photoService = new PW_Photo($uid, $ifriend, $page, $perpage);
$isGM = $photoService->isPermission();
$isown = $photoService->isSelf();
if ($isSpace) {
    $USCR = 'space_photos';
    //	S::gp('uid');
    $newSpace = new PwSpace($uid ? $uid : $winduid);
    $photoRight = $newSpace->viewRight('photos');
    require_once S::escapePath($appEntryBasePath . 'action/view.php');
} else {
    !$winduid && Showmsg('not_login');
    if ($isown) {
        $a_key = $a == 'friend' ? 'index' : 'own';
        $a_key = $ifriend ? 'index' : $a_key;
        require_once S::escapePath($appEntryBasePath . 'action/my.php');
    } else {
        Showmsg('undefined_action');
    }
}
function createfail($checkpwd, $showinfo = '', $type = 'fail')
{
    if ($checkpwd) {
        $showinfo = 'fail' == $type && '' != $showinfo ? getLangInfo('msg', $showinfo) : $showinfo;
Example #3
0
    //* perf::gatherInfo('changeCmemberAndColonyWithUserIds', array('uid'=>$uid));
}
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($uid);
if (!($space =& $newSpace->getInfo())) {
    Showmsg('您访问的空间不存在!');
}
$inv_config = L::config(null, 'inv_config');
if (GetCookie('userads') && $inv_linkopen && $inv_linktype == '0') {
    list($uid, $a) = explode("\t", GetCookie('userads'));
    if (is_numeric($uid) || $a && strlen($a) < 16) {
        require_once R_P . 'require/userads.php';
    }
}
$newSpace->initSet();
$indexRight = $newSpace->viewRight('index');
$indexValue = $newSpace->getPrivacyByKey('index');
if ($indexRight) {
    $data = $newSpace->layout();
    //var_dump($data);
} else {
    $data = array(0 => $newSpace->getSpaceData(array('info' => 1)));
}
$siteName = getSiteName('o');
$uSeo = USeo::getInstance();
$uSeo->set($space['name'] . ' - ' . $siteName, $space['name'], $space['name'] . ',' . $siteName);
if ($winduid && !$space['isMe']) {
    //邀请处理
    if (GetCookie('o_invite') && $db_modes['o']['ifopen'] == 1) {
        list($o_u, $hash, $app) = explode("\t", GetCookie('o_invite'));
        if (is_numeric($o_u) && strlen($hash) == 18) {
Example #4
0
<?php

!defined('R_P') && exit('Forbidden');
$USCR = 'space_board';
$isGM = S::inArray($windid, $manager);
!$isGM && $groupid == 3 && ($isGM = 1);
S::gp(array('uid', 'page'), '', 2);
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($uid ? $uid : $winduid);
$space =& $newSpace->getInfo();
empty($space) && Showmsg('您访问的空间不存在!');
if (!$newSpace->viewRight('index')) {
    Showmsg('该空间设置隐私,您没有权限查看!');
}
if (!$newSpace->viewRight('messageboard')) {
    Showmsg('该空间留言板设置隐私,您没有权限查看!');
}
//需要重构
$uid = isset($uid) ? $uid : $winduid;
$basename = 'u.php?a=board&uid=' . $uid . '&';
//$spaceurl = $basename."u=$u&";
require_once R_P . 'require/showimg.php';
if ($uid != $winduid) {
    $username = $userdb['username'];
} else {
    $username = $windid;
}
$db_perpage = 10;
$count = $db->get_value("SELECT COUNT(*) AS count FROM pw_oboard WHERE touid=" . S::sqlEscape($uid));
list($pages, $limit) = pwLimitPages($count, $page, $basename);
$boards = array();