Advertisement
Guest User

Untitled

a guest
Sep 26th, 2018
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
  4. * This file is part of Pydio.
  5. *
  6. * Pydio is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Pydio is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with Pydio. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. * The latest code can be found at <https://pydio.com>.
  20. *
  21. * Description : configuration file
  22. * BASIC REPOSITORY CONFIGURATION.
  23. * The standard repository will point to the data path (ajaxplorer/data by default), folder "files"
  24. * Use the GUI to add new repositories.
  25. * + Log in as "admin" and open the "Settings" Repository
  26. */
  27. defined('AJXP_EXEC') or die( 'Access not allowed');
  28.  
  29. /*
  30. $REPOSITORIES[0] = array(
  31. "DISPLAY" => "Default Files",
  32. "DISPLAY_ID" => 430,
  33. "DESCRIPTION_ID"=> 475,
  34. "AJXP_SLUG" => "default",
  35. "DRIVER" => "fs",
  36. "DRIVER_OPTIONS"=> array(
  37. "PATH" => "AJXP_DATA_PATH/files",
  38. "CREATE" => true,
  39. "RECYCLE_BIN" => 'recycle_bin',
  40. "CHMOD_VALUE" => '0600',
  41. "DEFAULT_RIGHTS"=> "",
  42. "PAGINATION_THRESHOLD" => 500,
  43. "PAGINATION_NUMBER" => 200,
  44. "META_SOURCES" => array(
  45. "metastore.serial"=> array(
  46. "METADATA_FILE" => ".ajxp_meta",
  47. "METADATA_FILE_LOCATION" => "infolders"
  48. ),
  49. "meta.user" => array(
  50. "meta_fields" => "tags",
  51. "meta_labels" => "Tags",
  52. "meta_visibility" => "hidden"
  53. ),
  54. "meta.filehasher" => array(),
  55. "meta.watch" => array(),
  56. "meta.syncable" => array("REPO_SYNCABLE" => true),
  57. "meta.exif" => array(
  58. "meta_fields" => "COMPUTED_GPS.GPS_Latitude,COMPUTED_GPS.GPS_Longitude",
  59. "meta_labels" => "Latitude,Longitude"
  60. ),
  61. "index.lucene" => array(
  62. "index_meta_fields" => "tags"
  63. ),
  64. )
  65. ),
  66.  
  67. );
  68.  
  69. */
  70. $REPOSITORIES[0] = array(
  71. "DISPLAY" => "My Files",
  72. "DISPLAY_ID" => 432,
  73. "DESCRIPTION_ID"=> 476,
  74. "AJXP_SLUG" => "my-files",
  75. "DRIVER" => "fs",
  76. "DRIVER_OPTIONS"=> array(
  77. "PATH" => "E:/DatosUsuarios/AJXP_USER",
  78. "CREATE" => true,
  79. "RECYCLE_BIN" => '',
  80. "CHMOD_VALUE" => '0600',
  81. "DEFAULT_RIGHTS"=> "rw",
  82. "PAGINATION_THRESHOLD" => 500,
  83. "PAGINATION_NUMBER" => 200,
  84. "META_SOURCES" => array(
  85. "meta.quota" => array (
  86. "DEFAULT_QUOTA" => "2G",
  87. "CACHE_QUOTA" => false
  88. ),
  89. "metastore.serial"=> array(
  90. "METADATA_FILE" => ".ajxp_meta",
  91. "METADATA_FILE_LOCATION" => "infolders"
  92. ),
  93. "meta.user" => array(
  94. "meta_fields" => "tags",
  95. "meta_labels" => "Tags",
  96. "meta_visibility" => "hidden"
  97. ),
  98. "meta.filehasher" => array(),
  99. "meta.watch" => array(),
  100. "meta.syncable" => array("REPO_SYNCABLE" => true),
  101. "meta.exif" => array(
  102. "meta_fields" => "COMPUTED_GPS.GPS_Latitude,COMPUTED_GPS.GPS_Longitude",
  103. "meta_labels" => "Latitude,Longitude"
  104. ),
  105. "index.lucene" => array(
  106. "index_meta_fields" => "tags",
  107. "repository_specific_keywords" => "AJXP_USER",
  108. )
  109. )
  110. ),
  111.  
  112. );
  113.  
  114. // DO NOT REMOVE THIS!
  115. $REPOSITORIES["ajxp_home"] = array(
  116. "DISPLAY" => "Welcome",
  117. "AJXP_SLUG" => "welcome",
  118. "DISPLAY_ID" => "user_home.title",
  119. "DESCRIPTION_ID" => "user_home.desc",
  120. "DRIVER" => "ajxp_home",
  121. "DRIVER_OPTIONS" => array(
  122. "DEFAULT_RIGHTS" => "rw"
  123. )
  124. );
  125.  
  126. $REPOSITORIES["inbox"] = array(
  127. "DISPLAY" => "Inbox",
  128. "DISPLAY_ID" => "inbox_driver.12",
  129. "DESCRIPTION_ID" => "inbox_driver.13",
  130. "AJXP_SLUG" => "inbox",
  131. "DRIVER" => "inbox",
  132. "DRIVER_OPTIONS" => array(
  133. "DEFAULT_RIGHTS" => "r",
  134. "META_SOURCES" => array(
  135. "metastore.serial"=> array(
  136. "METADATA_FILE" => ".ajxp_meta",
  137. "METADATA_FILE_LOCATION" => "infolders"
  138. ),
  139. "meta.watch" => array()
  140. )
  141. )
  142. );
  143.  
  144. // ADMIN REPOSITORY
  145. $REPOSITORIES["ajxp_conf"] = array(
  146. "DISPLAY" => "Settings",
  147. "AJXP_SLUG" => "settings",
  148. "DISPLAY_ID" => "165",
  149. "DESCRIPTION_ID" => "506",
  150. "DRIVER" => "ajxp_conf",
  151. "DRIVER_OPTIONS" => array()
  152. );
  153.  
  154. $REPOSITORIES["fs_template"] = array(
  155. "DISPLAY" => "Sample Template",
  156. "DISPLAY_ID" => 431,
  157. "IS_TEMPLATE" => true,
  158. "DRIVER" => "fs",
  159. "DRIVER_OPTIONS"=> array(
  160. "CREATE" => true,
  161. "RECYCLE_BIN" => 'recycle_bin',
  162. "CHMOD_VALUE" => '0600',
  163. "PAGINATION_THRESHOLD" => 500,
  164. "PAGINATION_NUMBER" => 200,
  165. "PURGE_AFTER" => 0,
  166. "CHARSET" => "",
  167. "META_SOURCES" => array(
  168. "metastore.serial"=> array(
  169. "METADATA_FILE" => ".ajxp_meta",
  170. "METADATA_FILE_LOCATION" => "infolders"
  171. ),
  172. "meta.user" => array(
  173. "meta_fields" => "tags",
  174. "meta_labels" => "Tags",
  175. "meta_visibility" => "hidden"
  176. ),
  177. "meta.filehasher" => array(),
  178. "meta.watch" => array(),
  179. "meta.syncable" => array(),
  180. "meta.exif" => array(
  181. "meta_fields" => "COMPUTED_GPS.GPS_Latitude,COMPUTED_GPS.GPS_Longitude",
  182. "meta_labels" => "Latitude,Longitude"
  183. ),
  184. "index.lucene" => array(
  185. "index_meta_fields" => "tags"
  186. )
  187. )
  188. ),
  189.  
  190. );
  191.  
  192. if(!is_file(AJXP_PLUGINS_REPOSITORIES_CACHE)){
  193. $content = "<?php \n";
  194. $boots = glob(AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/*/repositories.php");
  195. if($boots !== false){
  196. foreach($boots as $b){
  197. $content .= 'require_once("'.$b.'");'."\n";
  198. }
  199. }
  200. $resWriteRepoCache = @file_put_contents(AJXP_PLUGINS_REPOSITORIES_CACHE, $content);
  201. }
  202. if(!isSet($resWriteRepoCache) || $resWriteRepoCache === true){
  203. include_once(AJXP_PLUGINS_REPOSITORIES_CACHE);
  204. }
Advertisement
RAW Paste Data Copied
Advertisement