LocalSettings.php.dist
58 lines
| 2.6 KiB
| application/octet-stream
|
TextLexer
| r3 | <?php | |||
| ############################################################################### | ||||
| # LocalSettings.php | ||||
| # Per-server configuration directives for the Megatokyo Website | ||||
| ############################################################################### | ||||
| # For a more detailed description of this file, see the development notes | ||||
| # available at: | ||||
| # http://dev.alpicola.com/projects/megatokyo/wiki/doku.php?id=localsettings.php | ||||
| ############################################################################### | ||||
| define('SITE_PATH_ABS', dirname(__FILE__)); | ||||
| ini_set('default_charset', 'UTF-8'); | ||||
| ini_set('include_path', ini_get('include_path')); | ||||
| ### Advertising System configuration directives ### | ||||
| # Todo | ||||
| ### Database configuration directives ### | ||||
| define('DB_SERVER', '[% DB_SERVER %]'); # Host on which MySQL resides | ||||
| define('DB_NAME', '[% DB_NAME %]'); # Name of the MySQL database | ||||
| define('DB_READ_USER', '[% DB_READ_USER %]'); # Database user with SELECT permission | ||||
| define('DB_READ_PASS', '[% DB_READ_PASS %]'); # Password for above | ||||
| define('DB_WRITE_USER', '[% DB_WRITE_USER %]'); # Database ueer with SELECT, INSERT, | ||||
| # and UPDATE permission | ||||
| define('DB_WRITE_PASS', '[% DB_WRITE_PASS %]'); # Password for above | ||||
| ### Public Interface configuration directives ### | ||||
| define('SITE_HOST', '[% SITE_HOST %]'); # Host on which the interface resides | ||||
| define('SITE_PATH', '[% SITE_PATH %]'); # Relative to DocumentRoot | ||||
| define('SITE_ADMIN', 'admin'); # Relative to SITE_PATH | ||||
| define('SITE_RANT', 'rantimgs'); # Relative to SITE_PATH | ||||
| define('SITE_RANT_ATTACHMENT', 'attachments'); # Relative to SITE_PATH | ||||
| define('SITE_STRIP', 'strips'); # Relative to SITE_PATH | ||||
| define('SITE_STRIP_LOCK', '.lock'); # Lock file for strip read/write relative | ||||
| # to SITE_STRIP | ||||
| define('SITE_CONTACT', $_SERVER['SERVER_ADMIN']); # Email address for error reports | ||||
| define('RANT_DATE_WINDOW', 3); # Window of days to force rants to main page | ||||
| define('TWITTER_HOST', 'http://twitter.com/statuses/update.xml'); #Twitter API | ||||
| define('TWITTER_USER', '[% TWITTER_USER %]'); # Name of Twitter account | ||||
| define('TWITTER_PASS', '[% TWITTER_PASS %]'); # Password for above | ||||
| define('RUN_INTERVAL', '[% TWITTER_INTERVAL %]'); # Time interval for automated tweets | ||||
| ### Annoyinly necessary performance directives ### | ||||
| define('PERFORM_CONDITIONAL_CACHE', true); | ||||
| ### Deprecation Station ### | ||||
| define('ADMIN_HOST', SITE_HOST); | ||||
| define('ADMIN_PATH', SITE_PATH.'/'.SITE_ADMIN); | ||||
| ?> | ||||
