Пример #1
0
list(, $messageNumber, $noticeNumber, $requestNumber, $groupsmsNumber) = $messageServer->countAllByUserId($winduid);
$updateUserMessageTip = $updateUserDataMessageTip = array();
$winddb['newpm'] != 0 && $messageNumber + $groupsmsNumber != $winddb['newpm'] && ($updateUserMessageTip['newpm'] = $winddb['newpm'] = $messageNumber + $groupsmsNumber);
$winddb['newnotice'] != 0 && $noticeNumber != $winddb['newnotice'] && ($updateUserDataMessageTip['newnotice'] = $winddb['newnotice'] = $noticeNumber);
$winddb['newrequest'] != 0 && $requestNumber != $winddb['newrequest'] && ($updateUserDataMessageTip['newrequest'] = $winddb['newrequest'] = $requestNumber);
$messageNumber = $messageNumber ? '(' . $messageNumber . ')' : '';
$noticeNumber = $noticeNumber ? '(' . $noticeNumber . ')' : '';
$requestNumber = $requestNumber ? '(' . $requestNumber . ')' : '';
$groupsmsNumber = $groupsmsNumber ? '(' . $groupsmsNumber . ')' : '';
$totalMessage = $max = 0;
if ($_G['maxmsg']) {
    $numbers = $messageServer->statisticUsersNumbers(array($winduid));
    $totalMessage = isset($numbers[$winduid]) ? $numbers[$winduid] : 0;
    $max = (int) $_G['maxmsg'];
    $percent = round($totalMessage / $max, 4) * 100 >= 100 ? '100' . '%' : round($totalMessage / $max, 4) * 100 . '%';
    $percentTip = ',最多可存消息' . $_G['maxmsg'] . '条,' . '空间使用率' . $percent;
}
/* load u header */
$newSpace = new PwSpace($winduid);
if (!($space =& $newSpace->getInfo())) {
    Showmsg('您访问的空间不存在!');
}
if (S::isArray($updateUserMessageTip) || S::isArray($updateUserDataMessageTip)) {
    $userService = L::loadClass('UserService', 'user');
    /* @var $userService PW_UserService */
    $userService->update($winduid, $updateUserMessageTip, $updateUserDataMessageTip);
}
//* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php');
pwCache::getData(D_P . 'data/bbscache/o_config.php');
require_once uTemplate::printEot('header');
require messageEot('leftmenu');
Пример #2
0
<?php

define('PRO', '1');
define('SCR', 'profile');
require_once 'global.php';
!$winduid && Showmsg('not_login');
S::gp(array('action'));
require_once R_P . 'require/showimg.php';
//list($faceurl) = showfacedesign($winddb['icon'],1,'s');
//导航
$homenavigation = array();
$navConfigService = L::loadClass('navconfig', 'site');
$homenavigation = $navConfigService->userHomeNavigation(PW_NAV_TYPE_MAIN, 'o');
empty($action) && ($action = 'modify');
$pro_tab = $action;
$USCR = 'set_profile';
$db_menuinit .= ",'td_userinfomore' : 'menu_userinfomore'";
if (file_exists(R_P . "u/require/profile/{$action}.php")) {
    require_once R_P . 'u/require/core.php';
    require_once R_P . 'u/lib/space.class.php';
    $newSpace = new PwSpace($winduid);
    $space =& $newSpace->getInfo();
    //* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php');
    pwCache::getData(D_P . 'data/bbscache/o_config.php');
    require_once S::escapePath(R_P . "u/require/profile/{$action}.php");
} else {
    Showmsg('undefined_action');
}
exit;
Пример #3
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);
Пример #4
0
<?php

!defined('R_P') && exit('Forbidden');
$USCR = 'space_set';
!$winduid && Showmsg('not_login');
$isGM = S::inArray($windid, $manager);
!$isGM && $groupid == 3 && ($isGM = 1);
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($winduid);
$newSpace->initSet();
$space = $newSpace->getInfo();
$isSpace = true;
$spaceModel = $newSpace->models;
$lang_model = array('friend' => array('朋友', '人', 'friend'), 'visitor' => array('最近访客', '人', 'visitor'), 'visit' => array('我访问过', '人', 'visit'), 'messageboard' => array('留言板', '条', 'messageboard'), 'diary' => array('日志', '篇', 'diary'), 'photos' => array('相册照片', '张', 'photos'), 'weibo' => array('新鲜事', '条', 'write'), 'article' => array('发表的帖子', '篇', 'article'), 'colony' => array('群组', '个', 'colony'), 'tags' => array('个人标签', '个', 'tags'), 'reply' => array('回复的帖子', '篇', 'article'));
if (empty($_POST['step'])) {
    S::gp(array('tab'));
    $modeSel = $tab ? $tab : substr($_COOKIE['spacemodeset'], 4);
    !in_array($modeSel, array('basic', 'skin', 'model')) && ($modeSel = 'basic');
    S::int($space['spacetype']) < 0 && ($space['spacetype'] = 3);
    !$space['spacestyle'] && ($space['spacestyle'] = 2);
    !$space['spacetype'] && ($space['spacetype'] = 0);
    $sel_basic = $sel_skin = $sel_model = $ifcheck_0 = $ifcheck_1 = $ifcheck_2 = $ifcheck_3 = $ifcheckstyle_2 = $ifcheckstyle_3 = '';
    $style_basic = $style_skin = $style_model = 'none';
    ${'sel_' . $modeSel} = ' class="current"';
    ${'style_' . $modeSel} = '';
    ${'ifcheck_' . $space['spacetype']} = ' checked';
    ${'spacethemes_' . $space['spacetype']} = 'class="current"';
    ${'ifcheckstyle_' . $space['spacestyle']} = ' checked';
    ${'spacestyle_' . $space['spacestyle']} = 'class="current"';
    $maxuploadsize = ini_get('upload_max_filesize');
    //$privacy = $newSpace->getPrivacy();
Пример #5
0
<?php

!defined('P_W') && exit('Forbidden');
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($winduid);
$space = $newSpace->getInfo();
pwDelatt($space['banner'], $db_ifftp);
$newSpace->updateInfo(array('banner' => ''));
echo 'ok';
ajax_footer();
Пример #6
0
!$isGM && $groupid == 3 && ($isGM = 1);
if ($username) {
    $uid = $db->get_value("SELECT uid FROM pw_members WHERE username="******"UID_$uid","UID_CREDIT_$uid","UID_GROUP_$uid"));
    //* perf::gatherInfo('changeMembersWithUserIds', array('uid'=>$uid));
    //* perf::gatherInfo('changeMemberCreditWithUserIds', array('uid'=>$uid));
    //* 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();
Пример #7
0
<?php

!defined('P_W') && exit('Forbidden');
S::gp(array('param'));
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($winduid);
$newSpace->initSet();
$space = $newSpace->getInfo();
$layout = array();
if ($param && is_array($param)) {
    foreach ($param as $key => $value) {
        foreach ($value as $k => $v) {
            if (isset($space['modelset'][$v])) {
                $layout[$key][] = $v;
            }
        }
    }
}
$newSpace->updateInfo(array('layout' => serialize($layout)));
Showmsg('²¼¾ÖÒѱ£´æ');
Пример #8
0
<?php

!defined('P_W') && exit('Forbidden');
!$winduid && Showmsg('not_login');
$isGM = S::inArray($windid, $manager);
!$isGM && $groupid == 3 && ($isGM = 1);
require_once R_P . 'u/lib/space.class.php';
$newSpace = new PwSpace($winduid);
S::gp(array('skin'));
$pwSQL = array('skin' => $skin);
set_time_limit(0);
$newSpace->updateInfo($pwSQL);
echo "ok";
Пример #9
0
    ObHeader($url);
}
/*
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) {
Пример #10
0
if (!$winduid) {
    Showmsg('not_login');
}
$USCR = 'user_home';
define('WEIBO_RELATION_NUM', 200);
//微博保留关系数
$perpage = 20;
require_once R_P . 'u/lib/space.class.php';
require_once R_P . 'require/functions.php';
//* include_once pwCache::getPath(D_P.'data/bbscache/level.php');
//* include_once pwCache::getPath(D_P.'data/bbscache/o_config.php');
extract(pwCache::getData(D_P . 'data/bbscache/level.php', false));
extract(pwCache::getData(D_P . 'data/bbscache/o_config.php', false));
extract(pwCache::getData(D_P . 'data/bbscache/dbreg.php', false));
require_once R_P . 'require/credit.php';
$newSpace = new PwSpace($winduid);
$space = $newSpace->getInfo();
$finishPercentage = getMemberInfoFinishPercentage($winduid);
//$winddb['medals'] && $listmedals = getMedalIconsByUid($winduid);
//勋章
if ($db_md_ifopen) {
    $medalService = L::loadClass('MedalService', 'medal');
    $medalList = $medalService->getUserMedals($winduid, 'all', $winddb['medals']);
    //获取会员已经拥有的勋章
}
//升级提示条
$usercredit = array('postnum' => $winddb['postnum'], 'digests' => $winddb['digests'], 'rvrc' => $winddb['rvrc'], 'money' => $winddb['money'], 'credit' => $winddb['credit'], 'currency' => $winddb['currency'], 'onlinetime' => $winddb['onlinetime']);
foreach ((array) $credit->get($winduid, 'CUSTOM') as $key => $value) {
    //金钱、积分、威望
    $usercredit[$key] = $value;
}
Пример #11
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();