config.development.php (6578B)
1 <?php 2 3 /** 4 * Configuration for DEVELOPMENT environment 5 * To create another configuration set just copy this file to config.production.php etc. You get the idea :) 6 */ 7 8 /** 9 * Configuration for: Error reporting 10 * Useful to show every little problem during development, but only show hard / no errors in production. 11 * It's a little bit dirty to put this here, but who cares. For development purposes it's totally okay. 12 */ 13 error_reporting(E_ALL); 14 ini_set("display_errors", 1); 15 16 /** 17 * Configuration for cookie security 18 * Quote from PHP manual: Marks the cookie as accessible only through the HTTP protocol. This means that the cookie 19 * won't be accessible by scripting languages, such as JavaScript. This setting can effectively help to reduce identity 20 * theft through XSS attacks (although it is not supported by all browsers). 21 * 22 * IMPORTANT: This will 23 * 24 * @see php.net/manual/en/session.configuration.php#ini.session.cookie-httponly 25 */ 26 ini_set('session.cookie_httponly', 1); 27 28 /** 29 * Returns the full configuration. 30 * This is used by the core/Config class. 31 */ 32 return array( 33 /** 34 * Configuration for: Base URL 35 * This detects your URL/IP incl. sub-folder automatically. You can also deactivate auto-detection and provide the 36 * URL manually. This should then look like 'http://192.168.33.44/' ! Note the slash in the end. 37 */ 38 'URL' => 'http://' . $_SERVER['HTTP_HOST'] . str_replace('public', '', dirname($_SERVER['SCRIPT_NAME'])), 39 /** 40 * Configuration for: Folders 41 * Usually there's no reason to change this. 42 */ 43 #'PATH_CONTROLLER' => realpath(dirname(__FILE__).'/libs/login-base/').'/application/controller/', 44 'PATH_CONTROLLER' => 'libs/login-base/application/controller/', 45 'PATH_VIEW' => 'libs/login-base/application/view/', 46 /** 47 * Configuration for: Avatar paths 48 * Internal path to save avatars. Make sure this folder is writable. The slash at the end is VERY important! 49 */ 50 'PATH_AVATARS' => '/libs/login-base/public/avatars/', 51 'PATH_AVATARS_PUBLIC' => 'avatars/', 52 /** 53 * Configuration for: Default controller and action 54 */ 55 'DEFAULT_CONTROLLER' => 'index', 56 'DEFAULT_ACTION' => 'index', 57 /** 58 * Configuration for: Database 59 * DB_TYPE The used database type. Note that other types than "mysql" might break the db construction currently. 60 * DB_HOST The mysql hostname, usually localhost or 127.0.0.1 61 * DB_NAME The database name 62 * DB_USER The username 63 * DB_PASS The password 64 * DB_PORT The mysql port, 3306 by default (?), find out via phpinfo() and look for mysqli.default_port. 65 * DB_CHARSET The charset, necessary for security reasons. Check Database.php class for more info. 66 */ 67 'DB_TYPE' => 'mysql', 68 'DB_HOST' => '127.0.0.1', 69 'DB_NAME' => 'huge', 70 'DB_USER' => 'root', 71 'DB_PASS' => 'fakepass', 72 'DB_PORT' => '3306', 73 'DB_CHARSET' => 'utf8', 74 /** 75 * Configuration for: Captcha size 76 * The currently used Captcha generator (https://github.com/Gregwar/Captcha) also runs without giving a size, 77 * so feel free to use ->build(); inside CaptchaModel. 78 */ 79 'CAPTCHA_WIDTH' => 359, 80 'CAPTCHA_HEIGHT' => 100, 81 /** 82 * Configuration for: Cookies 83 * 1209600 seconds = 2 weeks 84 * COOKIE_PATH is the path the cookie is valid on, usually "/" to make it valid on the whole domain. 85 * @see http://stackoverflow.com/q/9618217/1114320 86 * @see php.net/manual/en/function.setcookie.php 87 * 88 * COOKIE_DOMAIN: The domain where the cookie is valid for. 89 * COOKIE_DOMAIN mightn't work with "localhost", ".localhost", "127.0.0.1", or ".127.0.0.1". If so, leave it as empty string, false or null. 90 * @see http://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain 91 * @see http://php.net/manual/en/function.setcookie.php#73107 92 * 93 * COOKIE_SECURE: If the cookie will be transferred through secured connection(SSL). It's highly recommended to set it to true if you have secured connection. 94 * COOKIE_HTTP: If set to true, Cookies that can't be accessed by JS - Highly recommended! 95 * SESSION_RUNTIME: How long should a session cookie be valid by seconds, 604800 = 1 week. 96 */ 97 'COOKIE_RUNTIME' => 1209600, 98 'COOKIE_PATH' => '/', 99 'COOKIE_DOMAIN' => "", 100 'COOKIE_SECURE' => false, 101 'COOKIE_HTTP' => true, 102 'SESSION_RUNTIME' => 604800, 103 /** 104 * Configuration for: Avatars/Gravatar support 105 * Set to true if you want to use "Gravatar(s)", a service that automatically gets avatar pictures via using email 106 * addresses of users by requesting images from the gravatar.com API. Set to false to use own locally saved avatars. 107 * AVATAR_SIZE set the pixel size of avatars/gravatars (will be 44x44 by default). Avatars are always squares. 108 * AVATAR_DEFAULT_IMAGE is the default image in public/avatars/ 109 */ 110 'USE_GRAVATAR' => false, 111 'GRAVATAR_DEFAULT_IMAGESET' => 'mm', 112 'GRAVATAR_RATING' => 'pg', 113 'AVATAR_SIZE' => 44, 114 'AVATAR_JPEG_QUALITY' => 85, 115 'AVATAR_DEFAULT_IMAGE' => 'default.jpg', 116 /** 117 * Configuration for: Encryption Keys 118 * 119 */ 120 'ENCRYPTION_KEY' => '6#x0gÊìf^25cL1f$08&', 121 'HMAC_SALT' => '8qk9c^4L6d#15tM8z7n0%', 122 /** 123 * Configuration for: Email server credentials 124 * 125 * Here you can define how you want to send emails. 126 * If you have successfully set up a mail server on your linux server and you know 127 * what you do, then you can skip this section. Otherwise please set EMAIL_USE_SMTP to true 128 * and fill in your SMTP provider account data. 129 * 130 * EMAIL_USED_MAILER: Check Mail class for alternatives 131 * EMAIL_USE_SMTP: Use SMTP or not 132 * EMAIL_SMTP_AUTH: leave this true unless your SMTP service does not need authentication 133 */ 134 'EMAIL_USED_MAILER' => 'phpmailer', 135 'EMAIL_USE_SMTP' => false, 136 'EMAIL_SMTP_HOST' => 'yourhost', 137 'EMAIL_SMTP_AUTH' => true, 138 'EMAIL_SMTP_USERNAME' => 'yourusername', 139 'EMAIL_SMTP_PASSWORD' => 'yourpassword', 140 'EMAIL_SMTP_PORT' => 465, 141 'EMAIL_SMTP_ENCRYPTION' => 'ssl', 142 /** 143 * Configuration for: Email content data 144 */ 145 'EMAIL_PASSWORD_RESET_URL' => 'login/verifypasswordreset', 146 'EMAIL_PASSWORD_RESET_FROM_EMAIL' => 'no-reply@example.com', 147 'EMAIL_PASSWORD_RESET_FROM_NAME' => 'My Project', 148 'EMAIL_PASSWORD_RESET_SUBJECT' => 'Password reset for PROJECT XY', 149 'EMAIL_PASSWORD_RESET_CONTENT' => 'Please click on this link to reset your password: ', 150 'EMAIL_VERIFICATION_URL' => 'login/verify', 151 'EMAIL_VERIFICATION_FROM_EMAIL' => 'no-reply@example.com', 152 'EMAIL_VERIFICATION_FROM_NAME' => 'My Project', 153 'EMAIL_VERIFICATION_SUBJECT' => 'Account activation for PROJECT XY', 154 'EMAIL_VERIFICATION_CONTENT' => 'Please click on this link to activate your account: ', 155 );