-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php
46 lines (38 loc) · 1.09 KB
/
config.inc.php
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
<?php
/*
* Don't modify configuration values in this file, as it will be
* overwritten by updates. Instead, create a new file named
* user_config.inc.php in the same directory, and use it to set
* values in the same manner as it done here.
*/
$config = array();
// show errors (might be good to disable for release)
error_reporting(E_ALL);
// how often cached pages are regenerated, in seconds
$config['cache_time'] = 3600;
// path to store content
$config['content_dir'] = 'JODI';
// desired sort order and descriptions for media categories (work subfolders)
$config['media_categories'] = array(
'artwork' => 'Artwork',
'exhibitionview' => 'Exhibition view',
'ephemera' => 'Ephemera'
);
// show intro page
$config['show_intro'] = true;
// Overwrites
@include('user_config.inc.php');
/**
* Return the value of a configuration option
* @param $key configuration option
* @param $default default value to return if option is not set
* @return value
*/
function config($key, $default = false) {
global $config;
if (isset($config[$key])) {
return $config[$key];
} else {
return $default;
}
}