-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConfiguration.php
30 lines (25 loc) · 1.17 KB
/
Configuration.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
<?php
// Donut 0.13-dev - Emma de Roo - Licensed under MIT
// file: Configuration.php
define('CONFIG_DB_HOST', 'localhost');
define('CONFIG_DB_USER', 'root');
define('CONFIG_DB_PASSWORD', 'root');
define('CONFIG_DB_DATABASE', 'donutDat');
define('CONFIG_REWRITE', true);
define('CONFIG_FILE', 'index.php');
define('CONFIG_HASHID_SALT', "ThereIsYeastInDonutsDidYouKnowThat?");
define('CONFIG_ISBETA', true);
define('CONFIG_ROOT_PATH', dirname(__FILE__));
define('CONFIG_FOLDER', 'donut');
define('CONFIG_ABSOLUTE_PATH', "http://".$_SERVER['SERVER_NAME']."/".CONFIG_FOLDER);
define('CONFIG_REQUIRED_PHP_VERSION', '5.6.0');
// Check whether we actually meet that version requirment.
if (version_compare(phpversion(), CONFIG_REQUIRED_PHP_VERSION, '<'))
die('We are sorry, but Donut requires PHP version '.CONFIG_REQUIRED_PHP_VERSION." in order to work.");
// ...add a bit of utf-8 to the mix, doesn't hurt, especially when we're in a Windows enviroment
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
// The Main class is very important
require CONFIG_ROOT_PATH . '/src/main/Main.class.php';
// Now let's initialize the Donut, and give it back to index.php
return pMain::initialize();