XOOPS RMCommon Utilities
2.1.8.91RC
|
Go to the source code of this file.
Functions | |
error ($message) | |
Variables | |
if(!isset($data[1])||strpos($data[1], RMCURL)===FALSE) if(!$xoopsUser) if($category<=0) | $cat = new RMImageCategory($category) |
$category = rmc_server_var($_POST, 'category', 0) | |
$data = $security | |
$err = array() | |
if(!$uploader->fetchMedia('Filedata')) if(!$uploader->upload()) | $image = new RMImage() |
if(!$image->save()) | $ret ['message'] = '1' |
$ret ['id'] = $image->id() | |
$security = TextCleaner::getInstance()->decrypt(rmc_server_var($_POST, 'rmsecurity', 0), true) | |
if($cat->isNew()) if($cat-> getVar('status')!='open') if(!$cat-> user_allowed_toupload($xoopsUser)) | $updir = XOOPS_UPLOAD_PATH.'/'.date('Y', time()) |
$uploader = new RMFileUploader($updir, $cat->max_file_size(), array('gif', 'jpg', 'jpeg', 'png')) | |
$xoopsUser = new XoopsUser($data[0]) | |
if(!file_exists($updir)) | if (!file_exists($updir.'/sizes')) = '/'.date('m',time()) |
error | ( | $message | ) | -> renderingEnabled = false |
Definition at line 15 of file upload.php.
References $data.
Referenced by CachedFileReader\CachedFileReader(), FileReader\FileReader(), and gettext_reader\gettext_reader().
if (!isset($data[1])||strpos($data[1], RMCURL)===FALSE) if (!$xoopsUser) if ($category<=0) $cat = new RMImageCategory($category) |
Definition at line 45 of file upload.php.
$category = rmc_server_var($_POST, 'category', 0) |
Definition at line 26 of file upload.php.
$data = $security |
Definition at line 28 of file upload.php.
Referenced by Swift_Image\__construct(), Swift_Attachment\__construct(), Swift_EmbeddedFile\__construct(), Crypt\_decodeHexadecimal(), pcrypt_blowfish\_decrypt(), Crypt\_encodeHexadecimal(), pcrypt_blowfish\_encrypt(), pcrypt_blowfish\_init(), ajax_update_details(), Crypt\decrypt(), Crypt\encrypt(), error(), RmcommonCorePreload\eventCoreIncludeCommonLanguage(), gettext_reader\get_original_string(), gettext_reader\get_translation_string(), RMFunctions\getConfValueForOutput(), RMUser\groups(), insertBlock(), jsonReturn(), Swift_Image\newInstance(), Swift_Attachment\newInstance(), Swift_EmbeddedFile\newInstance(), StringReader\read(), FileReader\read(), resize_images(), response(), and send_error().
$err = array() |
Definition at line 79 of file upload.php.
Referenced by Swift_Transport_StreamBuffer\_establishProcessConnection().
Definition at line 89 of file upload.php.
Referenced by delete_category(), delete_image(), edit_image(), Swift_Image\fromPath(), RMObject\getVar(), RMImageResizer\imageFromFormat(), resize_images(), RMImageResizer\resizeAndCrop(), RMImageResizer\resizeWidth(), RMImageResizer\resizeWidthOrHeight(), and update_image().
if (!$image->save()) $ret['message'] = '1' |
Definition at line 101 of file upload.php.
Referenced by phmagick\__call(), Swift_Mime_HeaderEncoder_QpHeaderEncoder\_encodeByteSequence(), Swift_Encoder_QpEncoder\_encodeByteSequence(), RMForm\addElement(), RMInternalBlock\adminGroups(), ajax_update_details(), phmagick_decorations\border(), RMInternalBlock\buildContent(), RMInternalBlock\buildTitle(), RMFunctions\configs(), configure_block(), RMMailer\create_body(), cu_render_output(), RMObject\errors(), phmagick\execute(), phmagick_decorations\fakePolaroid(), TextCleaner\ftp_clickable(), RMImage\get_all_versions(), RMBlocksFunctions\get_blocks(), RMFunctions\get_groups_names(), RMImage\get_version(), RMInternalBlockHandler\getAllByGroupModule(), RMInternalBlockHandler\getByModule(), RMObject\getVar(), RMObject\getVars(), RMTemplate\head_scripts(), RMUtilities\image_manager(), insertBlock(), jsonReturn(), load_modules_page(), module_rename(), RMFunctions\plugin_settings(), preg_striptags(), Swift_ByteStream_ArrayByteStream\read(), read(), Swift_Transport_StreamBuffer\read(), readBytes(), RMInternalBlock\readGroups(), RMFormHidden\render(), RMFormFile\render(), RMFormButton\render(), RMFormEditor\render(), RMBreadCrumb\render(), RMFormText\render(), RMFormButtonGroup\render(), RMFormTextArea\render(), resize_images(), rmc_available_mods(), rmc_bkcustom_show(), rmc_server_var(), RMComment\save(), RMUser\save(), RMInternalBlock\sections(), RMInternalBlock\subpages(), and TextCleaner\truncate().
Definition at line 102 of file upload.php.
$security = TextCleaner::getInstance()->decrypt(rmc_server_var($_POST, 'rmsecurity', 0), true) |
Handle uploaded image files only.
Definition at line 25 of file upload.php.
Referenced by Swift_SmtpTransport\__construct(), RmcommonCorePreload\eventCoreIncludeCommonLanguage(), and Swift_SmtpTransport\newInstance().
if (!file_exists($updir)) $updir = XOOPS_UPLOAD_PATH.'/'.date('Y', time()) |
Definition at line 59 of file upload.php.
Referenced by delete_category(), delete_image(), edit_image(), resize_images(), and update_image().
$uploader = new RMFileUploader($updir, $cat->max_file_size(), array('gif', 'jpg', 'jpeg', 'png')) |
Definition at line 77 of file upload.php.
Referenced by images_form().
$xoopsUser = new XoopsUser($data[0]) |
Definition at line 31 of file upload.php.
Referenced by RMInternalBlock\checkRights(), RMFunctions\comments_form(), RMBlocksFunctions\construct_blocks(), Twop6Functions\currentModuleMenu(), DesigniaFunctions\currentModuleMenu(), edit_image(), RmcommonCorePreload\eventCoreIncludeCommonLanguage(), RMFunctions\get_comments(), images_form(), DesigniaFunctions\moduleMenu(), Twop6Functions\moduleMenu(), RMFormEditor\renderTiny(), resize_images(), update_image(), and update_thumbnails().
if = '/'.date('m',time()) |
Definition at line 70 of file upload.php.