Browse Source

Move configuration to a configuration file

master
Sven Slootweg 9 years ago
parent
commit
a348557e7c
  1. 30
      config.json
  2. 1
      public_html/index.php

30
config.json

@ -0,0 +1,30 @@
{
"database": {
"driver": "mysql",
"hostname": "localhost",
"username": "root",
"password": "",
"database": "team"
},
"locale": {
"default_locale": "english",
"default_timezone": "Europe/Amsterdam"
},
"memcache": {
"enabled": true,
"compressed": true,
"hostname": "localhost",
"port": 11211
},
"class_map": {
"user": "User",
"interestgroup": "InterestGroup",
"project": "Project",
"repository": "Repository",
"ticket": "Ticket"
},
"components": [
"router",
"errorhandler"
]
}

1
public_html/index.php

@ -1,4 +1,5 @@
<?php
$_CPHP = true;
$_CPHP_CONFIG = "../config.json";
require("cphp/base.php");
?>
Loading…
Cancel
Save