$special = 5; } elseif ($allowpostvideo) { $special = 6; } if (!$special) { showmessage('undefined_action', NULL, 'HALTED'); } } $editorid = 'e'; $editoroptions = str_pad(decbin($editoroptions), 2, 0, STR_PAD_LEFT); $editormode = $editormode == 2 ? $editoroptions[0] : $editormode; $allowswitcheditor = $editoroptions[1]; $swfupload = $swfupload && $allowpostattach; if ($swfupload) { require_once DISCUZ_ROOT . './include/swfupload.func.php'; $swfattachs = getswfattach(); } if (!empty($infloat)) { $policyarray = array(); foreach ($creditspolicy as $operation => $policy) { if (in_array($operation, array('post', 'reply', 'digest', 'postattach', 'getattach'))) { $policyarray[$operation] = $policy; if ($forum) { $policyarray[$operation] = $forum[$operation . 'credits'] ? $forum[$operation . 'credits'] : $creditspolicy[$operation]; } } } $creditsarray = array(); for ($i = 1; $i <= 8; $i++) { if (isset($extcredits[$i])) { foreach ($policyarray as $operation => $policy) {
if ($ucresult == -4) { showmessage('profile_email_illegal', '', 1); } elseif ($ucresult == -5) { showmessage('profile_email_domain_illegal', '', 1); } elseif ($ucresult == -6) { showmessage('profile_email_duplicate', '', 1); } } elseif ($action == 'checkuserexists') { $check = $db->result_first("SELECT uid FROM {$tablepre}members WHERE username='******'"); $check ? showmessage('<img src="' . IMGDIR . '/check_right.gif" width="13" height="13">') : showmessage('username_nonexistence'); } elseif ($action == 'checkinvitecode') { $invitecode = trim($invitecode); $check = $db->result_first("SELECT invitecode FROM {$tablepre}invites WHERE invitecode='" . trim($invitecode) . "' AND status IN ('1', '3')"); if (!$check) { showmessage('invite_invalid', '', 1); } else { $query = $db->query("SELECT m.username FROM {$tablepre}invites i, {$tablepre}members m WHERE invitecode='" . trim($invitecode) . "' AND i.uid=m.uid"); $inviteuser = $db->fetch_array($query); $inviteuser = $inviteuser['username']; showmessage('invite_send', '', 1); } } elseif ($action == 'swfattachlist') { if ($swfupload) { require_once DISCUZ_ROOT . './include/swfupload.func.php'; $swfattachs = getswfattach(0); } include template('header_ajax'); include template('post_swfattachlist'); include template('footer_ajax'); } showmessage($reglinkname, '', 2);