Changed gitignore and config

This commit is contained in:
2025-11-24 14:37:37 +01:00
parent 9a888d14c3
commit 823154ef9c
2 changed files with 126 additions and 126 deletions

2
.gitignore vendored
View File

@@ -4,4 +4,4 @@
# don't commit all the dependencies fetched via Composer # don't commit all the dependencies fetched via Composer
/vendor/ /vendor/
.idea/ ./.idea

View File

@@ -28,129 +28,129 @@ ini_set('session.cookie_httponly', 1);
* This is used by the core/Config class. * This is used by the core/Config class.
*/ */
return array( return array(
/** /**
* Configuration for: Base URL * Configuration for: Base URL
* This detects your URL/IP incl. sub-folder automatically. You can also deactivate auto-detection and provide the * This detects your URL/IP incl. sub-folder automatically. You can also deactivate auto-detection and provide the
* URL manually. This should then look like 'http://192.168.33.44/' ! Note the slash in the end. * URL manually. This should then look like 'http://192.168.33.44/' ! Note the slash in the end.
*/ */
'URL' => 'http://' . $_SERVER['HTTP_HOST'] . str_replace('public', '', dirname($_SERVER['SCRIPT_NAME'])), 'URL' => 'http://' . $_SERVER['HTTP_HOST'] . str_replace('public', '', dirname($_SERVER['SCRIPT_NAME'])),
/** /**
* Configuration for: Folders * Configuration for: Folders
* Usually there's no reason to change this. * Usually there's no reason to change this.
*/ */
'PATH_CONTROLLER' => realpath(dirname(__FILE__) . '/../../') . '/application/controller/', 'PATH_CONTROLLER' => realpath(dirname(__FILE__).'/../../') . '/application/controller/',
'PATH_VIEW' => realpath(dirname(__FILE__) . '/../../') . '/application/view/', 'PATH_VIEW' => realpath(dirname(__FILE__).'/../../') . '/application/view/',
/** /**
* Configuration for: Avatar paths * Configuration for: Avatar paths
* Internal path to save avatars. Make sure this folder is writable. The slash at the end is VERY important! * Internal path to save avatars. Make sure this folder is writable. The slash at the end is VERY important!
*/ */
'PATH_AVATARS' => realpath(dirname(__FILE__) . '/../../') . '/public/avatars/', 'PATH_AVATARS' => realpath(dirname(__FILE__).'/../../') . '/public/avatars/',
'PATH_AVATARS_PUBLIC' => 'avatars/', 'PATH_AVATARS_PUBLIC' => 'avatars/',
/** /**
* Configuration for: Default controller and action * Configuration for: Default controller and action
*/ */
'DEFAULT_CONTROLLER' => 'index', 'DEFAULT_CONTROLLER' => 'index',
'DEFAULT_ACTION' => 'index', 'DEFAULT_ACTION' => 'index',
/** /**
* Configuration for: Database * Configuration for: Database
* DB_TYPE The used database type. Note that other types than "mysql" might break the db construction currently. * DB_TYPE The used database type. Note that other types than "mysql" might break the db construction currently.
* DB_HOST The mysql hostname, usually localhost or 127.0.0.1 * DB_HOST The mysql hostname, usually localhost or 127.0.0.1
* DB_NAME The database name * DB_NAME The database name
* DB_USER The username * DB_USER The username
* DB_PASS The password * DB_PASS The password
* DB_PORT The mysql port, 3306 by default (?), find out via phpinfo() and look for mysqli.default_port. * DB_PORT The mysql port, 3306 by default (?), find out via phpinfo() and look for mysqli.default_port.
* DB_CHARSET The charset, necessary for security reasons. Check Database.php class for more info. * DB_CHARSET The charset, necessary for security reasons. Check Database.php class for more info.
*/ */
'DB_TYPE' => 'mysql', 'DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost', 'DB_HOST' => 'localhost',
'DB_NAME' => 'huge', 'DB_NAME' => 'huge',
'DB_USER' => 'root', 'DB_USER' => 'root',
'DB_PASS' => 'root', 'DB_PASS' => 'root',
'DB_PORT' => '3306', 'DB_PORT' => '3306',
'DB_CHARSET' => 'utf8', 'DB_CHARSET' => 'utf8',
/** /**
* Configuration for: Captcha size * Configuration for: Captcha size
* The currently used Captcha generator (https://github.com/Gregwar/Captcha) also runs without giving a size, * The currently used Captcha generator (https://github.com/Gregwar/Captcha) also runs without giving a size,
* so feel free to use ->build(); inside CaptchaModel. * so feel free to use ->build(); inside CaptchaModel.
*/ */
'CAPTCHA_WIDTH' => 359, 'CAPTCHA_WIDTH' => 359,
'CAPTCHA_HEIGHT' => 100, 'CAPTCHA_HEIGHT' => 100,
/** /**
* Configuration for: Cookies * Configuration for: Cookies
* 1209600 seconds = 2 weeks * 1209600 seconds = 2 weeks
* COOKIE_PATH is the path the cookie is valid on, usually "/" to make it valid on the whole domain. * COOKIE_PATH is the path the cookie is valid on, usually "/" to make it valid on the whole domain.
* @see http://stackoverflow.com/q/9618217/1114320 * @see http://stackoverflow.com/q/9618217/1114320
* @see php.net/manual/en/function.setcookie.php * @see php.net/manual/en/function.setcookie.php
* *
* COOKIE_DOMAIN: The domain where the cookie is valid for. Usually this does not work with "localhost", * COOKIE_DOMAIN: The domain where the cookie is valid for. Usually this does not work with "localhost",
* ".localhost", "127.0.0.1", or ".127.0.0.1". If so, leave it as empty string, false or null. * ".localhost", "127.0.0.1", or ".127.0.0.1". If so, leave it as empty string, false or null.
* When using real domains make sure you have a dot (!) in front of the domain, like ".mydomain.com". This is * When using real domains make sure you have a dot (!) in front of the domain, like ".mydomain.com". This is
* strange, but explained here: * strange, but explained here:
* @see http://stackoverflow.com/questions/2285010/php-setcookie-domain * @see http://stackoverflow.com/questions/2285010/php-setcookie-domain
* @see http://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain * @see http://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain
* @see http://php.net/manual/en/function.setcookie.php#73107 * @see http://php.net/manual/en/function.setcookie.php#73107
* *
* 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. * 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.
* COOKIE_HTTP: If set to true, Cookies that can't be accessed by JS - Highly recommended! * COOKIE_HTTP: If set to true, Cookies that can't be accessed by JS - Highly recommended!
* SESSION_RUNTIME: How long should a session cookie be valid by seconds, 604800 = 1 week. * SESSION_RUNTIME: How long should a session cookie be valid by seconds, 604800 = 1 week.
*/ */
'COOKIE_RUNTIME' => 1209600, 'COOKIE_RUNTIME' => 1209600,
'COOKIE_PATH' => '/', 'COOKIE_PATH' => '/',
'COOKIE_DOMAIN' => "", 'COOKIE_DOMAIN' => "",
'COOKIE_SECURE' => false, 'COOKIE_SECURE' => false,
'COOKIE_HTTP' => true, 'COOKIE_HTTP' => true,
'SESSION_RUNTIME' => 604800, 'SESSION_RUNTIME' => 604800,
/** /**
* Configuration for: Avatars/Gravatar support * Configuration for: Avatars/Gravatar support
* Set to true if you want to use "Gravatar(s)", a service that automatically gets avatar pictures via using email * Set to true if you want to use "Gravatar(s)", a service that automatically gets avatar pictures via using email
* addresses of users by requesting images from the gravatar.com API. Set to false to use own locally saved avatars. * addresses of users by requesting images from the gravatar.com API. Set to false to use own locally saved avatars.
* AVATAR_SIZE set the pixel size of avatars/gravatars (will be 44x44 by default). Avatars are always squares. * AVATAR_SIZE set the pixel size of avatars/gravatars (will be 44x44 by default). Avatars are always squares.
* AVATAR_DEFAULT_IMAGE is the default image in public/avatars/ * AVATAR_DEFAULT_IMAGE is the default image in public/avatars/
*/ */
'USE_GRAVATAR' => false, 'USE_GRAVATAR' => false,
'GRAVATAR_DEFAULT_IMAGESET' => 'mm', 'GRAVATAR_DEFAULT_IMAGESET' => 'mm',
'GRAVATAR_RATING' => 'pg', 'GRAVATAR_RATING' => 'pg',
'AVATAR_SIZE' => 44, 'AVATAR_SIZE' => 44,
'AVATAR_JPEG_QUALITY' => 85, 'AVATAR_JPEG_QUALITY' => 85,
'AVATAR_DEFAULT_IMAGE' => 'default.jpg', 'AVATAR_DEFAULT_IMAGE' => 'default.jpg',
/** /**
* Configuration for: Encryption Keys * Configuration for: Encryption Keys
* ENCRYPTION_KEY, HMAC_SALT: Currently used to encrypt and decrypt publicly visible values, like the user id in * ENCRYPTION_KEY, HMAC_SALT: Currently used to encrypt and decrypt publicly visible values, like the user id in
* the cookie. Change these values for increased security, but don't touch if you have no idea what this means. * the cookie. Change these values for increased security, but don't touch if you have no idea what this means.
*/ */
'ENCRYPTION_KEY' => '6#x0gÊìf^25cL1f$08&', 'ENCRYPTION_KEY' => '6#x0gÊìf^25cL1f$08&',
'HMAC_SALT' => '8qk9c^4L6d#15tM8z7n0%', 'HMAC_SALT' => '8qk9c^4L6d#15tM8z7n0%',
/** /**
* Configuration for: Email server credentials * Configuration for: Email server credentials
* *
* Here you can define how you want to send emails. * Here you can define how you want to send emails.
* If you have successfully set up a mail server on your linux server and you know * If you have successfully set up a mail server on your linux server and you know
* what you do, then you can skip this section. Otherwise please set EMAIL_USE_SMTP to true * what you do, then you can skip this section. Otherwise please set EMAIL_USE_SMTP to true
* and fill in your SMTP provider account data. * and fill in your SMTP provider account data.
* *
* EMAIL_USED_MAILER: Check Mail class for alternatives * EMAIL_USED_MAILER: Check Mail class for alternatives
* EMAIL_USE_SMTP: Use SMTP or not * EMAIL_USE_SMTP: Use SMTP or not
* EMAIL_SMTP_AUTH: leave this true unless your SMTP service does not need authentication * EMAIL_SMTP_AUTH: leave this true unless your SMTP service does not need authentication
*/ */
'EMAIL_USED_MAILER' => 'phpmailer', 'EMAIL_USED_MAILER' => 'phpmailer',
'EMAIL_USE_SMTP' => false, 'EMAIL_USE_SMTP' => false,
'EMAIL_SMTP_HOST' => 'yourhost', 'EMAIL_SMTP_HOST' => 'yourhost',
'EMAIL_SMTP_AUTH' => true, 'EMAIL_SMTP_AUTH' => true,
'EMAIL_SMTP_USERNAME' => 'yourusername', 'EMAIL_SMTP_USERNAME' => 'yourusername',
'EMAIL_SMTP_PASSWORD' => 'yourpassword', 'EMAIL_SMTP_PASSWORD' => 'yourpassword',
'EMAIL_SMTP_PORT' => 465, 'EMAIL_SMTP_PORT' => 465,
'EMAIL_SMTP_ENCRYPTION' => 'ssl', 'EMAIL_SMTP_ENCRYPTION' => 'ssl',
/** /**
* Configuration for: Email content data * Configuration for: Email content data
*/ */
'EMAIL_PASSWORD_RESET_URL' => 'login/verifypasswordreset', 'EMAIL_PASSWORD_RESET_URL' => 'login/verifypasswordreset',
'EMAIL_PASSWORD_RESET_FROM_EMAIL' => 'no-reply@example.com', 'EMAIL_PASSWORD_RESET_FROM_EMAIL' => 'no-reply@example.com',
'EMAIL_PASSWORD_RESET_FROM_NAME' => 'My Project', 'EMAIL_PASSWORD_RESET_FROM_NAME' => 'My Project',
'EMAIL_PASSWORD_RESET_SUBJECT' => 'Password reset for PROJECT XY', 'EMAIL_PASSWORD_RESET_SUBJECT' => 'Password reset for PROJECT XY',
'EMAIL_PASSWORD_RESET_CONTENT' => 'Please click on this link to reset your password: ', 'EMAIL_PASSWORD_RESET_CONTENT' => 'Please click on this link to reset your password: ',
'EMAIL_VERIFICATION_URL' => 'register/verify', 'EMAIL_VERIFICATION_URL' => 'register/verify',
'EMAIL_VERIFICATION_FROM_EMAIL' => 'no-reply@example.com', 'EMAIL_VERIFICATION_FROM_EMAIL' => 'no-reply@example.com',
'EMAIL_VERIFICATION_FROM_NAME' => 'My Project', 'EMAIL_VERIFICATION_FROM_NAME' => 'My Project',
'EMAIL_VERIFICATION_SUBJECT' => 'Account activation for PROJECT XY', 'EMAIL_VERIFICATION_SUBJECT' => 'Account activation for PROJECT XY',
'EMAIL_VERIFICATION_CONTENT' => 'Please click on this link to activate your account: ', 'EMAIL_VERIFICATION_CONTENT' => 'Please click on this link to activate your account: ',
); );