$m_cookie[substr($k, $cklen)] = QUOTES_GPC ? $v : maddslashes($v); } } unset($cklen); $curuser->init(); $curuser->currentuser(); $memberid = $curuser->info['mid']; } $allow = $memberid || $curuser->upload_capacity() == -1; if (isset($action) && $action == 'upload') { $fn = @$_GET['CKEditorFuncNum']; $allow || fckEditor($fn, '-1'); include M_ROOT . 'include/upload.cls.php'; $up = new cls_upload(); if ($mode == 'zip') { $ret = $up->zip_upload('Filedata', $lfile); if (empty($ret['error'])) { $up->closure(); echo "0|{$ret['count']}"; foreach ($ret['remote'] as $v) { echo '|' . tag2atm($v); } } else { echo $ret['error']; } } elseif ($fn) { $ret = $up->local_upload('upload', $lfile); empty($ret['error']) && ($ret['error'] = 0); $ret['error'] || $up->closure(); fckEditor($fn, $ret['error'], $ret['error'] ? '' : tag2atm($ret['remote'])); } else {