PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/config/phpwcms/dist.conf.inc.php

http://phpwcms.googlecode.com/
PHP | 130 lines | 103 code | 11 blank | 16 comment | 0 complexity | b5f4f674d0ec8335c2331d40e25a0308 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1, ISC, MIT, LGPL-3.0, GPL-2.0, MPL-2.0-no-copyleft-exception, LGPL-2.0, BSD-3-Clause
  1. <?php
  2. /**
  3. * phpwcms content management system
  4. *
  5. * @author Oliver Georgi <oliver@phpwcms.de>
  6. * @copyright Copyright (c) 2002-2013, Oliver Georgi
  7. * @license http://opensource.org/licenses/GPL-2.0 GNU GPL-2
  8. * @link http://www.phpwcms.de
  9. *
  10. **/
  11. // phpwcms base values -> needed in any document
  12. // database values
  13. $phpwcms['db_host'] = 'localhost';
  14. $phpwcms['db_user'] = '';
  15. $phpwcms['db_pass'] = '';
  16. $phpwcms['db_table'] = '';
  17. $phpwcms['db_prepend'] = '';
  18. $phpwcms['db_pers'] = 1;
  19. $phpwcms['db_charset'] = 'utf8';
  20. $phpwcms['db_collation'] = 'utf8_general_ci';
  21. $phpwcms['db_version'] = 0;
  22. $phpwcms['db_timezone'] = ''; // set MySQL session time zone http://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html
  23. // site values
  24. $phpwcms['site'] = 'http://'.$_SERVER['SERVER_NAME'].'/';
  25. $phpwcms['site_ssl_mode'] = 0; // turns the SSL Support of WCMS on (1) or off (0), default value 0
  26. $phpwcms['site_ssl_url'] = ''; //URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'
  27. $phpwcms['site_ssl_port'] = 443; //The Port on which you SSL Service serve the secure Sites, default SSL port is 443
  28. $phpwcms['admin_name'] = 'Webmaster';
  29. $phpwcms['admin_user'] = 'admin';
  30. $phpwcms['admin_pass'] = 'acf977c1cfa27a463246f6963055cb11'; //MD5
  31. $phpwcms['admin_email'] = 'noreply@'.str_replace(array('www.', 'WWW.', '/'), '', $_SERVER["HTTP_HOST"]);
  32. // paths
  33. $phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT'];
  34. $phpwcms['root'] = '';
  35. $phpwcms['file_path'] = 'filearchive';
  36. $phpwcms['templates'] = 'template';
  37. $phpwcms['content_path'] = 'content';
  38. $phpwcms['cimage_path'] = 'images';
  39. $phpwcms['ftp_path'] = 'upload';
  40. // content values
  41. $phpwcms['file_maxsize'] = 52428800; // Bytes (50 x 1024 x 1024)
  42. $phpwcms['content_width'] = 538; // max width of the article content column - important for rendering multi column images
  43. $phpwcms['img_list_width'] = 100; // max with of the list thumbnail image
  44. $phpwcms['img_list_height'] = 75; // max height of the list thumbnail image
  45. $phpwcms['img_prev_width'] = 538; // max width of the large preview image
  46. $phpwcms['img_prev_height'] = 538; // max height of the large preview image
  47. $phpwcms['max_time'] = 1800; // logout after max_time/60 seconds
  48. // other stuff
  49. $phpwcms['image_library'] = 'GD2'; // GD, GD2, ImageMagick, GraphicsMagick or GM, NetPBM
  50. $phpwcms['library_path'] = ''; // Path to ImageMagick or NetPBM
  51. $phpwcms['rewrite_url'] = 0; // whether URL should be rewritable
  52. $phpwcms['rewrite_ext'] = '.html'; // The file extension used while URL is rewritten
  53. $phpwcms['alias_allow_slash'] = 0; // Allow slashes / in ALIAS
  54. $phpwcms['wysiwyg_editor'] = 1; // 0 = no wysiwyg editor, 1 = CKEditor 4
  55. $phpwcms['default_lang'] = 'en'; // default language
  56. $phpwcms['DOCTYPE_LANG'] = ''; // by default same as $phpwcms['default_lang'], but can be injected by whatever you like
  57. $phpwcms['allowed_lang'] = array('en', 'de', 'fr', 'es'); //array of allowed languages
  58. $phpwcms['be_lang_parse'] = false; // to disable backend language parsing use false, otherwise 'BBCode' or 'BraceCode'
  59. $phpwcms['charset'] = 'utf-8'; // default charset 'utf-8' do not use soemthing different any longer
  60. $phpwcms['allow_remote_URL'] = 0; // 0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
  61. $phpwcms['jpg_quality'] = 85; // JPG Quality Range 25-100
  62. $phpwcms['sharpen_level'] = 1; // Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
  63. $phpwcms['allow_ext_init'] = 1; // allow including of custom external scripts at frontend initialization
  64. $phpwcms['allow_ext_render'] = 1; // allow including of custom external scripts at frontend rendering
  65. $phpwcms['cache_enabled'] = 0; // cache On/Off - 1 = caching On / 0 = caching Off (default)
  66. $phpwcms['cache_timeout'] = 0; // default cache timeout setting in seconds - 0 = caching Off
  67. $phpwcms['imgext_disabled'] = ''; // comma seperated list of imagetypes which should not be handled 'pdf,ps'
  68. $phpwcms['multimedia_ext'] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
  69. $phpwcms['recipient_count'] = 0;
  70. $phpwcms['inline_download'] = 1; // try to open download document in browser window
  71. $phpwcms['form_tracking'] = 1; // make a db entry for each form
  72. $phpwcms['formmailer_set'] = array('allow_send_copy' => 0, 'global_recipient_email' => 'mail@example.com'); //for better security handling
  73. $phpwcms['allow_cntPHP_rt'] = 0; // allow PHP replacement tags and includes in content parts
  74. $phpwcms['BOTS'] = array('googlebot', 'msnbot', 'bingbot', 'ia_archiver', 'altavista', 'slurp', 'yahoo', 'jeeves', 'teoma', 'lycos', 'crawler');
  75. $phpwcms['mode_XHTML'] = 1; // Doctype: 1 = XHTML 1.0 Transitional, 0 = HTML 4.01 Transitional, 2 = XHTML 1.0 Strict, 3 = HTML5
  76. $phpwcms['header_XML'] = 0; // Content Type: 1 = application/xhtml+xml, 0 = text/html
  77. $phpwcms['IE7-js'] = 0; // load IE7-js - fix for HTML/CSS/PNG bugs in IE
  78. $phpwcms['php_timezone'] = ''; // overwrite PHP default time zone http://php.net/manual/en/timezones.php
  79. $phpwcms['wysiwyg_template'] = array(); // deprecated
  80. $phpwcms['GET_pageinfo'] = 0; // will add "&pageinfo=/cat1/cat2/page-title.htm" based on the breadcrumb information for each site link
  81. $phpwcms['version_check'] = 1; // checks for current release of phpwcms online
  82. $phpwcms['SESSION_FEinit'] = 0; // set 1 to enable sessions in frontend, 0 to disable sessions in frontend
  83. $phpwcms['Login_IPcheck'] = 0;
  84. $phpwcms['frontend_edit'] = 0; // enable content specific direct links - linking direct into the backend
  85. $phpwcms['gd_memcheck_off'] = 0; // disable GD php memory check before resize an image
  86. $phpwcms['enable_chat'] = 0; // enable or disable chat function, by default it is disabled - not recommend anymore to use it
  87. $phpwcms['enable_messages'] = 0; // enable or disable internal messags, by default it is disabled - not recommend anymore to use it
  88. $phpwcms['enable_seolog'] = 1; // enable or disable logging of search engine referrer data
  89. $phpwcms['i18n_parse'] = 1; // enable|disable browser based language parser - all @@Text@@ will be parsed and checked for translation/var based replacement
  90. $phpwcms['i18n_complex'] = 0; // enable|disable the way browser language setting should be used, false = the easier way (always 2 chars "en"), true - "en-gb"...
  91. $phpwcms['FCK_FileBrowser'] = 1; // enable|disable phpwcms Filebrowser in FCKeditor instead of built-in FCK file bowser support
  92. $phpwcms['JW_FLV_License'] = ''; // insert your JW FLV Media Player License Code here - License warning will no longer displayed
  93. $phpwcms['feuser_regkey'] = 'FEUSER';
  94. $phpwcms['login.php'] = 'login.php';
  95. $phpwcms['js_lib'] = array('jquery-1.9'=>'jQuery 1.9','jquery-1.9-migrate'=>'jQuery 1.9 Migrate','jquery-1.8'=>'jQuery 1.8','jquery-1.7'=>'jQuery 1.7','jquery-1.6'=>'jQuery 1.6','jquery-1.5'=>'jQuery 1.5','jquery-1.4'=>'jQuery 1.4','jquery'=>'jQuery 1.3','mootools-1.4'=>'MooTools 1.4','mootools-1.4-compat'=>'MooTools 1.4 Compat','mootools-1.2'=>'MooTools 1.2','mootools-1.1'=>'MooTools 1.1');
  96. $phpwcms['video-js'] = 'http://vjs.zencdn.net/c/'; // can be stored locally too 'template/lib/video-js/ (http://videojs.com/)
  97. $phpwcms['render_device'] = 0; // allow user agent specific rendering templates <!--if:mobile-->DoMobile<!--/if--><!--!if:mobile-->DoNotMobile<!--/!if--><!--!if:default-->Default<!--/!if-->
  98. $phpwcms['detect_pixelratio'] = 0; // will inject the page with JavaScript to detect Retina devices
  99. $phpwcms['im_fix_colorspace'] = 'RGB'; // some ImageMagick installs (on Mac) might have problems with colorspace setting, if colors are not good try SRGB
  100. $phpwcms['wkhtmltopdf_path'] = ''; // used for generating PDF, use full path including application name '/usr/bin/wkhtmltopdf'
  101. $phpwcms['render_clean_html'] = 0; // clean up HTML source a bit, experimental can have unexpected side effects
  102. $phpwcms['browser_check'] = array('fe'=>false, 'be'=>true, 'vs' => ''); // enable Browser Update check in frontend and/or backend, use "vs" to which browser version, see http://www.browser-update.org/index.html#install
  103. $phpwcms['usergroup_support'] = false; // set true or false to support/disable this feature, is experimental
  104. $phpwcms['force301_id2alias'] = false; // send 301 HTTP Redirect when article/structure has alias but ID is given
  105. $phpwcms['force301_2struct'] = false; // send 301 HTTP Redirect to structure level when only 1 article is inside
  106. $phpwcms['allow_empty_alias'] = false; // do not auto-create (default) alias when alias field is empty
  107. $phpwcms['reserved_alias'] = array(); // use this to block custom alias
  108. $phpwcms['enable_deprecated'] = false; // enable/disable deprecated functionality, enable if you miss things
  109. // smtp values
  110. $phpwcms['SMTP_FROM_EMAIL'] = 'info@localhost'; // reply/from email address
  111. $phpwcms['SMTP_FROM_NAME'] = 'My Name'; // reply/from name
  112. $phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
  113. $phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
  114. $phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
  115. $phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
  116. $phpwcms['SMTP_USER'] = 'user'; // default SMTP login (user) name
  117. $phpwcms['SMTP_PASS'] = 'pass'; // default SMTP password
  118. define('PHPWCMS_INCLUDE_CHECK', true);
  119. ?>