PageRenderTime 48ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/storecommander/ead6f6fce09/SC/lib/js/ajaxfilemanager/inc/config.tinymce.php

https://gitlab.com/ptisky/API_prestashop
PHP | 152 lines | 45 code | 17 blank | 90 comment | 4 complexity | ce9ddc56c5ea79b415554a4fd3c1dc5f MD5 | raw file
  1. <?php
  2. /**
  3. * Store Commander
  4. *
  5. * @category administration
  6. * @author Store Commander - support@storecommander.com
  7. * @version 2015-09-15
  8. * @uses Prestashop modules
  9. * @since 2009
  10. * @copyright Copyright &copy; 2009-2015, Store Commander
  11. * @license commercial
  12. * All rights reserved! Copying, duplication strictly prohibited
  13. *
  14. * *****************************************
  15. * * STORE COMMANDER *
  16. * * http://www.StoreCommander.com *
  17. * * V 2015-09-15 *
  18. * *****************************************
  19. *
  20. * Compatibility: PS version: 1.1 to 1.6.1
  21. *
  22. **/
  23. /**
  24. * sysem base config setting
  25. * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
  26. * @link www.phpletter.com
  27. * @since 1/August/2007
  28. *
  29. */
  30. error_reporting(E_ALL);
  31. //error_reporting(E_ALL ^ E_NOTICE);
  32. //Access Control Setting
  33. /**
  34. * turn off => false
  35. * by session => true
  36. */
  37. define('CONFIG_ACCESS_CONTROL_MODE', false);
  38. define("CONFIG_LOGIN_USERNAME", 'ajax');
  39. define('CONFIG_LOGIN_PASSWORD', '123456');
  40. define('CONFIG_LOGIN_PAGE', 'ajax_login.php'); //the url to the login page
  41. //SYSTEM MODE CONFIG
  42. /**
  43. * turn it on when you have this system for demo purpose
  44. * that means changes made to each image is not physically applied to it
  45. * and all uploaded files/created folders will be removed automatically
  46. */
  47. define('CONFIG_SYS_DEMO_ENABLE', false);
  48. define('CONFIG_SYS_VIEW_ONLY', false); //diabled the system, view only
  49. define('CONFIG_SYS_THUMBNAIL_VIEW_ENABLE', true);//REMOVE THE thumbnail view if false
  50. //User Permissions
  51. define('CONFIG_OPTIONS_DELETE', true);
  52. define('CONFIG_OPTIONS_CUT', true);
  53. define('CONFIG_OPTIONS_COPY', true);
  54. define('CONFIG_OPTIONS_NEWFOLDER', true);
  55. define('CONFIG_OPTIONS_RENAME', true);
  56. define('CONFIG_OPTIONS_UPLOAD', true); //
  57. define('CONFIG_OPTIONS_EDITABLE', true); //disable image editor and text editor
  58. //FILESYSTEM CONFIG
  59. /*
  60. * CONFIG_SYS_DEFAULT_PATH is the default folder where the files would be uploaded to
  61. and it must be a folder under the CONFIG_SYS_ROOT_PATH or the same folder
  62. these two paths accept relative path only, don't use absolute path
  63. */
  64. define('CONFIG_SYS_DEFAULT_PATH', '../uploaded/'); //accept relative path only
  65. define('CONFIG_SYS_ROOT_PATH', '../uploaded/'); //accept relative path only
  66. define('CONFIG_SYS_FOLDER_SHOWN_ON_TOP', true); //show your folders on the top of list if true or order by name
  67. define("CONFIG_SYS_DIR_SESSION_PATH", 'session/');
  68. define("CONFIG_SYS_PATTERN_FORMAT", 'list'); //three options: reg ,csv, list, this option define the parttern format for the following patterns
  69. /**
  70. * reg => regulare expression
  71. * csv => a list of comma separated file/folder name, (exactly match the specified file/folders)
  72. * list => a list of comma spearated vague file/folder name (partially match the specified file/folders)
  73. *
  74. */
  75. //more details about regular expression please visit http://nz.php.net/manual/en/function.eregi.php
  76. define('CONFIG_SYS_INC_DIR_PATTERN', ''); //force listing of folders with such pattern(s). separated by , if multiple
  77. define('CONFIG_SYS_EXC_DIR_PATTERN', ''); //will prevent listing of folders with such pattern(s). separated by , if multiple
  78. define('CONFIG_SYS_INC_FILE_PATTERN', ''); //force listing of fiels with such pattern(s). separated by , if multiple
  79. define('CONFIG_SYS_EXC_FILE_PATTERN', ''); //will prevent listing of files with such pattern(s). separated by , if multiple
  80. define('CONFIG_SYS_DELETE_RECURSIVE', 1); //delete all contents within a specific folder if set to be 1
  81. //UPLOAD OPTIONS CONFIG
  82. define('CONFIG_UPLOAD_MAXSIZE', 5000 * 1024 ); //by bytes
  83. //define('CONFIG_UPLOAD_MAXSIZE', 2048); //by bytes
  84. //define('CONFIG_UPLOAD_VALID_EXTS', 'txt');//
  85. define('CONFIG_EDITABLE_VALID_EXTS', 'txt,htm,html,xml,js,css'); //make you include all these extension in CONFIG_UPLOAD_VALID_EXTS if you want all valid
  86. define('CONFIG_OVERWRITTEN', false); //overwirte when processing paste
  87. define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,txt'); //
  88. //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,bmp,tif,zip,sit,rar,gz,tar,htm,html,mov,mpg,avi,asf,mpeg,wmv,aif,aiff,wav,mp3,swf,ppt,rtf,doc,pdf,xls,txt,xml,xsl,dtd');//
  89. define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,bmp,txt,jpg,png,tif,html,htm,js,css,xml,xsl,dtd,mp3,wav,wmv,wma,rm,rmvb,mov,swf');
  90. //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,txt'); //
  91. define('CONFIG_UPLOAD_INVALID_EXTS', '');
  92. //Preview
  93. define('CONFIG_IMG_THUMBNAIL_MAX_X', 100);
  94. define('CONFIG_IMG_THUMBNAIL_MAX_Y', 100);
  95. define('CONFIG_THICKBOX_MAX_WIDTH', 580);
  96. define('CONFIG_THICKBOX_MAX_HEIGHT', 430);
  97. /**
  98. * CONFIG_URL_PREVIEW_ROOT was replaced by CONFIG_WEBSITE_DOCUMENT_ROOT since v0.8
  99. * Normally, you don't need to bother with CONFIG_WEBSITE_DOCUMENT_ROOT
  100. * Howerver, some Web Hosts do not have standard php.ini setting
  101. * which you will find the file manager can not locate your files correctly
  102. * if you do have such issue, please change it to fit your system.
  103. * so what should you to do get it
  104. * 1. create a php script file (let's call it document_root.php)
  105. * 2. add the following codes in in
  106. * <?php
  107. * echo dirname(__FILE__);
  108. * ?>
  109. * 3. upload document_root.php to you website root folder which will only be reached when you visit http://www.domain-name.com or http://localhost/ at localhost computer
  110. * 4. run it via http://www.domain-name.com/document_root.php or http://localhost/docuent_root.php if localhost computer, the url has to be exactly like that
  111. * 5. the value shown on the screen is CONFIG_WEBSITE_DOCUMENT_ROOT should be
  112. * 6. enjoy it
  113. *
  114. */
  115. define('CONFIG_WEBSITE_DOCUMENT_ROOT', '');
  116. //theme related setting
  117. /*
  118. * options avaialbe for CONFIG_EDITOR_NAME are:
  119. stand_alone
  120. tinymce
  121. fckeditor
  122. */
  123. //CONFIG_EDITOR_NAME replaced CONFIG_THEME_MODE since @version 0.8
  124. define('CONFIG_EDITOR_NAME', (CONFIG_QUERY_STRING_ENABLE && !empty($_GET['editor'])?secureFileName($_GET['editor']):'stand_alone'));
  125. define('CONFIG_THEME_NAME', (CONFIG_QUERY_STRING_ENABLE && !empty($_GET['theme'])?secureFileName($_GET['theme']):'default')); //change the theme to your custom theme rather than default
  126. define('CONFIG_DEFAULT_VIEW', (CONFIG_SYS_THUMBNAIL_VIEW_ENABLE?'detail':'detail')); //thumnail or detail
  127. define('CONFIG_DEFAULT_PAGINATION_LIMIT', 10);
  128. define('CONFIG_LOAD_DOC_LATTER', false); //all documents will be loaded up after the template has been loaded to the client
  129. //General Option Declarations
  130. //LANGAUGAE DECLARATIONNS
  131. define('CONFIG_LANG_INDEX', 'language'); //the index in the session
  132. define('CONFIG_LANG_DEFAULT', (CONFIG_QUERY_STRING_ENABLE && !empty($_GET['language']) && file_exists(DIR_LANG . secureFileName($_GET['language'] . '.php'))?secureFileName($_GET['language']):'en')); //change it to be your language file base name, such en
  133. ?>