-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
33 lines (28 loc) · 911 Bytes
/
config.php
File metadata and controls
33 lines (28 loc) · 911 Bytes
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
<?php
date_default_timezone_set("Europe/Warsaw");
$config=array();
$config["appname"]="brige";
if ($_SERVER["HTTP_HOST"]=="localhost"){
error_reporting(E_ALL);
ini_set('display_errors','On');
}
else {
error_reporting(E_ALL&~E_NOTICE);
ini_set('display_errors','Off');
ini_set('error_log','cache/error.log');
}
// paths setup
$config["cmslib"]=strtr(dirname(__FILE__),"\\","/")."/../cms/lib/";
$config["cmsurl"]="/cms/";
$config["rootdir"]=strtr(dirname(__FILE__),"\\","/")."/"; //path to the site files
$config["rooturl"]=dirname($_SERVER["PHP_SELF"])."/"; //url to the site
$config["cachedir"]="cache/"; //relative to rootdir
$config["templatedir"]=array($config["rootdir"]."templates/");
$config["templateexpired"]="force"; //modtime
$config["sitetitle"]="Brydż";
$config["lang"]="pl";
// db setup
$config["debug"]["query"]="y";
$config["dbtype"]="pdo";
$config["dbname"]="sqlite:db/bridge.db";
?>