function pop_uploader()
 {
     require_once 'class.pop_uploader.php';
     $allowedExtensions = array();
     $sizeLimit = 10 * 1024 * 1024;
     $uploader = new pop_qqFileUploader($allowedExtensions, $sizeLimit);
     $result = $uploader->handleUpload();
     echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
     die;
 }
 function pop_uploader()
 {
     if (!current_user_can($this->capability)) {
         return array('error' => __('No access', 'pop'));
     }
     require_once 'class.pop_uploader.php';
     $allowedExtensions = array();
     $sizeLimit = 10 * 1024 * 1024;
     $uploader = new pop_qqFileUploader($allowedExtensions, $sizeLimit);
     $result = $uploader->handleUpload();
     echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
     die;
 }