PageRenderTime 26ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/conf/config-defaults.php

https://github.com/ghoppe/Garden
PHP | 132 lines | 115 code | 8 blank | 9 comment | 1 complexity | 63af27aa298c17bf6c657adacc73f610 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php if (!defined('APPLICATION')) exit();
  2. // DO NOT EDIT THIS FILE.
  3. // If you want to override the settings in this file then edit config.php.
  4. // This is the global application configuration file that sets up default
  5. // values for configuration settings.
  6. $Configuration = array();
  7. $Configuration['EnabledApplications']['Dashboard'] = 'dashboard';
  8. $Configuration['Database']['Engine'] = 'MySQL';
  9. $Configuration['Database']['Host'] = 'dbhost';
  10. $Configuration['Database']['Name'] = 'dbname';
  11. $Configuration['Database']['User'] = 'dbuser';
  12. $Configuration['Database']['Password'] = '';
  13. $Configuration['Database']['ConnectionOptions'] = array(
  14. PDO::ATTR_PERSISTENT => FALSE,
  15. 1000 => TRUE, // PDO::MYSQL_ATTR_USE_BUFFERED_QUERY is missing in some php installations
  16. 1002 => "set names 'utf8'" // PDO::MYSQL_ATTR_INIT_COMMAND is missing in PHP 5.3, so I use the actual value "1002" instead
  17. );
  18. $Configuration['Database']['CharacterEncoding'] = 'utf8';
  19. $Configuration['Database']['DatabasePrefix'] = 'GDN_';
  20. $Configuration['Database']['ExtendedProperties']['Collate'] = 'utf8_unicode_ci';
  21. $Configuration['Cache']['Enabled'] = TRUE;
  22. $Configuration['Cache']['Method'] = 'filecache';
  23. $Configuration['Cache']['Filecache']['Store'] = PATH_CACHE.'/Filecache';
  24. $Configuration['Garden']['ContentType'] = 'text/html';
  25. $Configuration['Garden']['Charset'] = 'utf-8';
  26. // An array of folders the application should never search through when searching for classes. (note: plugins had to be removed so that locale searches could get the locale folder from the plugin's folder).
  27. $Configuration['Garden']['FolderBlacklist'] = array('.', '..', '_svn', '.git');
  28. $Configuration['Garden']['Locale'] = 'en-CA';
  29. $Configuration['Garden']['LocaleCodeset'] = 'UTF8';
  30. $Configuration['Garden']['Title'] = 'Vanilla 2';
  31. $Configuration['Garden']['Domain'] = '';
  32. $Configuration['Garden']['WebRoot'] = FALSE; // You can set this value if you are using htaccess to direct into the application, but the correct webroot isn't being recognized.
  33. $Configuration['Garden']['StripWebRoot'] = FALSE;
  34. $Configuration['Garden']['Debug'] = FALSE;
  35. $Configuration['Garden']['RewriteUrls'] = FALSE;
  36. $Configuration['Garden']['Session']['Length'] = '15 minutes';
  37. $Configuration['Garden']['Cookie']['Salt'] = '';
  38. $Configuration['Garden']['Cookie']['Name'] = 'Vanilla';
  39. $Configuration['Garden']['Cookie']['Path'] = '/';
  40. $Configuration['Garden']['Cookie']['Domain'] = '';
  41. $Configuration['Garden']['Cookie']['HashMethod'] = 'md5'; // md5 or sha1
  42. $Configuration['Garden']['Authenticator']['DefaultScheme'] = 'password'; // Types include 'Password', 'Handshake', 'Openid'
  43. $Configuration['Garden']['Authenticator']['RegisterUrl'] = '/entry/register?Target=%2$s';
  44. $Configuration['Garden']['Authenticator']['SignInUrl'] = '/entry/signin?Target=%2$s';
  45. $Configuration['Garden']['Authenticator']['SignOutUrl'] = '/entry/signout/{Session_TransientKey}?Target=%2$s';
  46. $Configuration['Garden']['Authenticator']['EnabledSchemes'] = array('password');
  47. $Configuration['Garden']['Authenticator']['SyncScreen'] = "smart";
  48. $Configuration['Garden']['Authenticators']['password']['Name'] = "Password";
  49. $Configuration['Garden']['Errors']['LogEnabled'] = FALSE;
  50. $Configuration['Garden']['Errors']['LogFile'] = '';
  51. $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php'; // Used at installation time and you should use it too view when debugging
  52. $Configuration['Garden']['SignIn']['Popup'] = TRUE; // Should the sign-in link pop up or go to it's own page? (SSO requires going to it's own external page)
  53. $Configuration['Garden']['UserAccount']['AllowEdit'] = TRUE; // Allow users to edit their account information? (SSO requires accounts be edited in external system).
  54. $Configuration['Garden']['Registration']['Method'] = 'Captcha'; // Options are: Basic, Captcha, Approval, Invitation
  55. $Configuration['Garden']['Registration']['DefaultRoles'] = array('8'); // The default role(s) to assign new users (4 is "Member")
  56. $Configuration['Garden']['Registration']['ApplicantRoleID'] = 4; // The "Applicant" RoleID.
  57. $Configuration['Garden']['Registration']['InviteExpiration'] = '-1 week'; // The time before now that an invitation expires. ie. If an invitation was sent within the last week, it is still valid. This value will be plugged directly into strtotime()
  58. $Configuration['Garden']['Registration']['InviteRoles'] = 'FALSE';
  59. $Configuration['Garden']['TermsOfService'] = '/dashboard/home/termsofservice'; // The url to the terms of service.
  60. $Configuration['Garden']['Email']['UseSmtp'] = FALSE;
  61. $Configuration['Garden']['Email']['SmtpHost'] = '';
  62. $Configuration['Garden']['Email']['SmtpUser'] = '';
  63. $Configuration['Garden']['Email']['SmtpPassword'] = '';
  64. $Configuration['Garden']['Email']['SmtpPort'] = '25';
  65. $Configuration['Garden']['Email']['SmtpSecurity'] = ''; // ssl/tls
  66. $Configuration['Garden']['Email']['MimeType'] = 'text/plain';
  67. $Configuration['Garden']['Email']['SupportName'] = 'Support';
  68. $Configuration['Garden']['Email']['SupportAddress'] = '';
  69. $Configuration['Garden']['UpdateCheckUrl'] = 'http://vanillaforums.org/addons/update';
  70. $Configuration['Garden']['AddonUrl'] = 'http://vanillaforums.org/addons';
  71. $Configuration['Garden']['CanProcessImages'] = FALSE;
  72. $Configuration['Garden']['Installed'] = FALSE; // Has Garden been installed yet?
  73. $Configuration['Garden']['Forms']['HoneypotName'] = 'hpt';
  74. $Configuration['Garden']['Upload']['MaxFileSize'] = '50M';
  75. $Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('txt','jpg','gif','png','bmp','zip','gz','tar.gz','tgz','psd','ai','fla','swf','pdf','doc','xls','ppt','docx','xlsx','log','pdf');
  76. $Configuration['Garden']['Picture']['MaxHeight'] = 1000;
  77. $Configuration['Garden']['Picture']['MaxWidth'] = 600;
  78. $Configuration['Garden']['Profile']['MaxHeight'] = 1000;
  79. $Configuration['Garden']['Profile']['MaxWidth'] = 250;
  80. $Configuration['Garden']['Preview']['MaxHeight'] = 100;
  81. $Configuration['Garden']['Preview']['MaxWidth'] = 75;
  82. $Configuration['Garden']['Thumbnail']['Size'] = 50;
  83. $Configuration['Garden']['Menu']['Sort'] = array('Dashboard', 'Discussions', 'Questions', 'Activity', 'Applicants', 'Conversations', 'User');
  84. $Configuration['Garden']['DashboardMenu']['Sort'] = array('Dashboard', 'Appearance', 'Banner', 'Themes', 'Theme Options', 'Custom Theme', 'Messages', 'Custom Domain', 'Users', 'Roles & Permissions', 'Registration', 'Applicants', 'Authentication', 'Forum', 'Forum Settings', 'Categories', 'Tagging', 'Voting', 'Spam', 'Flagging', 'Flagged Content', 'Media', 'Signatures', 'Add-ons', 'Addons', 'Plugins', 'Applications', '&lt;Embed&t; Vanilla', 'Locales', 'Site Settings', 'Import');
  85. $Configuration['Garden']['InputFormatter'] = 'Html';
  86. $Configuration['Garden']['Html']['SafeStyles'] = TRUE; // disallow style/class attributes in html to prevent click jacking
  87. $Configuration['Garden']['Search']['Mode'] = 'matchboolean'; // matchboolean, match, boolean, like
  88. $Configuration['Garden']['Theme'] = 'default';
  89. $Configuration['Garden']['MobileTheme'] = 'mobile';
  90. $Configuration['Garden']['Profile']['Public'] = TRUE;
  91. $Configuration['Garden']['Profile']['ShowAbout'] = TRUE;
  92. $Configuration['Garden']['Roles']['Manage'] = TRUE;
  93. $Configuration['Garden']['VanillaUrl'] = 'http://vanillaforums.org';
  94. $Configuration['Garden']['AllowSSL'] = TRUE;
  95. $Configuration['Garden']['PrivateCommunity'] = FALSE;
  96. $Configuration['Garden']['EditContentTimeout'] = -1; // -1 means no timeout. 0 means immediate timeout. > 0 is in seconds.
  97. $Configuration['Garden']['Profile']['EditUsernames'] = FALSE;
  98. $Configuration['Garden']['Modules']['ShowSignedInModule'] = FALSE;
  99. // Formatting
  100. $Configuration['Garden']['Format']['Mentions'] = TRUE;
  101. $Configuration['Garden']['Format']['Hashtags'] = TRUE;
  102. $Configuration['Garden']['Format']['YouTube'] = TRUE;
  103. $Configuration['Garden']['Format']['Vimeo'] = TRUE;
  104. // Default Preferences
  105. $Configuration['Preferences']['Email']['ConversationMessage'] = '1';
  106. $Configuration['Preferences']['Email']['AddedToConversation'] = '1';
  107. $Configuration['Preferences']['Email']['BookmarkComment'] = '1';
  108. $Configuration['Preferences']['Email']['WallComment'] = '0';
  109. $Configuration['Preferences']['Email']['ActivityComment'] = '0';
  110. $Configuration['Preferences']['Email']['DiscussionComment'] = '0';
  111. $Configuration['Preferences']['Email']['DiscussionMention'] = '0';
  112. $Configuration['Preferences']['Email']['CommentMention'] = '0';
  113. // Modules
  114. $Configuration['Modules']['Garden']['Panel'] = array('UserPhotoModule', 'UserInfoModule', 'GuestModule', 'Ads');
  115. $Configuration['Modules']['Garden']['Content'] = array('MessageModule', 'Notices', 'Content', 'Ads');
  116. $Configuration['Modules']['Vanilla']['Panel'] = array('NewDiscussionModule', 'SignedInModule', 'GuestModule', 'Ads');
  117. $Configuration['Modules']['Vanilla']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'Content', 'Ads');
  118. $Configuration['Modules']['Conversations']['Panel'] = array('NewConversationModule', 'SignedInModule', 'GuestModule', 'Ads');
  119. $Configuration['Modules']['Conversations']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'Content', 'Ads');
  120. // Routes
  121. $Configuration['Routes']['DefaultController'] = 'discussions';
  122. $Configuration['Routes']['Default404'] = array('dashboard/home/filenotfound', 'NotFound');
  123. $Configuration['Routes']['DefaultPermission'] = array('dashboard/home/permission', 'NotAuthorized');
  124. $Configuration['Routes']['UpdateMode'] = 'dashboard/home/updatemode';