forked from srobo/srweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.inc.php
More file actions
154 lines (124 loc) · 4.36 KB
/
Copy pathconfig.inc.php
File metadata and controls
154 lines (124 loc) · 4.36 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
/*//{enable, server default} error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);
/* ====== CUSTOMISABLE DEFINES ======
* Edit below to adapt to your system
* ==================================
*/
/* This should always be set to false except on the live site */
define('LIVE_SITE', false);
/* Memcache(d) --
* for the site to function, memcached is required (including the memcache)
* PHP module. It is used to prevent needless processing for the RSS feed
* and it's use. Without it, the feed will still work, but the latestRSS
* smarty plugin will not. If you just start the memcache deamon (memcached)
* then you probably won't need to change these settings
*/
define('MEMCACHE_ENABLED', true);
define('MEMCACHE_SERVER', '127.0.0.1');
define('MEMCACHE_PORT', 11211);
/* The pages that you wish to appear in the menu should be listed here.
* There are two way to add a page to the menu:
*
* 1) simply add its path to the list. All parent directories
* will be included in the hierachy, and if not named before,
* will fall back to the page name (excl. ext.)
*
* 2) add its desired name mapped to its path to the list. i.e.
*
* 'DIR NAME' => 'dir/',
* 'SOME FILE' => 'dir/afile'
*
* will produce a hierachy (in text) as:
*
* DIR NAME
* - SOME FILE
*
* Please note, however, that once a path has been given a nice title,
* it cannot be changed. When adding menu items, work hierachically:
* it makes it easier to read, and is also necessary to get all titles
* to display correctly.
*
* Please also note that to name a directory, it needs a trailing slash.
*/
$MENU_PAGES = array(
// TITLE/NAME => PATH
// =====================================================
'Home' => 'home',
'Schools & Colleges'=> 'schools/',
'Competition' => 'schools/competition',
'Joining' => 'schools/joining',
'Documentation' => 'schools/docs/',
'Forum' => 'forum/',
'Kit' => 'schools/kit/',
'Docs' => 'docs/',
'Sponsors' => 'sponsors/',
'About Us' => 'about/',
'The Team' => 'about/team',
'Media' => 'about/media',
'Mission Statement' => 'about/mission',
'Public Documents' => 'about/publicdocs',
'Contact Us' => 'about/contactus',
'News' => 'news/'
);
/*
* An array to map standardised language tags (more on that in
* a second) to the directory under which the content could be
* found.
*
* A language tag is of the form 'a[[-b];q=c]'
*
* where: 'a' is an ISO-639-1 assigned language code;
* 'b' is an ISO 3166-1 alpha-2 assigned country code; and
* 'c' is a value between (and including) 0 and 1 as an
* indication of preference for the tag (with 0 being
* 'do not use').
*
* Both 'b' and 'c' are optional. Below is case insensitive.
*
* The tag is sent by the client's browser in an 'Accept-Language'
* header, so assuming the client has configured their browser, they
* will be served their language's content if it exists. If it doesn't,
* English (en) will be served instead.
*/
$ACCEPTED_LANGUAGES = array(
// lANG. TAG => LANG. DIR
// =============================
'en' => 'en',
'en-gb' => 'en',
'en-us' => 'en',
'fr' => 'fr'
);
/* ===================================
* IF YOU ENJOY MILD PERIL, EDIT BELOW
* Don't say I didn't warn you!
* ===================================
*/
/* The directory 'Smarty.class.php' can be found in */
define('SMARTY_DIR', '/usr/share/php/Smarty/');
/* The location of files relative to the directory this file is in */
define('ROOT_URI', dirname($_SERVER['PHP_SELF']) != '/'
? dirname($_SERVER['PHP_SELF']) . '/'
: '/');
/* The root of the website when hosted (Where you would navigate to
* to find index.php) */
$BASE_URI = !empty($_SERVER['HTTPS'])
? 'https://' . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF']) . '/'
: 'http://' . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF']) . '/';
define('BASE_URI', (substr($BASE_URI, -2, 2) == '//')
? substr($BASE_URI, 0, -1)
: $BASE_URI);
//extract the current directory
define('ROOT_DIR', dirname(__FILE__));
define('TEMPLATE_DIR', ROOT_DIR . '/templates');
define('COMPILED_TEMPLATE_DIR', ROOT_DIR . '/templates_compiled');
define('CACHE_DIR', ROOT_DIR . '/cache');
define('CONTENT_DIR', ROOT_DIR . '/content');
//404 log stuff
define('LOG404_ENABLED', true);
define('LOG404_FILE', '/tmp/404log');
date_default_timezone_set("Europe/London");
?>