Example #1
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();