Esempio n. 1
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();
Esempio n. 2
0
    /*
    if ($privacy && is_array($privacy)) {
    	$pwSQL = array();
    	foreach ($privacy as $key => $value) {
    		if (in_array($key, $spaceModel)) {
    			$pwSQL[] = array(
    				'uid'	=> $winduid,
    				'type'	=> 'space',
    				'key'	=> $key,
    				'value'	=> $value
    			);
    		}
    	}
    	$pwSQL && $db->update("replace INTO pw_privacy (uid, ptype, pkey, value) values " . S::sqlMulti($pwSQL));
    }
    if ($domain != $space['domain'] && $db->get_value("SELECT COUNT(*) AS sum FROM pw_space WHERE domain=" . S::sqlEscape($domain))) {
    	Showmsg('该域名已被使用!');
    }
    */
    $pwSQL = array('name' => $name, 'descript' => $descript, 'domain' => $domain, 'spacestyle' => $spacestyle, 'spacetype' => $spacetype, 'skin' => $spaceskin, 'modelset' => serialize($modelset));
    $layout && ($pwSQL['layout'] = serialize($layout));
    set_time_limit(0);
    require_once R_P . 'u/lib/spacebannerupload.class.php';
    $upload = new spaceBannerUpload($winduid);
    PwUpload::upload($upload);
    if ($img = $upload->getImgUrl()) {
        $pwSQL['banner'] = $img;
    }
    $newSpace->updateInfo($pwSQL);
    refreshto('u.php?a=set', 'operate_success');
}
Esempio n. 3
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('²¼¾ÖÒѱ£´æ');