From: Yves K. <yku...@us...> - 2004-11-05 23:35:41
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/InsertFile In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2360/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/InsertFile Modified Files: config.php Log Message: unix saving bugfix in filepath Index: config.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_htmlarea/plugins/InsertFile/config.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** config.php 25 Oct 2004 18:14:41 -0000 1.1.1.1 --- config.php 5 Nov 2004 23:34:54 -0000 1.2 *************** *** 1,261 **** ! <?php ! /*********************************************************************** ! ** Title.........: Insert File Dialog, File Manager ! ** Version.......: 1.1 ! ** Authors.......: Al Rashid <alr...@kl...> ! ** Xiang Wei ZHUO <we...@zh...> ! ** Filename......: config.php ! ** URL...........: http://alrashid.klokan.sk/insFile/ ! ** Last changed..: 23 July 2004 ! ***********************************************************************/ ! ! // Error reporting should be set to E_NONE in production environment ! // error_reporting( E_NONE ); ! error_reporting(E_ALL); ! ! ! /* ! MY_DOCUMENT_ROOT ! File system path to the directory you want to manage the files and folders ! NOTE: This directory requires write permission by PHP. That is, ! PHP must be able to create files in this directory. ! NOTE2: without trailing slash ! */ ! //$MY_DOCUMENT_ROOT = 'C:\Apache\www\gul\insFile\data'; ! //$MY_DOCUMENT_ROOT = '/home/barc/www/training/files/phatfile'; ! $MY_DOCUMENT_ROOT = $_COOKIE['pws_source_dir'].'files/phatfile'; ! ! /* ! MY_BASE_URL ! Not used in htmlarea3-plugin version ! */ ! $MY_BASE_URL = ''; ! ! /* ! MY_URL_TO_OPEN_FILE ! The URL to the MY_DOCUMENT_ROOT path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store documents ! in this directory and its subdirectories. ! NOTE: without trailing slash ! */ ! //$MY_URL_TO_OPEN_FILE = 'http://gul.net/insFile/data'; ! //$MY_URL_TO_OPEN_FILE = 'http://www.barc.org.au/training/files/phatfile'; ! $MY_URL_TO_OPEN_FILE = 'http://'.$_COOKIE['pws_source_http'].'files/documents'; ! ! /* ! MY_ALLOW_EXTENSIONS ! MY_DENY_EXTENSIONS ! MY_ALLOW_EXTENSIONS and MY_DENY_EXTENSIONS arrays specify which file types can be uploaded. ! Setting to null skips this check. The scheme is: ! 1) If MY_DENY_EXTENSIONS is not null check if it does _not_ contain file extension of the file to be uploaded. ! If it does skip the upload procedure. ! 2) If MY_ALLOW_EXTENSIONS is not null check if it _does_ contain file extension of the file to be uploaded. ! If it doesn't skip the upload procedure. ! 3) Upload file. ! NOTE: File extensions arrays are case insensitive. ! You should always include server side executable file types in MY_DENY_EXTENSIONS !!! ! */ ! ! $MY_ALLOW_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi', 'pl'); ! ! /* ! MY_LIST_EXTENSIONS ! This array specifies which files are listed in dialog. Setting to null causes that all files are listed. ! NOTE: File extensions arrays are case insensitive. ! */ ! $MY_LIST_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! ! /* ! MY_ALLOW_CREATE ! Boolean (false or true) whether creating folders is allowed or not. ! */ ! ! if (isset($_COOKIE['htmlarea_insfile_cookie_create'])) { ! $MY_ALLOW_CREATE = true; } ! else {$MY_ALLOW_CREATE = false;} ! ! /* ! $MY_ALLOW_DELETE ! Boolean (false or true) whether deleting files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_delete'])) { ! $MY_ALLOW_DELETE = true; } ! else {$MY_ALLOW_DELETE = false;} ! /* ! $MY_ALLOW_RENAME ! Boolean (false or true) whether renaming files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_rename'])) { ! $MY_ALLOW_RENAME= true;} ! else {$MY_ALLOW_RENAME = false;} ! ! /* ! $MY_ALLOW_MOVE ! Boolean (false or true) whether moving files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_move'])) { ! $MY_ALLOW_MOVE = true; } ! else {$MY_ALLOW_MOVE = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Boolean (false or true) whether uploading files is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_upload'])) { ! $MY_ALLOW_UPLOAD = true; } ! else {$MY_ALLOW_UPLOAD = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Maximum allowed size for uploaded files (in bytes). ! NOTE2: see also upload_max_filesize setting in your php.ini file ! NOTE: 2*1024*1024 means 2 MB (megabytes) which is the default php.ini setting ! */ ! $MY_MAX_FILE_SIZE = 2*1024*1024; ! ! /* ! $MY_LANG ! Interface language. See the lang directory for translation files. ! NOTE: You should set appropriately MY_CHARSET and $MY_DATETIME_FORMAT variables ! */ ! ! if (isset($_COOKIE['pws_lang'])) { ! $MY_LANG = $_COOKIE['pws_lang']; } ! else {$MY_LANG = 'en'; } ! ! /* ! $MY_CHARSET ! Character encoding for all Insert File dialogs. ! WARNING: For non english and non iso-8859-1 / utf8 users mostly !!! ! This setting affect also how the name of folder you create via Insert File Dialog ! and the name of file uploaded via Insert File Dialog will be encoded on your remote ! server filesystem. Note also the difference between how file names in multipart/data ! form are encoded by Internet Explorer (plain text depending on the webpage charset) ! and Mozilla (encoded according to RFC 1738). ! This should be fixed in next versions. Any help is VERY appreciated. ! */ ! $MY_CHARSET = 'iso-8859-1'; ! ! /* ! MY_DATETIME_FORMAT ! Datetime format for displaying file modification time in Insert File Dialog ! and in inserted link, see MY_LINK_FORMAT ! */ ! $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! ! /* ! MY_LINK_FORMAT ! The string to be inserted into textarea. ! This is the most crucial setting. I apologize for not using the DOM functions any more, ! but inserting raw string allow more customization for everyone. ! The following strings are replaced by corresponding values of selected files/folders: ! _editor_url ! the url of htmlarea root folder - you should set it in your document (see htmlarea help) ! IF_ICON ! file type icon filename (see plugins/InsertFile/images/ext directory) ! IF_URL ! relative path to file relative to $MY_DOCUMENT_ROOT ! IF_CAPTION ! file/folder name ! IF_SIZE ! file size in (B, kB, or MB) ! IF_DATE ! last modification time acording to $MY_DATETIME_FORMAT format ! */ ! // bugfix by chris for following line ! $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="'.$MY_URL_TO_OPEN_FILE.'IF_URL" border="0"> <a href="'.$MY_URL_TO_OPEN_FILE.'IF_URL" target="_blank">IF_CAPTION</a> <span style="font-size:70%">[IF_SIZE]</span></span> '; ! ! ! /* ! parse_icon function ! please insert additional file types (extensions) and theis corresponding icons in switch statement ! */ ! ! function parse_icon($ext) { ! switch (strtolower($ext)) { ! case 'doc': return 'doc_small.gif'; ! case 'rtf': return 'doc_small.gif'; ! case 'txt': return 'txt_small.gif'; ! case 'xls': return 'xls_small.gif'; ! case 'csv': return 'xls_small.gif'; ! case 'ppt': return 'ppt_small.gif'; ! case 'html': return 'html_small.gif'; ! case 'htm': return 'html_small.gif'; ! case 'php': return 'script_small.gif'; ! case 'php3': return 'script_small.gif'; ! case 'cgi': return 'script_small.gif'; ! case 'pdf': return 'pdf_small.gif'; ! case 'rar': return 'rar_small.gif'; ! case 'zip': return 'zip_small.gif'; ! case 'gz': return 'gz_small.gif'; ! case 'jpg': return 'jpg_small.gif'; ! case 'gif': return 'gif_small.gif'; ! case 'png': return 'png_small.gif'; ! case 'bmp': return 'image_small.gif'; ! case 'exe': return 'binary_small.gif'; ! case 'bin': return 'binary_small.gif'; ! case 'avi': return 'mov_small.gif'; ! case 'mpg': return 'mov_small.gif'; ! case 'moc': return 'mov_small.gif'; ! case 'asf': return 'mov_small.gif'; ! case 'mp3': return 'sound_small.gif'; ! case 'wav': return 'sound_small.gif'; ! case 'org': return 'sound_small.gif'; ! default: ! return 'def_small.gif'; ! } ! } ! ! /* ! ! !!!!!!!!!!!!! DO NOT EDIT BELLOW !!!!!!!!!!!!!!!!!!111 ! ! */ ! ! /* ! This was meant for standalone InsertFile Dialog version ! */ ! /* ! session_start(); ! if (empty($_REQUEST['dialogname'])) die('Dialog Name missing!'); ! $MY_NAME = $_REQUEST['dialogname']; ! if (!(isset($_SESSION[$MY_NAME])) || !(is_array($_SESSION[$MY_NAME]))) die ('Session not set!'); ! if (!isset($_SESSION[$MY_NAME])) die ('Document Root not set!'); ! ! $MY_DOCUMENT_ROOT = $_SESSION[$MY_NAME]['DocumentRoot']; ! (isset($_SESSION[$MY_NAME]['BaseUrl'])) ? $MY_BASE_URL = $_SESSION[$MY_NAME]['BaseUrl'] : $MY_BASE_URL = ''; ! (isset($_SESSION[$MY_NAME]['UrlToOpenFile'])) ? $MY_URL_TO_OPEN_FILE = $_SESSION[$MY_NAME]['UrlToOpenFile'] : $MY_URL_TO_OPEN_FILE = ''; ! (isset($_SESSION[$MY_NAME]['AllowExtensions'])) ? $MY_ALLOW_EXTENSIONS = $_SESSION[$MY_NAME]['AllowExtensions'] : $MY_ALLOW_EXTENSIONS = null; ! (isset($_SESSION[$MY_NAME]['DenyExtensions'])) ? $MY_DENY_EXTENSIONS = $_SESSION[$MY_NAME]['DenyExtensions'] : $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi'); ! (isset($_SESSION[$MY_NAME]['ListExtensions'])) ? $MY_LIST_EXTENSIONS = $_SESSION[$MY_NAME]['ListExtensions'] : $MY_LIST_EXTENSIONS = null; ! ! (isset($_SESSION[$MY_NAME]['AllowCreate'])) ? $MY_ALLOW_CREATE = $_SESSION[$MY_NAME]['AllowCreate'] : $MY_ALLOW_CREATE = true; ! (isset($_SESSION[$MY_NAME]['AllowDelete'])) ? $MY_ALLOW_DELETE = $_SESSION[$MY_NAME]['AllowDelete'] : $MY_ALLOW_DELETE = true; ! (isset($_SESSION[$MY_NAME]['AllowRename'])) ? $MY_ALLOW_RENAME = $_SESSION[$MY_NAME]['AllowRename'] : $MY_ALLOW_RENAME = true; ! (isset($_SESSION[$MY_NAME]['AllowMove'])) ? $MY_ALLOW_MOVE = $_SESSION[$MY_NAME]['AllowMove'] : $MY_ALLOW_MOVE = true; ! (isset($_SESSION[$MY_NAME]['AllowUpload'])) ? $MY_ALLOW_UPLOAD = $_SESSION[$MY_NAME]['AllowUpload'] : $MY_ALLOW_UPLOAD = true; ! ! (isset($_SESSION[$MY_NAME]['MaxFileSize'])) ? $MY_MAX_FILE_SIZE = $_SESSION[$MY_NAME]['MaxFileSize'] : $MY_MAX_FILE_SIZE = 2*1024*1024; ! (isset($_SESSION[$MY_NAME]['Lang'])) ? $MY_LANG = $_SESSION[$MY_NAME]['Lang'] : $MY_LANG = 'en'; ! (isset($_SESSION[$MY_NAME]['Charset'])) ? $MY_CHARSET = $_SESSION[$MY_NAME]['Charset'] : $MY_CHARSET = 'iso-8859-1'; ! (isset($_SESSION[$MY_NAME]['DateTimeFormat'])) ? $MY_DATETIME_FORMAT = $_SESSION[$MY_NAME]['DateTimeFormat'] : $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! (isset($_SESSION[$MY_NAME]['LinkFormat'])) ? $MY_LINK_FORMAT = $_SESSION[$MY_NAME]['LinkFormat'] : $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="IF_URL" border="0"> <a href="IF_URL">IF_CAPTION</a> <span style="font-size:70%">IF_SIZE IF_DATE</span></span> '; ! */ ! ! ! // DO NOT EDIT BELOW ! $MY_NAME = 'inserfiledialog'; ! $lang_file = 'lang/lang-'.$MY_LANG.'.php'; ! if (is_file($lang_file)) { ! require($lang_file); ! } else { ! require('lang/lang-en.php'); ! } ! $MY_PATH = '/'; ! $MY_UP_PATH = '/'; ! ! --- 1,262 ---- ! <?php ! /*********************************************************************** ! ** Title.........: Insert File Dialog, File Manager ! ** Version.......: 1.1 ! ** Authors.......: Al Rashid <alr...@kl...> ! ** Xiang Wei ZHUO <we...@zh...> ! ** Filename......: config.php ! ** URL...........: http://alrashid.klokan.sk/insFile/ ! ** Last changed..: 23 July 2004 ! ***********************************************************************/ ! ! // Error reporting should be set to E_NONE in production environment ! // error_reporting( E_NONE ); ! error_reporting(E_ALL); ! ! ! /* ! MY_DOCUMENT_ROOT ! File system path to the directory you want to manage the files and folders ! NOTE: This directory requires write permission by PHP. That is, ! PHP must be able to create files in this directory. ! NOTE2: without trailing slash ! */ ! //$MY_DOCUMENT_ROOT = 'C:\Apache\www\gul\insFile\data'; ! //$MY_DOCUMENT_ROOT = '/home/barc/www/training/files/phatfile'; ! $MY_DOCUMENT_ROOT = $_COOKIE['pws_source_dir'].'files/documents'; ! ! /* ! MY_BASE_URL ! Not used in htmlarea3-plugin version ! */ ! $MY_BASE_URL = ''; ! ! /* ! MY_URL_TO_OPEN_FILE ! The URL to the MY_DOCUMENT_ROOT path, the web browser needs to be able to see it. ! It can be protected via .htaccess on apache or directory permissions on IIS, ! check you web server documentation for futher information on directory protection ! If this directory needs to be publicly accessiable, remove scripting capabilities ! for this directory (i.e. disable PHP, Perl, CGI). We only want to store documents ! in this directory and its subdirectories. ! NOTE: without trailing slash ! */ ! //$MY_URL_TO_OPEN_FILE = 'http://gul.net/insFile/data'; ! //$MY_URL_TO_OPEN_FILE = 'http://www.barc.org.au/training/files/phatfile'; ! $MY_URL_TO_OPEN_FILE = 'http://'.$_COOKIE['pws_source_http'].'files/documents'; ! ! /* ! MY_ALLOW_EXTENSIONS ! MY_DENY_EXTENSIONS ! MY_ALLOW_EXTENSIONS and MY_DENY_EXTENSIONS arrays specify which file types can be uploaded. ! Setting to null skips this check. The scheme is: ! 1) If MY_DENY_EXTENSIONS is not null check if it does _not_ contain file extension of the file to be uploaded. ! If it does skip the upload procedure. ! 2) If MY_ALLOW_EXTENSIONS is not null check if it _does_ contain file extension of the file to be uploaded. ! If it doesn't skip the upload procedure. ! 3) Upload file. ! NOTE: File extensions arrays are case insensitive. ! You should always include server side executable file types in MY_DENY_EXTENSIONS !!! ! */ ! ! $MY_ALLOW_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi', 'pl'); ! ! /* ! MY_LIST_EXTENSIONS ! This array specifies which files are listed in dialog. Setting to null causes that all files are listed. ! NOTE: File extensions arrays are case insensitive. ! */ ! $MY_LIST_EXTENSIONS = array('html', 'doc', 'xls', 'txt', 'gif', 'jpeg', 'jpg', 'png', 'pdf', 'zip'); ! ! /* ! MY_ALLOW_CREATE ! Boolean (false or true) whether creating folders is allowed or not. ! */ ! ! if (isset($_COOKIE['htmlarea_insfile_cookie_create'])) { ! $MY_ALLOW_CREATE = true; } ! else {$MY_ALLOW_CREATE = false;} ! ! /* ! $MY_ALLOW_DELETE ! Boolean (false or true) whether deleting files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_delete'])) { ! $MY_ALLOW_DELETE = true; } ! else {$MY_ALLOW_DELETE = false;} ! /* ! $MY_ALLOW_RENAME ! Boolean (false or true) whether renaming files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_rename'])) { ! $MY_ALLOW_RENAME= true;} ! else {$MY_ALLOW_RENAME = false;} ! ! /* ! $MY_ALLOW_MOVE ! Boolean (false or true) whether moving files and folders is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_move'])) { ! $MY_ALLOW_MOVE = true; } ! else {$MY_ALLOW_MOVE = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Boolean (false or true) whether uploading files is allowed or not. ! */ ! if (isset($_COOKIE['htmlarea_insfile_cookie_upload'])) { ! $MY_ALLOW_UPLOAD = true; } ! else {$MY_ALLOW_UPLOAD = false; } ! ! /* ! $MY_ALLOW_UPLOAD ! Maximum allowed size for uploaded files (in bytes). ! NOTE2: see also upload_max_filesize setting in your php.ini file ! NOTE: 2*1024*1024 means 2 MB (megabytes) which is the default php.ini setting ! */ ! $MY_MAX_FILE_SIZE = 2*1024*1024; ! ! /* ! $MY_LANG ! Interface language. See the lang directory for translation files. ! NOTE: You should set appropriately MY_CHARSET and $MY_DATETIME_FORMAT variables ! */ ! ! ! if (isset($_COOKIE['pws_lang'])) { ! $MY_LANG = $_COOKIE['pws_lang']; } ! else {$MY_LANG = 'en'; } ! ! /* ! $MY_CHARSET ! Character encoding for all Insert File dialogs. ! WARNING: For non english and non iso-8859-1 / utf8 users mostly !!! ! This setting affect also how the name of folder you create via Insert File Dialog ! and the name of file uploaded via Insert File Dialog will be encoded on your remote ! server filesystem. Note also the difference between how file names in multipart/data ! form are encoded by Internet Explorer (plain text depending on the webpage charset) ! and Mozilla (encoded according to RFC 1738). ! This should be fixed in next versions. Any help is VERY appreciated. ! */ ! $MY_CHARSET = 'iso-8859-1'; ! ! /* ! MY_DATETIME_FORMAT ! Datetime format for displaying file modification time in Insert File Dialog ! and in inserted link, see MY_LINK_FORMAT ! */ ! $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! ! /* ! MY_LINK_FORMAT ! The string to be inserted into textarea. ! This is the most crucial setting. I apologize for not using the DOM functions any more, ! but inserting raw string allow more customization for everyone. ! The following strings are replaced by corresponding values of selected files/folders: ! _editor_url ! the url of htmlarea root folder - you should set it in your document (see htmlarea help) ! IF_ICON ! file type icon filename (see plugins/InsertFile/images/ext directory) ! IF_URL ! relative path to file relative to $MY_DOCUMENT_ROOT ! IF_CAPTION ! file/folder name ! IF_SIZE ! file size in (B, kB, or MB) ! IF_DATE ! last modification time acording to $MY_DATETIME_FORMAT format ! */ ! // bugfix by chris for following line ! $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="'.$MY_URL_TO_OPEN_FILE.'IF_URL" border="0"> <a href="'.$MY_URL_TO_OPEN_FILE.'IF_URL" target="_blank">IF_CAPTION</a> <span style="font-size:70%">[IF_SIZE]</span></span> '; ! ! ! /* ! parse_icon function ! please insert additional file types (extensions) and theis corresponding icons in switch statement ! */ ! ! function parse_icon($ext) { ! switch (strtolower($ext)) { ! case 'doc': return 'doc_small.gif'; ! case 'rtf': return 'doc_small.gif'; ! case 'txt': return 'txt_small.gif'; ! case 'xls': return 'xls_small.gif'; ! case 'csv': return 'xls_small.gif'; ! case 'ppt': return 'ppt_small.gif'; ! case 'html': return 'html_small.gif'; ! case 'htm': return 'html_small.gif'; ! case 'php': return 'script_small.gif'; ! case 'php3': return 'script_small.gif'; ! case 'cgi': return 'script_small.gif'; ! case 'pdf': return 'pdf_small.gif'; ! case 'rar': return 'rar_small.gif'; ! case 'zip': return 'zip_small.gif'; ! case 'gz': return 'gz_small.gif'; ! case 'jpg': return 'jpg_small.gif'; ! case 'gif': return 'gif_small.gif'; ! case 'png': return 'png_small.gif'; ! case 'bmp': return 'image_small.gif'; ! case 'exe': return 'binary_small.gif'; ! case 'bin': return 'binary_small.gif'; ! case 'avi': return 'mov_small.gif'; ! case 'mpg': return 'mov_small.gif'; ! case 'moc': return 'mov_small.gif'; ! case 'asf': return 'mov_small.gif'; ! case 'mp3': return 'sound_small.gif'; ! case 'wav': return 'sound_small.gif'; ! case 'org': return 'sound_small.gif'; ! default: ! return 'def_small.gif'; ! } ! } ! ! /* ! ! !!!!!!!!!!!!! DO NOT EDIT BELLOW !!!!!!!!!!!!!!!!!!111 ! ! */ ! ! /* ! This was meant for standalone InsertFile Dialog version ! */ ! /* ! session_start(); ! if (empty($_REQUEST['dialogname'])) die('Dialog Name missing!'); ! $MY_NAME = $_REQUEST['dialogname']; ! if (!(isset($_SESSION[$MY_NAME])) || !(is_array($_SESSION[$MY_NAME]))) die ('Session not set!'); ! if (!isset($_SESSION[$MY_NAME])) die ('Document Root not set!'); ! ! $MY_DOCUMENT_ROOT = $_SESSION[$MY_NAME]['DocumentRoot']; ! (isset($_SESSION[$MY_NAME]['BaseUrl'])) ? $MY_BASE_URL = $_SESSION[$MY_NAME]['BaseUrl'] : $MY_BASE_URL = ''; ! (isset($_SESSION[$MY_NAME]['UrlToOpenFile'])) ? $MY_URL_TO_OPEN_FILE = $_SESSION[$MY_NAME]['UrlToOpenFile'] : $MY_URL_TO_OPEN_FILE = ''; ! (isset($_SESSION[$MY_NAME]['AllowExtensions'])) ? $MY_ALLOW_EXTENSIONS = $_SESSION[$MY_NAME]['AllowExtensions'] : $MY_ALLOW_EXTENSIONS = null; ! (isset($_SESSION[$MY_NAME]['DenyExtensions'])) ? $MY_DENY_EXTENSIONS = $_SESSION[$MY_NAME]['DenyExtensions'] : $MY_DENY_EXTENSIONS = array('php', 'php3', 'php4', 'phtml', 'shtml', 'cgi'); ! (isset($_SESSION[$MY_NAME]['ListExtensions'])) ? $MY_LIST_EXTENSIONS = $_SESSION[$MY_NAME]['ListExtensions'] : $MY_LIST_EXTENSIONS = null; ! ! (isset($_SESSION[$MY_NAME]['AllowCreate'])) ? $MY_ALLOW_CREATE = $_SESSION[$MY_NAME]['AllowCreate'] : $MY_ALLOW_CREATE = true; ! (isset($_SESSION[$MY_NAME]['AllowDelete'])) ? $MY_ALLOW_DELETE = $_SESSION[$MY_NAME]['AllowDelete'] : $MY_ALLOW_DELETE = true; ! (isset($_SESSION[$MY_NAME]['AllowRename'])) ? $MY_ALLOW_RENAME = $_SESSION[$MY_NAME]['AllowRename'] : $MY_ALLOW_RENAME = true; ! (isset($_SESSION[$MY_NAME]['AllowMove'])) ? $MY_ALLOW_MOVE = $_SESSION[$MY_NAME]['AllowMove'] : $MY_ALLOW_MOVE = true; ! (isset($_SESSION[$MY_NAME]['AllowUpload'])) ? $MY_ALLOW_UPLOAD = $_SESSION[$MY_NAME]['AllowUpload'] : $MY_ALLOW_UPLOAD = true; ! ! (isset($_SESSION[$MY_NAME]['MaxFileSize'])) ? $MY_MAX_FILE_SIZE = $_SESSION[$MY_NAME]['MaxFileSize'] : $MY_MAX_FILE_SIZE = 2*1024*1024; ! (isset($_SESSION[$MY_NAME]['Lang'])) ? $MY_LANG = $_SESSION[$MY_NAME]['Lang'] : $MY_LANG = 'en'; ! (isset($_SESSION[$MY_NAME]['Charset'])) ? $MY_CHARSET = $_SESSION[$MY_NAME]['Charset'] : $MY_CHARSET = 'iso-8859-1'; ! (isset($_SESSION[$MY_NAME]['DateTimeFormat'])) ? $MY_DATETIME_FORMAT = $_SESSION[$MY_NAME]['DateTimeFormat'] : $MY_DATETIME_FORMAT = "d.m.Y H:i"; ! (isset($_SESSION[$MY_NAME]['LinkFormat'])) ? $MY_LINK_FORMAT = $_SESSION[$MY_NAME]['LinkFormat'] : $MY_LINK_FORMAT = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="IF_URL" border="0"> <a href="IF_URL">IF_CAPTION</a> <span style="font-size:70%">IF_SIZE IF_DATE</span></span> '; ! */ ! ! ! // DO NOT EDIT BELOW ! $MY_NAME = 'inserfiledialog'; ! $lang_file = 'lang/lang-'.$MY_LANG.'.php'; ! if (is_file($lang_file)) { ! require($lang_file); ! } else { ! require('lang/lang-en.php'); ! } ! $MY_PATH = '/'; ! $MY_UP_PATH = '/'; ! ! ?> \ No newline at end of file |