ILIAS  release_4-4 Revision
imgupload.php File Reference

Go to the source code of this file.

Variables

global $ilIliasIniFile
 
global $lng
 
global $ilUser
 
global $https
 
 $htdocs = $ilIliasIniFile->readVariable('server', 'absolute_path') . '/'
 
 $weburl = $ilIliasIniFile->readVariable('server', 'http_path') . '/'
 
 $installpath = $htdocs
 
 $iliasMobPath = 'data/' . CLIENT_ID . '/mobs/'
 
 $iliasAbsolutePath = $htdocs
 
 $iliasHttpPath = $weburl
 
if($iliasHttpPath &&strpos($iliasHttpPath, 'https://')===false && $https->isDetected()) $tinyMCE_base_url = $weburl
 
 $tinyMCE_DOC_url = $installpath
 
 $tinyMCE_valid_imgs = array('gif', 'jpg', 'jpeg', 'png')
 
 $tinyMCE_upload_allowed = true
 
 $tinyMCE_img_delete_allowed = false
 
 $errors = new stdClass()
 
$errors general = array()
 
$errors fields = array()
 
 $mobs = ilSoapFunctions::getMobsOfObject(session_id() . '::' . CLIENT_ID, $_GET['obj_type'] . ':html', (int)$_GET['obj_id'])
 
 $preview = ''
 
 $mob_details = array()
 
 $img = isset($_POST['imglist']) ? $_POST['imglist'] : ''
 
 $_root = $installpath
 
 $uploadedFile = false
 
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $tpl = new ilTemplate(dirname(__FILE__) . "/tpl.img_upload.html", true, true)
 
if($ilUser->getLanguage()=='de') else
 

Variable Documentation

◆ $_root

$_root = $installpath

Definition at line 54 of file imgupload.php.

◆ $errors

$errors = new stdClass()

Definition at line 45 of file imgupload.php.

◆ $htdocs

$htdocs = $ilIliasIniFile->readVariable('server', 'absolute_path') . '/'

Definition at line 19 of file imgupload.php.

◆ $https

global $https

Definition at line 15 of file imgupload.php.

◆ $iliasAbsolutePath

$iliasAbsolutePath = $htdocs

Definition at line 25 of file imgupload.php.

◆ $iliasHttpPath

$iliasHttpPath = $weburl

Definition at line 26 of file imgupload.php.

◆ $iliasMobPath

$iliasMobPath = 'data/' . CLIENT_ID . '/mobs/'

Definition at line 24 of file imgupload.php.

◆ $ilIliasIniFile

global $ilIliasIniFile

Definition at line 15 of file imgupload.php.

◆ $ilUser

global $ilUser

Definition at line 15 of file imgupload.php.

◆ $img

$img = isset($_POST['imglist']) ? $_POST['imglist'] : ''

Definition at line 53 of file imgupload.php.

◆ $installpath

$installpath = $htdocs

Definition at line 21 of file imgupload.php.

◆ $lng

global $lng

Definition at line 15 of file imgupload.php.

◆ $mob_details

$mob_details = array()

Definition at line 52 of file imgupload.php.

◆ $mobs

$mobs = ilSoapFunctions::getMobsOfObject(session_id() . '::' . CLIENT_ID, $_GET['obj_type'] . ':html', (int)$_GET['obj_id'])

Definition at line 50 of file imgupload.php.

◆ $preview

$preview = ''

Definition at line 51 of file imgupload.php.

◆ $tinyMCE_base_url

if ( $iliasHttpPath &&strpos( $iliasHttpPath, 'https://')===false &&$https->isDetected()) $tinyMCE_base_url = $weburl

Definition at line 33 of file imgupload.php.

◆ $tinyMCE_DOC_url

$tinyMCE_DOC_url = $installpath

Definition at line 34 of file imgupload.php.

◆ $tinyMCE_img_delete_allowed

$tinyMCE_img_delete_allowed = false

Definition at line 43 of file imgupload.php.

◆ $tinyMCE_upload_allowed

$tinyMCE_upload_allowed = true

Definition at line 40 of file imgupload.php.

◆ $tinyMCE_valid_imgs

$tinyMCE_valid_imgs = array('gif', 'jpg', 'jpeg', 'png')

Definition at line 37 of file imgupload.php.

◆ $tpl

if (isset( $_FILES[ 'img_file']) &&is_array( $_FILES[ 'img_file'])) $tpl = new ilTemplate(dirname(__FILE__) . "/tpl.img_upload.html", true, true)

Definition at line 146 of file imgupload.php.

◆ $uploadedFile

$uploadedFile = false

Definition at line 57 of file imgupload.php.

◆ $weburl

$weburl = $ilIliasIniFile->readVariable('server', 'http_path') . '/'

Definition at line 20 of file imgupload.php.

◆ else

if ( $_GET["update"]==1) else
Initial value:
{
$tpl->touchBlock('validation_engine_lang_default')
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $tpl
Definition: imgupload.php:146

Definition at line 164 of file imgupload.php.

◆ fields

$errors fields = array()

Definition at line 47 of file imgupload.php.

◆ general

$errors general = array()

Definition at line 46 of file imgupload.php.