XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
upload.php File Reference

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())
 

Function Documentation

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().

Here is the caller graph for this function:

Variable Documentation

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.

$err = array()

Definition at line 79 of file upload.php.

Referenced by Swift_Transport_StreamBuffer\_establishProcessConnection().

if (!$image->save()) $ret['message'] = '1'
$ret['id'] = $image->id()

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().

if = '/'.date('m',time())

Definition at line 70 of file upload.php.