XOOPS  2.6.0
config.ref.php
Go to the documentation of this file.
1 <?php
2 session_start();
3 mb_internal_encoding('UTF-8');
4 //------------------------------------------------------------------------------
5 // DON'T COPY THIS VARIABLES IN FOLDERS config.php FILES
6 //------------------------------------------------------------------------------
7 
8 //**********************
9 //Path configuration
10 //**********************
11 // In this configuration the folder tree is
12 // root
13 // |- source <- upload folder
14 // |- thumbs <- thumbnail folder [must have write permission (755)]
15 // |- filemanager
16 // |- js
17 // | |- tinymce
18 // | | |- plugins
19 // | | | |- responsivefilemanager
20 // | | | | |- plugin.min.js
21 
22 $base_url ="http://".$_SERVER['HTTP_HOST']; // DON'T TOUCH (base url (only domain) of site (without final /)).
23 $upload_dir = '/source/'; // path from base_url to base of upload folder (with start and final /)
24 $current_path = '../source/'; // relative path from filemanager folder to upload folder (with final /)
25 //thumbs folder can't put inside upload folder
26 $thumbs_base_path = '../thumbs/'; // relative path from filemanager folder to thumbs folder (with final /)
27 
28 //--------------------------------------------------------------------------------------------------------
29 // YOU CAN COPY AND CHANGE THESE VARIABLES INTO FOLDERS config.php FILES TO CUSTOMIZE EACH FOLDER OPTIONS
30 //--------------------------------------------------------------------------------------------------------
31 
32 $MaxSizeUpload = 100; //Mb
33 
34 // SERVER OVERRIDE
35 if ((int)(ini_get('post_max_size')) < $MaxSizeUpload){
36  $MaxSizeUpload = (int)(ini_get('post_max_size'));
37 }
38 
39 $default_language = "en_EN"; //default language file name
40 $icon_theme = "ico"; //ico or ico_dark you can cusatomize just putting a folder inside filemanager/img
41 $show_folder_size = TRUE; //Show or not show folder size in list view feature in filemanager (is possible, if there is a large folder, to greatly increase the calculations)
42 $show_sorting_bar = TRUE; //Show or not show sorting feature in filemanager
43 $loading_bar = TRUE; //Show or not show loading bar
44 $transliteration = FALSE; //active or deactive the transliteration (mean convert all strange characters in A..Za..z0..9 characters)
45 
46 //*******************************************
47 //Images limit and resizing configuration
48 //*******************************************
49 
50 // set maximum pixel width and/or maximum pixel height for all images
51 // If you set a maximum width or height, oversized images are converted to those limits. Images smaller than the limit(s) are unaffected
52 // if you don't need a limit set both to 0
55 
56 //Automatic resizing //
57 // If you set $image_resizing to TRUE the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension
58 // If you set width or height to 0 the script automatically calculates the other dimension
59 // Is possible that if you upload very big images the script not work to overcome this increase the php configuration of memory and time limit
63 
64 //******************
65 // Default layout setting
66 //
67 // 0 => boxes
68 // 1 => detailed list (1 column)
69 // 2 => columns list (multiple columns depending on the width of the page)
70 // YOU CAN ALSO PASS THIS PARAMETERS USING SESSION VAR => $_SESSION['RF']["VIEW"]=
71 //
72 //******************
74 
75 //set if the filename is truncated when overflow first row
77 
78 //*************************
79 //Permissions configuration
80 //******************
88 $copy_cut_files = TRUE; // for copy/cut files
89 $copy_cut_dirs = TRUE; // for copy/cut directories
90 
91 
92 // defines size limit for paste in MB / operation
93 // set 'FALSE' for no limit
95 // defines file count limit for paste / operation
96 // set 'FALSE' for no limit
98 //IF any of these limits reached, operation won't start and generate warning
99 
100 //**********************
101 //Allowed extensions (lowercase insert)
102 //**********************
103 $ext_img = array('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg'); //Images
104 $ext_file = array('doc', 'docx','rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv','html','xhtml','psd','sql','log','fla','xml','ade','adp','mdb','accdb','ppt','pptx','odt','ots','ott','odb','odg','otp','otg','odf','ods','odp','css','ai'); //Files
105 $ext_video = array('mov', 'mpeg', 'mp4', 'avi', 'mpg','wma',"flv","webm"); //Video
106 $ext_music = array('mp3', 'm4a', 'ac3', 'aiff', 'mid','ogg','wav'); //Audio
107 $ext_misc = array('zip', 'rar','gz','tar','iso','dmg'); //Archives
108 
109 $ext = array_merge($ext_img, $ext_file, $ext_misc, $ext_video,$ext_music); //allowed extensions
110 
111 /******************
112  * AVIARY config
113 *******************/
115 $aviary_key = "dvh8qudbp6yx2bnp";
116 $aviary_secret = "m6xaym5q42rpw433";
119 
120 
121 //The filter and sorter are managed through both javascript and php scripts because if you have a lot of
122 //file in a folder the javascript script can't sort all or filter all, so the filemanager switch to php script.
123 //The plugin automatic swich javascript to php when the current folder exceeds the below limit of files number
125 
126 //**********************
127 // Hidden files and folders
128 //**********************
129 // set the names of any folders you want hidden (eg "hidden_folder1", "hidden_folder2" ) Remember all folders with these names will be hidden (you can set any exceptions in config.php files on folders)
130 $hidden_folders = array();
131 // set the names of any files you want hidden. Remember these names will be hidden in all folders (eg "this_document.pdf", "that_image.jpg" )
132 $hidden_files = array('config.php');
133 
134 /*******************
135  * JAVA upload
136  *******************/
139 
140 
141 //************************************
142 //Thumbnail for external use creation
143 //************************************
144 
145 
146 // New image resized creation with fixed path from filemanager folder after uploading (thumbnails in fixed mode)
147 // If you want create images resized out of upload folder for use with external script you can choose this method,
148 // You can create also more than one image at a time just simply add a value in the array
149 // Remember than the image creation respect the folder hierarchy so if you are inside source/test/test1/ the new image will create at
150 // path_from_filemanager/test/test1/
151 // PS if there isn't write permission in your destination folder you must set it
152 $fixed_image_creation = FALSE; //activate or not the creation of one or more image resized with fixed path from filemanager folder
153 $fixed_path_from_filemanager = array('../test/','../test1/'); //fixed path of the image folder from the current position on upload folder
154 $fixed_image_creation_name_to_prepend = array('','test_'); //name to prepend on filename
155 $fixed_image_creation_to_append = array('_test',''); //name to appendon filename
156 $fixed_image_creation_width = array(300,400); //width of image (you can leave empty if you set height)
157 $fixed_image_creation_height = array(200,''); //height of image (you can leave empty if you set width)
158 
159 
160 // New image resized creation with relative path inside to upload folder after uploading (thumbnails in relative mode)
161 // With Responsive filemanager you can create automatically resized image inside the upload folder, also more than one at a time
162 // just simply add a value in the array
163 // The image creation path is always relative so if i'm inside source/test/test1 and I upload an image, the path start from here
164 $relative_image_creation = FALSE; //activate or not the creation of one or more image resized with relative path from upload folder
165 $relative_path_from_current_pos = array('thumb/','thumb/'); //relative path of the image folder from the current position on upload folder
166 $relative_image_creation_name_to_prepend= array('','test_'); //name to prepend on filename
167 $relative_image_creation_name_to_append = array('_test',''); //name to append on filename
168 $relative_image_creation_width = array(300,400); //width of image (you can leave empty if you set height)
169 $relative_image_creation_height = array(200,''); //height of image (you can leave empty if you set width)
170 
171 ?>
$aviary_key
Definition: config.ref.php:115
$fixed_image_creation_width
Definition: config.ref.php:156
$fixed_image_creation_to_append
Definition: config.ref.php:155
$file_number_limit_js
Definition: config.ref.php:124
$fixed_path_from_filemanager
Definition: config.ref.php:153
$duplicate_files
Definition: config.ref.php:87
$upload_dir
Definition: config.ref.php:23
$copy_cut_dirs
Definition: config.ref.php:89
$relative_image_creation
Definition: config.ref.php:164
$transliteration
Definition: config.ref.php:44
$image_resizing_height
Definition: config.ref.php:62
$fixed_image_creation_height
Definition: config.ref.php:157
$upload_files
Definition: config.ref.php:84
$relative_image_creation_name_to_append
Definition: config.ref.php:167
$image_max_height
Definition: config.ref.php:54
$show_sorting_bar
Definition: config.ref.php:42
$ext_misc
Definition: config.ref.php:107
$show_folder_size
Definition: config.ref.php:41
$icon_theme
Definition: config.ref.php:40
$thumbs_base_path
Definition: config.ref.php:26
$java_upload
Definition: config.ref.php:137
$aviary_secret
Definition: config.ref.php:116
$ext_file
Definition: config.ref.php:104
$relative_image_creation_name_to_prepend
Definition: config.ref.php:166
$base_url
Definition: config.ref.php:22
$copy_cut_max_size
Definition: config.ref.php:94
$image_resizing_width
Definition: config.ref.php:61
$aviary_language
Definition: config.ref.php:118
$copy_cut_files
Definition: config.ref.php:88
$loading_bar
Definition: config.ref.php:43
$image_max_width
Definition: config.ref.php:53
$hidden_folders
Definition: config.ref.php:130
$ext
Definition: config.ref.php:109
$fixed_image_creation_name_to_prepend
Definition: config.ref.php:154
$JAVAMaxSizeUpload
Definition: config.ref.php:138
$aviary_version
Definition: config.ref.php:117
$ellipsis_title_after_first_row
Definition: config.ref.php:76
$delete_files
Definition: config.ref.php:81
$ext_video
Definition: config.ref.php:105
$ext_music
Definition: config.ref.php:106
$aviary_active
Definition: config.ref.php:114
$relative_image_creation_width
Definition: config.ref.php:168
$fixed_image_creation
Definition: config.ref.php:152
$relative_image_creation_height
Definition: config.ref.php:169
$copy_cut_max_count
Definition: config.ref.php:97
$MaxSizeUpload
Definition: config.ref.php:32
$delete_folders
Definition: config.ref.php:83
$rename_folders
Definition: config.ref.php:86
$hidden_files
Definition: config.ref.php:132
$default_view
Definition: config.ref.php:73
$create_folders
Definition: config.ref.php:82
$relative_path_from_current_pos
Definition: config.ref.php:165
$current_path
Definition: config.ref.php:24
if((int)(ini_get('post_max_size'))< $MaxSizeUpload) $default_language
Definition: config.ref.php:39
$rename_files
Definition: config.ref.php:85
$image_resizing
Definition: config.ref.php:60
$ext_img
Definition: config.ref.php:103