Not Reviewed
Show More
Add another comment
| @@ -0,0 +1,58 | |||||
|
|
|
1 | <?php | ||
|
|
|
2 | ############################################################################### | ||
|
|
|
3 | # LocalSettings.php | ||
|
|
|
4 | # Per-server configuration directives for the Megatokyo Website | ||
|
|
|
5 | ############################################################################### | ||
|
|
|
6 | # For a more detailed description of this file, see the development notes | ||
|
|
|
7 | # available at: | ||
|
|
|
8 | # http://dev.alpicola.com/projects/megatokyo/wiki/doku.php?id=localsettings.php | ||
|
|
|
9 | ############################################################################### | ||
|
|
|
10 | |||
|
|
|
11 | define('SITE_PATH_ABS', dirname(__FILE__)); | ||
|
|
|
12 | ini_set('default_charset', 'UTF-8'); | ||
|
|
|
13 | ini_set('include_path', ini_get('include_path')); | ||
|
|
|
14 | |||
|
|
|
15 | ### Advertising System configuration directives ### | ||
|
|
|
16 | |||
|
|
|
17 | # Todo | ||
|
|
|
18 | |||
|
|
|
19 | ### Database configuration directives ### | ||
|
|
|
20 | |||
|
|
|
21 | define('DB_SERVER', '[% DB_SERVER %]'); # Host on which MySQL resides | ||
|
|
|
22 | define('DB_NAME', '[% DB_NAME %]'); # Name of the MySQL database | ||
|
|
|
23 | define('DB_READ_USER', '[% DB_READ_USER %]'); # Database user with SELECT permission | ||
|
|
|
24 | define('DB_READ_PASS', '[% DB_READ_PASS %]'); # Password for above | ||
|
|
|
25 | define('DB_WRITE_USER', '[% DB_WRITE_USER %]'); # Database ueer with SELECT, INSERT, | ||
|
|
|
26 | # and UPDATE permission | ||
|
|
|
27 | define('DB_WRITE_PASS', '[% DB_WRITE_PASS %]'); # Password for above | ||
|
|
|
28 | |||
|
|
|
29 | ### Public Interface configuration directives ### | ||
|
|
|
30 | |||
|
|
|
31 | define('SITE_HOST', '[% SITE_HOST %]'); # Host on which the interface resides | ||
|
|
|
32 | define('SITE_PATH', '[% SITE_PATH %]'); # Relative to DocumentRoot | ||
|
|
|
33 | define('SITE_ADMIN', 'admin'); # Relative to SITE_PATH | ||
|
|
|
34 | define('SITE_RANT', 'rantimgs'); # Relative to SITE_PATH | ||
|
|
|
35 | define('SITE_RANT_ATTACHMENT', 'attachments'); # Relative to SITE_PATH | ||
|
|
|
36 | define('SITE_STRIP', 'strips'); # Relative to SITE_PATH | ||
|
|
|
37 | define('SITE_STRIP_LOCK', '.lock'); # Lock file for strip read/write relative | ||
|
|
|
38 | # to SITE_STRIP | ||
|
|
|
39 | |||
|
|
|
40 | define('SITE_CONTACT', $_SERVER['SERVER_ADMIN']); # Email address for error reports | ||
|
|
|
41 | |||
|
|
|
42 | define('RANT_DATE_WINDOW', 3); # Window of days to force rants to main page | ||
|
|
|
43 | |||
|
|
|
44 | define('TWITTER_HOST', 'http://twitter.com/statuses/update.xml'); #Twitter API | ||
|
|
|
45 | define('TWITTER_USER', '[% TWITTER_USER %]'); # Name of Twitter account | ||
|
|
|
46 | define('TWITTER_PASS', '[% TWITTER_PASS %]'); # Password for above | ||
|
|
|
47 | define('RUN_INTERVAL', '[% TWITTER_INTERVAL %]'); # Time interval for automated tweets | ||
|
|
|
48 | |||
|
|
|
49 | ### Annoyinly necessary performance directives ### | ||
|
|
|
50 | |||
|
|
|
51 | define('PERFORM_CONDITIONAL_CACHE', true); | ||
|
|
|
52 | |||
|
|
|
53 | ### Deprecation Station ### | ||
|
|
|
54 | |||
|
|
|
55 | define('ADMIN_HOST', SITE_HOST); | ||
|
|
|
56 | define('ADMIN_PATH', SITE_PATH.'/'.SITE_ADMIN); | ||
|
|
|
57 | |||
|
|
|
58 | ?> | ||
Comments 0
You need to be logged in to leave comments.
Login now
