Example #1
0
        				'email'		=> $email,
        				'address'	=> $address,
        				'introduce'	=> $introduce,
        			)) . " WHERE colonyid=" . S::sqlEscape($cyid) . " AND uid=".S::sqlEscape($winduid)
        		);
        		**/
        pwQuery::update('pw_cmembers', 'colonyid=:colonyid AND uid=:uid', array($cyid, $winduid), array('realname' => $realname, 'gender' => $gender, 'tel' => $tel, 'email' => $email, 'address' => $address, 'introduce' => $introduce));
        Showmsg('编辑成功!');
    }
} elseif ($a == 'set') {
    !$ifadmin && Showmsg('undefined_action');
    $isGM && ($SYSTEM['colonyright'] = 1);
    $a_key = 'set';
    S::gp('t');
    //获取功能权限
    $ifsetable = $newColony->getSetAble($t);
    !$ifsetable && Showmsg('colony_setunable');
    $tmpActionUrl .= '&showtype=set' . ($t && $t != 'style' ? '&t=' . $t : '');
    if (empty($t)) {
        $jsStyle = pwJsonEncode($o_styledb);
        $jsStyleRelation = pwJsonEncode($o_style_relation);
        if (empty($_POST['step'])) {
            $titledetail = explode("~", $colony['titlefont']);
            $titlecolor = $titledetail[0];
            if ($titlecolor && !preg_match('/\\#[0-9A-F]{6}/is', $titlecolor)) {
                $titlecolor = '';
            }
            $stylename[1] = $titledetail[1] == '1' ? 'b one' : 'b';
            $stylename[2] = $titledetail[2] == '1' ? 'u one' : 'u';
            $stylename[3] = $titledetail[3] == '1' ? 'one' : '';
            $filetype = is_array($db_uploadfiletype) ? $db_uploadfiletype : unserialize($db_uploadfiletype);