Advertisement
Guest User

Untitled

a guest
Jul 15th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Configure SilverStripe from the _ss_environment.php file.
  5. *
  6. * Edit this file and rename from _ss_environment.sample.php to _ss_environment.php.
  7. * Put "require_once('conf/ConfigureFromEnv.php');" into your _config.php file.
  8. * http://doc.silverstripe.org/framework/en/trunk/topics/environment-management
  9. */
  10.  
  11. /**
  12. * The environment type: dev, test or live.
  13. */
  14. define('SS_ENVIRONMENT_TYPE', 'dev');
  15.  
  16. /* set time zone */
  17. date_default_timezone_set('Montreal/America');
  18.  
  19. /**
  20. * The username of the default admin - this is a non-database user with administrative privileges.
  21. */
  22. define('SS_DEFAULT_ADMIN_USERNAME', 'admin');
  23.  
  24. /**
  25. * The password of the default admin.
  26. */
  27. define('SS_DEFAULT_ADMIN_PASSWORD', 'dev');
  28.  
  29. /**
  30. * Protect the site with basic auth (good for test sites)
  31. */
  32. define('SS_USE_BASIC_AUTH', false);
  33.  
  34. /**
  35. * The database class to use, MySQLDatabase, MSSQLDatabase, etc. defaults to MySQLDatabase
  36. */
  37. define('SS_DATABASE_CLASS', 'MySQLDatabase');
  38.  
  39. /**
  40. * The database server to use, defaulting to localhost
  41. */
  42. define('SS_DATABASE_SERVER', 'localhost');
  43.  
  44. /**
  45. * The database username (mandatory)
  46. */
  47. define('SS_DATABASE_USERNAME', 'username');
  48.  
  49. /**
  50. * The database password (mandatory)
  51. */
  52. define('SS_DATABASE_PASSWORD', 'password');
  53.  
  54. /**
  55. * Set the database name.
  56. * Assumes the $database global variable in your config is missing or empty.
  57. */
  58. define('SS_DATABASE_NAME', 'yourdatabasename');
  59.  
  60. /**
  61. * Boolean/Int. If set, then the system will choose a default database name for you if one isn't give in the $database variable.
  62. * The database name will be "SS_" followed by the name of the folder into which you have installed SilverStripe.
  63. * If this is enabled, it means that the phpinstaller will work out of the box without the installer needing to alter any files.
  64. * This helps prevent accidental changes to the environment.
  65. * If SS_DATABASE_CHOOSE_NAME is an integer greater than one, then an ancestor folder will be used for the database name.
  66. * This is handy for a site that's hosted from /sites/examplesite/www or /buildbot/allmodules-2.3/build.
  67. * If it's 2, the parent folder will be chosen; if it's 3 the grandparent, and so on.
  68. */
  69. define('SS_DATABASE_CHOOSE_NAME', false);
  70.  
  71. /**
  72. * Specify database port.
  73. */
  74. //define('SS_DATABASE_PORT', '');
  75.  
  76. /**
  77. * A prefix to add to the database name.
  78. */
  79. //define('SS_DATABASE_SUFFIX', '');
  80.  
  81. /**
  82. * Set the database timezone to something other than the system timezone
  83. */
  84. //define('SS_DATABASE_TIMEZONE', '');
  85.  
  86. /**
  87. * Absolute file path to store temporary files such as cached templates or the class manifest.
  88. * Needs to be writeable by the webserver user. Defaults to sys_get_temp_dir(), and falls back to silverstripe-cache in the webroot.
  89. * See getTempFolder() in framework/core/Core.php
  90. */
  91. //define('TEMP_FOLDER', '');
  92.  
  93. /**
  94. * Set the directory to store assets, defaults to `assets`.
  95. */
  96. //define('ASSETS_DIR', 'assets');
  97.  
  98. /**
  99. * Alternatively, set the full path to store assets, defaults to `BASE_PATH . '/' . ASSETS_DIR`.
  100. */
  101. //define('ASSETS_PATH', '');
  102.  
  103. /**
  104. * This causes errors to be written to the silverstripe.log file in the same directory as this file.
  105. */
  106. define('SS_ERROR_LOG', 'silverstripe.log');
  107.  
  108. /**
  109. * If you set this define, all emails will be redirected to this address.
  110. */
  111. //define('SS_SEND_ALL_EMAILS_TO', '');
  112.  
  113. /**
  114. * If you set this define, all emails will be send from this address.
  115. */
  116. //define('SS_SEND_ALL_EMAILS_FROM', '');
  117.  
  118. /**
  119. * This is used by sake to know which directory points to which URL
  120. */
  121. //global $_FILE_TO_URL_MAPPING;
  122. //$_FILE_TO_URL_MAPPING['/var/www/silverstripe'] = 'http://silverstripe.dev';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement