arsiarne

config

Oct 25th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  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. $base_url = ''; // base url (only domain) of site (without final /). If you prefer relative urls leave empty
  22. $upload_dir = 'http://localhost/ebook/cdn/source/'; // path from base_url to base of upload folder (with start and final /)
  23. $current_path = '../source/'; // relative path from filemanager folder to upload folder (with final /)
  24. //thumbs folder can't put inside upload folder
  25. $thumbs_base_path = '../thumbs/'; // relative path from filemanager folder to thumbs folder (with final /)
  26.  
  27. //------------------------------------------------------------------------------
  28. // YOU CAN COPY AND CHANGE THESE VARIABLES IN FOLDERS config.php FILES
  29. //------------------------------------------------------------------------------
  30.  
  31. $MaxSizeUpload=100; //Mb
  32.  
  33. $default_language="en_EN"; //default language file name
  34. $icon_theme="ico"; //ico or ico_dark you can cusatomize just putting a folder inside filemanager/img
  35. $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)
  36. $show_sorting_bar=true; //Show or not show sorting feature in filemanager
  37. $loading_bar=true; //Show or not show loading bar
  38.  
  39. //*******************************************
  40. //Images limit and resizing configuration
  41. //*******************************************
  42.  
  43. // set maximum pixel width and/or maximum pixel height for all images
  44. // If you set a maximum width or height, oversized images are converted to those limits. Images smaller than the limit(s) are unaffected
  45. // if you don't need a limit set both to 0
  46. $image_max_width=0;
  47. $image_max_height=0;
  48.  
  49. //Automatic resizing //
  50. // If you set $image_resizing to true the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension
  51. // If you set width or height to 0 the script automatically calculates the other dimension
  52. // 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
  53. $image_resizing=false;
  54. $image_resizing_width=0;
  55. $image_resizing_height=0;
  56.  
  57. //******************
  58. // Default layout setting
  59. //
  60. // 0 => boxes
  61. // 1 => detailed list (1 column)
  62. // 2 => columns list (multiple columns depending on the width of the page)
  63. // YOU CAN ALSO PASS THIS PARAMETERS USING SESSION VAR => $_SESSION["VIEW"]=
  64. //
  65. //******************
  66. $default_view=0;
  67.  
  68. //set if the filename is truncated when overflow first row
  69. $ellipsis_title_after_first_row=true;
  70.  
  71. //*************************
  72. //Permissions configuration
  73. //******************
  74. $delete_files=true;
  75. $create_folders=true;
  76. $delete_folders=true;
  77. $upload_files=true;
  78. $rename_files=true;
  79. $rename_folders=true;
  80.  
  81. //**********************
  82. //Allowed extensions (lowercase insert)
  83. //**********************
  84. $ext_img = array('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg'); //Images
  85. $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
  86. $ext_video = array('mov', 'mpeg', 'mp4', 'avi', 'mpg','wma'); //Video
  87. $ext_music = array('mp3', 'm4a', 'ac3', 'aiff', 'mid','ogg','wav'); //Audio
  88. $ext_misc = array('zip', 'rar','gz','tar','iso','dmg'); //Archives
  89.  
  90. $ext=array_merge($ext_img, $ext_file, $ext_misc, $ext_video,$ext_music); //allowed extensions
  91.  
  92.  
  93. /******************
  94. * AVIARY config
  95. *******************/
  96. $aviary_active=true;
  97. $aviary_key="dvh8qudbp6yx2bnp";
  98. $aviary_secret="m6xaym5q42rpw433";
  99. $aviary_version=3;
  100. $aviary_language='en';
  101.  
  102.  
  103. //The filter and sorter are managed through both javascript and php scripts because if you have a lot of
  104. //file in a folder the javascript script can't sort all or filter all, so the filemanager switch to php script.
  105. //The plugin automatic swich javascript to php when the current folder exceeds the below limit of files number
  106. $file_number_limit_js=500;
  107.  
  108. //**********************
  109. // Hidden files and folders
  110. //**********************
  111. // 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)
  112. $hidden_folders = array();
  113. // 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" )
  114. $hidden_files = array('config.php');
  115.  
  116. /*******************
  117. * JAVA upload
  118. *******************/
  119. $java_upload=true;
  120. $JAVAMaxSizeUpload=200; //Gb
  121.  
  122.  
  123. //************************************
  124. //Thumbnail for external use creation
  125. //************************************
  126.  
  127.  
  128. // New image resized creation with fixed path from filemanager folder after uploading (thumbnails in fixed mode)
  129. // If you want create images resized out of upload folder for use with external script you can choose this method,
  130. // You can create also more than one image at a time just simply add a value in the array
  131. // Remember than the image creation respect the folder hierarchy so if you are inside source/test/test1/ the new image will create at
  132. // path_from_filemanager/test/test1/
  133. // PS if there isn't write permission in your destination folder you must set it
  134. $fixed_image_creation = false; //activate or not the creation of one or more image resized with fixed path from filemanager folder
  135. $fixed_path_from_filemanager = array('../test/','../test1/'); //fixed path of the image folder from the current position on upload folder
  136. $fixed_image_creation_name_to_prepend = array('','test_'); //name to prepend on filename
  137. $fixed_image_creation_to_append = array('_test',''); //name to appendon filename
  138. $fixed_image_creation_width = array(300,400); //width of image (you can leave empty if you set height)
  139. $fixed_image_creation_height = array(200,''); //height of image (you can leave empty if you set width)
  140.  
  141.  
  142. // New image resized creation with relative path inside to upload folder after uploading (thumbnails in relative mode)
  143. // With Responsive filemanager you can create automatically resized image inside the upload folder, also more than one at a time
  144. // just simply add a value in the array
  145. // 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
  146. $relative_image_creation = false; //activate or not the creation of one or more image resized with relative path from upload folder
  147. $relative_path_from_current_pos = array('thumb/','thumb/'); //relative path of the image folder from the current position on upload folder
  148. $relative_image_creation_name_to_prepend= array('','test_'); //name to prepend on filename
  149. $relative_image_creation_name_to_append = array('_test',''); //name to append on filename
  150. $relative_image_creation_width = array(300,400); //width of image (you can leave empty if you set height)
  151. $relative_image_creation_height = array(200,''); //height of image (you can leave empty if you set width)
  152.  
  153. ?>
Advertisement
Add Comment
Please, Sign In to add comment