CMS  Version 3.9
photo_upload.inc File Reference

Go to the source code of this file.

Variables

 $gallery_id = checkNumeric($_GET["gallery_id"])
 
if(! $gallery_id) if(!isset($_FILES["photo"])) $gallery = new ImageGallery($gallery_id)
 
if($gallery->owner_id !=$user->get($user->getPrimaryKey()) &&!checkRole($gallery->write_access)) if(!preg_match("/\\.\\w+$/", $_FILES["photo"]["name"])) $image = new ImageRecord()
 
$image gallery_id = $gallery_id
 
$image title = "Uploaded Photo"
 
$image ALT_tag = "Uploaded Photo"
 
$image date_taken = now()
 
$image credits = $user->getFullName()
 
$image caption = ""
 
$image keywords = ""
 
$image related_resource = ""
 
$image published = false
 
$image include_in_slideshow = false
 
$image sort_order = 0
 
$image image_type = $_FILES["photo"]["type"]
 
$image owner_id = $user->get($user->getPrimaryKey())
 

Variable Documentation

◆ $gallery

if (! $gallery_id) if (!isset( $_FILES["photo"])) $gallery = new ImageGallery($gallery_id)

Definition at line 18 of file photo_upload.inc.

◆ $gallery_id

$gallery_id = checkNumeric($_GET["gallery_id"])

Definition at line 4 of file photo_upload.inc.

◆ $image

if ( $gallery->owner_id !=$user->get( $user->getPrimaryKey()) &&!checkRole( $gallery->write_access)) if (!preg_match("/\\.\\w+$/", $_FILES["photo"]["name"])) $image = new ImageRecord()

Definition at line 42 of file photo_upload.inc.

◆ ALT_tag

$image ALT_tag = "Uploaded Photo"

Definition at line 45 of file photo_upload.inc.

◆ caption

$image caption = ""

Definition at line 48 of file photo_upload.inc.

◆ credits

$image credits = $user->getFullName()

Definition at line 47 of file photo_upload.inc.

◆ date_taken

$image date_taken = now()

Definition at line 46 of file photo_upload.inc.

◆ gallery_id

$image gallery_id = $gallery_id

Definition at line 43 of file photo_upload.inc.

◆ image_type

$image image_type = $_FILES["photo"]["type"]

Definition at line 54 of file photo_upload.inc.

◆ include_in_slideshow

$image include_in_slideshow = false

Definition at line 52 of file photo_upload.inc.

◆ keywords

$image keywords = ""

Definition at line 49 of file photo_upload.inc.

◆ owner_id

$image owner_id = $user->get($user->getPrimaryKey())

Definition at line 55 of file photo_upload.inc.

◆ published

$image published = false

Definition at line 51 of file photo_upload.inc.

◆ related_resource

$image related_resource = ""

Definition at line 50 of file photo_upload.inc.

◆ sort_order

$image sort_order = 0

Definition at line 53 of file photo_upload.inc.

◆ title

$image title = "Uploaded Photo"

Definition at line 44 of file photo_upload.inc.