include_once libfile('function/code'); $uid = intval($_G['uid']); $verify = C::t('user_verify')->fetch($_G['uid']); //error_reporting(E_ALL); $space = getuserbyuid($uid); space_merge($space, 'profile1'); $userstatus = C::t('user_status')->fetch($uid); loadcache('profilesetting'); if (empty($_G['cache']['profilesetting'])) { require_once libfile('function/cache'); updatecache('profilesetting'); loadcache('profilesetting'); } if (submitcheck('profilesubmit')) { $setarr = $verifyarr = $errorarr = array(); $censor = dzz_censor::instance(); $vid = intval($_GET['vid']); if ($vid) { $verifyconfig = $_G['setting']['verify'][$vid]; if ($verifyconfig['available'] && (empty($verifyconfig['groupid']) || in_array($_G['groupid'], $verifyconfig['groupid']))) { $verifyinfo = C::t('user_verify_info')->fetch_by_uid_verifytype($_G['uid'], $vid); if (!empty($verifyinfo)) { $verifyinfo['field'] = dunserialize($verifyinfo['field']); } foreach ($verifyconfig['field'] as $key => $field) { if (!isset($verifyinfo['field'][$key])) { $verifyinfo['field'][$key] = $key; } } } else { $_GET['vid'] = $vid = 0;
function censor($message) { $censor = dzz_censor::instance(); return $censor->replace($message); }