i'll test in the next days
can you tell me:
Quote:
editing fields: what does checkbox "Field: Is parent" mean/cause?
creating table: what does checkbox "Permissions for this table" mean/cause?
editing fields: what does checkbox "Field: Is parent" mean/cause?
creating table: what does checkbox "Permissions for this table" mean/cause?
'Error occured: error #1. ...'
function fetchMedia($media_name, $index = null)
{
$this->errors = array();
if (empty($this->extensionToMime)) {
$this->setErrors(_ER_UP_MIMETYPELOAD);
return false;
}
if (!isset($_FILES[$media_name])) {
$this->setErrors(_ER_UP_FILENOTFOUND);
return false;
} else if (is_array($_FILES[$media_name]['name']) && isset($index)) {
$index = intval($index);
$this->mediaName = (get_magic_quotes_gpc()) ? stripslashes($_FILES[$media_name]['name'][$index]) : $_FILES[$media_name]['name'][$index];
$this->mediaType = $_FILES[$media_name]['type'][$index];
$this->mediaSize = $_FILES[$media_name]['size'][$index];
$this->mediaTmpName = $_FILES[$media_name]['tmp_name'][$index];
$this->mediaError = !empty($_FILES[$media_name]['error'][$index]) ? $_FILES[$media_name]['error'][$index] : 0;
} else {
$media_name =& $_FILES[$media_name];
$this->mediaName = (get_magic_quotes_gpc()) ? stripslashes($media_name['name']) : $media_name['name'];
$this->mediaType = $media_name['type'];
$this->mediaSize = $media_name['size'];
$this->mediaTmpName = $media_name['tmp_name'];
$this->mediaError = !empty($media_name['error']) ? $media_name['error'] : 0;
}
if (($ext = strrpos($this->mediaName, '.')) !== false) {
$ext = strtolower(substr($this->mediaName, $ext + 1));
if (isset($this->extensionToMime[$ext])) {
$this->mediaRealType = $this->extensionToMime[$ext];
}
}
//check first for file-upload errors
if ($this->mediaError > 0) {
$this->setErrors(sprintf(_ER_UP_ERROROCCURRED, $this->mediaError));
switch ($this->mediaError) {
case 1: //UPLOAD_ERR_INI_SIZE
$this->setErrors(_ER_UP_PHPERR_INI_SIZE);
break;
case 3: //UPLOAD_ERR_PARTIAL
$this->setErrors(_ER_UP_PHPERR_PARTIAL);
break;
case 4: //UPLOAD_ERR_NO_FILE
$this->setErrors(_ER_UP_PHPERR_NO_FILE);
break;
case 6: //UPLOAD_ERR_NO_TMP_DIR
$this->setErrors(_ER_UP_PHPERR_NO_TMP_DIR);
break;
case 7: //UPLOAD_ERR_CANT_WRITE
$this->setErrors(_ER_UP_PHPERR_CANT_WRITE);
break;
case 8: //UPLOAD_ERR_EXTENSION
$this->setErrors(_ER_UP_PHPERR_EXTENSION);
break;
case 2: //UPLOAD_ERR_FORM_SIZE, should be done by checkMaxFileSize
case 0: //UPLOAD_ERR_OK: no error
default:
break;
}
return false;
}
//than checks by xoopsuploader
if (intval($this->mediaSize) < 0) {
$this->setErrors(_ER_UP_INVALIDFILESIZE);
return false;
}
if ($this->mediaName == '') {
$this->setErrors(_ER_UP_FILENAMEEMPTY);
return false;
}
if ($this->mediaTmpName == 'none' || ! is_uploaded_file($this->mediaTmpName)) {
$this->setErrors(_ER_UP_NOFILEUPLOADED);
return false;
}
return true;
}
define('_ER_UP_PHPERR_INI_SIZE', 'The uploaded file exceeds the upload_max_filesize directive in php.ini');
define('_ER_UP_PHPERR_PARTIAL', 'The uploaded file was only partially uploaded');
define('_ER_UP_PHPERR_NO_FILE', 'No file was uploaded');
define('_ER_UP_PHPERR_NO_TMP_DIR', 'Missing a temporary folder');
define('_ER_UP_PHPERR_CANT_WRITE', 'Failed to write file to disk');
define('_ER_UP_PHPERR_EXTENSION', 'A PHP extension stopped the file upload');
'Error occured: error #%s. The uploaded file exceeds the upload_max_filesize directive in php.ini'
define("_XOOPS_EDITOR_TINYMCE4_LANGUAGE","de");
'xml' => 'text/xml'
<object data="myswf.swf" type="application/x-shockwave-flash" width="600" height="400">
<param name="movie" value="myswf.swf">
<param name="quality" value="high">
<param name="scale" value="exactfit">
<param name="menu" value="true">
<param name="bgcolor" value="#000040">
</object>