diff options
| author | Eric Johansson (neku) <neku@pomf.se> | 2015-02-05 20:06:08 +0100 |
|---|---|---|
| committer | Eric Johansson (neku) <neku@pomf.se> | 2015-02-05 20:06:08 +0100 |
| commit | b816236168e74309be4a298ff0a4644a732dc9f3 (patch) | |
| tree | 1497dced7d755362dcdfd73b7e11d78b04597f2d /static/includes/settings.inc.php | |
| parent | c359aa20cd0876e1e497aca1ff19e4c54287b6c2 (diff) | |
| parent | fd98101d073805fc42474a00bca640a618f99de6 (diff) | |
Merge pull request #27 from cenci0/master
Minor code refactoring and improvements
Diffstat (limited to 'static/includes/settings.inc.php')
| -rw-r--r-- | static/includes/settings.inc.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/static/includes/settings.inc.php b/static/includes/settings.inc.php index 70c7aec..cb152e8 100644 --- a/static/includes/settings.inc.php +++ b/static/includes/settings.inc.php @@ -1,26 +1,19 @@ <?php -/** - * PDO Connection data - */ + // PDO socket // Or using socket would be even faster then 127.0.0.1 :3 define('POMF_DB_CONN', 'mysql:host=127.0.0.1;dbname=pomf'); -// PDO user +// MySQL user and password define('POMF_DB_USER', 'pomf'); -// PDO password define('POMF_DB_PASS', '***'); -/** - * File stuff - */ // Root location of files define('POMF_FILES_ROOT', '/mnt/disk1/pomf/files/'); -// How many times to retry when exists() before giving up +// Maximum number of iterations while generating a new name define('POMF_FILES_RETRIES', 15); +// URL to prepend to output (include trailing slash) +define('POMF_URL', 'http://a.pomf.se/'); -/** - * Double-dot extensions - */ $doubledots = array_map('strrev', array( 'tar.gz', 'tar.bz', |
