-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example
56 lines (40 loc) · 1.67 KB
/
config.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
// $Id$
// Miaow configuration example. Copy this file to config.php
// and tune the following settings to your environment.
// Internal PHP locale. This affects string collation,
// string and date operations, but not website language :)
// You can choose any locale with UTF-8 encoding.
setlocale(LC_ALL, '@LC_ALL@');
// Absolute site URL, with or without host name.
// E.g. http://rain.ifmo.ru/~vladykin/miaow or /~vladykin/miaow
define('SITE_URL', '@SITE_URL@');
// Database charset.
// E.g. KOI8-R
define('DB_CHARSET', '@DB_CHARSET@');
// Database connection string.
// E.g. mysql://user:pass@host/dbname (see PEAR::DB docs for details)
define('DB_CONNECT_STRING', '@DB_CONNECT_STRING@');
// Site skin - page layout, colors, buttons and so on.
// Must point to a directory where the skin is installed.
define('SKIN', 'skins/default');
////////////////////////////////////////////////////////////////////////////
// More settings. You don't need to edit or even understand this.
// Site directory on the server's hard drive.
define('SITE_DIR', dirname(__FILE__));
define('TABLE_PREFIX', defined('TEST')? 'mt_' : 'm_');
define('TREE_ROOT', SITE_URL . '/index.php');
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
$parsedURL = parse_url(SITE_URL);
ini_set('session.cookie_domain', @$parsedURL['host']);
ini_set('session.cookie_path', @$parsedURL['path'] . '/');
unset($parsedURL);
ini_set('magic_quotes_gpc', 0);
ini_set('output_buffering', 0);
// Turn assertions on. We'd like to know when something goes wrong.
assert_options(ASSERT_ACTIVE, 1);
assert_options(ASSERT_QUIET_EVAL, 0);
assert_options(ASSERT_WARNING, 1);
assert_options(ASSERT_BAIL, 1);
?>