Update some files to reflect new Auth framework.
[spidio.git] / www / includes / configuration.inc.php
blobb549447da366e6c306337b5553f7747d99fa3522
1 <?php
2 // This is the "Pro" version of configuration.inc.php, without any comments, and restructured in a way
3 // that should make sense for most pro-users of Qcodo
5 // As always, feel free to use, change or ignore.
7 define('SERVER_INSTANCE', 'dev');
9 switch (SERVER_INSTANCE) {
10 case 'dev':
11 define('ALLOW_REMOTE_ADMIN', true);
13 define ('__DOCROOT__', '/Users/dwlnetnl/Projecten/Spidio/www');
14 define ('__VIRTUAL_DIRECTORY__', '/spidio');
15 define ('__SUBDIRECTORY__', '');
17 define('DB_CONNECTION_1', serialize(array(
18 'adapter' => 'MySqli5',
19 'server' => 'localhost',
20 'port' => null,
21 'database' => 'spidio_dev',
22 'username' => 'spidio',
23 'password' => 'spidio',
24 'profiling' => false)));
25 break;
26 case 'test':
27 define('ALLOW_REMOTE_ADMIN', true);
29 define ('__DOCROOT__', '/file/path/to/www');
30 define ('__VIRTUAL_DIRECTORY__', '');
31 define ('__SUBDIRECTORY__', '/test/spidio');
33 define('DB_CONNECTION_1', serialize(array(
34 'adapter' => 'MySqli5',
35 'server' => 'localhost',
36 'port' => null,
37 'database' => 'spidio_test',
38 'username' => 'spidio',
39 'password' => '',
40 'profiling' => false)));
41 break;
42 case 'stage':
43 case 'prod':
44 /* define('ALLOW_REMOTE_ADMIN', false);
46 define ('__DOCROOT__', '/home/qcodo/wwwroot');
47 define ('__VIRTUAL_DIRECTORY__', '');
48 define ('__SUBDIRECTORY__', '');
50 define('DB_CONNECTION_1', serialize(array(
51 'adapter' => 'MySqli5',
52 'server' => 'localhost',
53 'port' => null,
54 'database' => 'spidio',
55 'username' => 'spidio',
56 'password' => 'spidio',
57 'profiling' => false)));
58 break;
59 */ }
61 define ('__URL_REWRITE__', 'apache');
63 define ('__DEVTOOLS_CLI__', __DOCROOT__ . '/../_devtools_cli');
64 define ('__INCLUDES__', __DOCROOT__ . '/includes');
65 define ('__QCODO__', __INCLUDES__ . '/qcodo');
66 define ('__QCODO_CORE__', __INCLUDES__ . '/qcodo/_core');
67 define ('__DATA_CLASSES__', __INCLUDES__ . '/data_classes');
68 define ('__DATAGEN_CLASSES__', __INCLUDES__ . '/data_classes/generated');
69 define ('__DATA_META_CONTROLS__', __INCLUDES__ . '/data_meta_controls');
70 define ('__DATAGEN_META_CONTROLS__', __INCLUDES__ . '/data_meta_controls/generated');
72 define ('__DEVTOOLS__', __SUBDIRECTORY__ . '/_devtools');
73 define ('__FORM_DRAFTS__', null);
74 define ('__PANEL_DRAFTS__', __SUBDIRECTORY__ . '/admin');
76 // We don't want "Examples", and we don't want to download them during qcodo_update
77 define ('__EXAMPLES__', null);
79 define ('__JS_ASSETS__', __SUBDIRECTORY__ . '/assets/js');
80 define ('__CSS_ASSETS__', __SUBDIRECTORY__ . '/assets/css');
81 define ('__IMAGE_ASSETS__', __SUBDIRECTORY__ . '/assets/images');
82 define ('__PHP_ASSETS__', __SUBDIRECTORY__ . '/assets/php');
84 define ('__TEMPLATES__', __DOCROOT__ . __SUBDIRECTORY__ . '/templates');
85 define ('__FORMS__', __DOCROOT__ . __SUBDIRECTORY__ . '/forms');
87 if ((function_exists('date_default_timezone_set')) && (!ini_get('date.timezone')))
88 date_default_timezone_set('Europe/Amsterdam');
90 define('ERROR_PAGE_PATH', __PHP_ASSETS__ . '/_core/error_page.php');
91 // define('ERROR_LOG_PATH', __INCLUDES__ . '/error_log');
92 // define('ERROR_LOG_FLAG', true);
94 // define('ERROR_FRIENDLY_PA GE_PATH', __PHP_ASSETS__ . '/friendly_error_page.php');
95 // define('ERROR_FRIENDLY_AJAX_MESSAGE', 'Oops! An error has occurred.\r\n\r\nThe error was logged, and we will take a look into this right away.');
97 define('__SOAPSYS__', __SUBDIRECTORY__ . '/soap');
99 define('MAGIC_COLUMN_NAME_CREATION_DATE', 'added');
100 define('MAGIC_COLUMN_NAME_MODIFICATION_DATE', 'changed');