mise a jour pour mtweb.0.9.0
[mw_pages] / app / out / default / tiny_mce / plugins / tinybrowser / config_tinybrowser.php
diff --git a/app/out/default/tiny_mce/plugins/tinybrowser/config_tinybrowser.php b/app/out/default/tiny_mce/plugins/tinybrowser/config_tinybrowser.php
new file mode 100644 (file)
index 0000000..7a54e23
--- /dev/null
@@ -0,0 +1,126 @@
+<?php\r
+
+/*\r
+TinyBrowser 1.41 - A TinyMCE file browser (C) 2008  Bryn Jones\r
+(author website - http://www.lunarvis.com)\r
+\r
+    This program is free software: you can redistribute it and/or modify\r
+    it under the terms of the GNU General Public License as published by\r
+    the Free Software Foundation, either version 3 of the License, or\r
+    (at your option) any later version.\r
+\r
+    This program is distributed in the hope that it will be useful,\r
+    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+    GNU General Public License for more details.\r
+\r
+    You should have received a copy of the GNU General Public License\r
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
+*/\r
+\r
+// switch off error handling, to use custom handler\r
+error_reporting(0); \r
+\r
+// set script time out higher, to help with thumbnail generation\r
+set_time_limit(240);\r
+\r
+$tinybrowser = array();\r
+\r
+// Session control and security check - to enable please uncomment\r
+if(isset($_GET['sessidpass'])) session_id($_GET['sessidpass']); // workaround for Flash session bug\r
+session_start();\r
+$tinybrowser['sessioncheck'] = 'upload_dir'; //name of session variable to check\r
+\r
+// Random string used to secure Flash upload if session control not enabled - be sure to change!\r
+$tinybrowser['obfuscate'] = 'yeah';\r
+\r
+// Set default language (ISO 639-1 code)\r
+$tinybrowser['language'] = 'fr';\r
+\r
+// Set the integration type (TinyMCE is default)\r
+$tinybrowser['integration'] = 'tinymce'; // Possible values: 'tinymce', 'fckeditor'\r
+\r
+// Default is rtrim($_SERVER['DOCUMENT_ROOT'],'/') (suitable when using absolute paths, but can be set to '' if using relative paths)\r
+$tinybrowser['docroot'] = rtrim($_SERVER['DOCUMENT_ROOT'],'/');
+//$tinybrowser['docroot'] = '';\r
+\r
+// Folder permissions for Unix servers only\r
+$tinybrowser['unixpermissions'] = 0777;\r
+\r
+// File upload paths (set to absolute by default)\r
+
+$tinybrowser['path']['image'] = $_SESSION["upload_dir"].'/images/'; // Image files location - also creates a '_thumbs' subdirectory within this path to hold the image thumbnails\r
+$tinybrowser['path']['media'] = $_SESSION["upload_dir"].'/media/'; // Media files location\r
+$tinybrowser['path']['file']  = $_SESSION["upload_dir"].'/files/'; // Other files location
+
+/*
+$tinybrowser['path']['image'] = $pz_user_dir."/images/";\r$tinybrowser['path']['media'] = $pz_user_dir."/media";\r$tinybrowser['path']['file']  = $pz_user_dir."/files";\r
+*/
+
+// File link paths - these are the paths that get passed back to TinyMCE or your application (set to equal the upload path by default)\r
+$tinybrowser['link']['image'] = $tinybrowser['path']['image']; // Image links\r
+$tinybrowser['link']['media'] = $tinybrowser['path']['media']; // Media links\r
+$tinybrowser['link']['file']  = $tinybrowser['path']['file']; // Other file links\r
+\r
+// File upload size limit (0 is unlimited)\r
+$tinybrowser['maxsize']['image'] = 0; // Image file maximum size\r
+$tinybrowser['maxsize']['media'] = 0; // Media file maximum size\r
+$tinybrowser['maxsize']['file']  = 0; // Other file maximum size\r
+\r
+// Image automatic resize on upload (0 is no resize)\r
+$tinybrowser['imageresize']['width']  = 0;\r
+$tinybrowser['imageresize']['height'] = 0;\r
+\r
+// Image thumbnail source (set to 'path' by default - shouldn't need changing)\r
+$tinybrowser['thumbsrc'] = 'path'; // Possible values: path, link\r
+\r
+// Image thumbnail size in pixels\r
+$tinybrowser['thumbsize'] = 80;\r
+\r
+// Image and thumbnail quality, higher is better (1 to 99)\r
+$tinybrowser['imagequality'] = 80; // only used when resizing or rotating\r
+$tinybrowser['thumbquality'] = 80;\r
+\r
+// Date format, as per php date function\r
+$tinybrowser['dateformat'] = 'd/m/Y H:i';\r
+\r
+// Permitted file extensions\r
+$tinybrowser['filetype']['image'] = '*.jpg, *.jpeg, *.gif, *.png'; // Image file types\r
+$tinybrowser['filetype']['media'] = '*.swf, *.dcr, *.mov, *.qt, *.mpg, *.mp3, *.mp4, *.mpeg, *.avi, *.wmv, *.wm, *.asf, *.asx, *.wmx, *.wvx, *.rm, *.ra, *.ram'; // Media file types\r
+$tinybrowser['filetype']['file']  = '*.*'; // Other file types\r
+\r
+// Prohibited file extensions\r
+$tinybrowser['prohibited'] = array('php','php3','php4','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi', 'sh', 'py','asa','asax','config','com','inc');\r
+\r
+// Default file sort\r
+$tinybrowser['order']['by']   = 'name'; // Possible values: name, size, type, modified\r
+$tinybrowser['order']['type'] = 'asc'; // Possible values: asc, desc\r
+\r
+// Default image view method\r
+$tinybrowser['view']['image'] = 'thumb'; // Possible values: thumb, detail\r
+\r
+// File Pagination - split results into pages (0 is none)\r
+$tinybrowser['pagination'] = 0;\r
+\r
+// TinyMCE dialog.css file location, relative to tinybrowser.php (can be set to absolute link)\r
+$tinybrowser['tinymcecss'] = '../../themes/advanced/skins/default/dialog.css';\r
+\r
+// TinyBrowser pop-up window size\r
+$tinybrowser['window']['width']  = 770;\r
+$tinybrowser['window']['height'] = 480;\r
+\r
+// Assign Permissions for Upload, Edit, Delete & Folders\r
+$tinybrowser['allowupload']  = true;\r
+$tinybrowser['allowedit']    = true;\r
+$tinybrowser['allowdelete']  = true;\r
+$tinybrowser['allowfolders'] = true;\r
+\r
+// Clean filenames on upload\r
+$tinybrowser['cleanfilename'] = true;\r
+\r
+// Set default action for edit page\r
+$tinybrowser['defaultaction'] = 'delete'; // Possible values: delete, rename, move\r
+\r
+// Set delay for file process script, only required if server response is slow\r
+$tinybrowser['delayprocess'] = 0; // Value in seconds\r
+?>\r