forked from wgm/devblocks
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathframework.defaults.php
69 lines (48 loc) · 1.67 KB
/
framework.defaults.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
if(!defined('APP_DB_DRIVER'))
define('APP_DB_DRIVER','mysql');
if(!defined('APP_DB_HOST'))
define('APP_DB_HOST','localhost');
if(!defined('APP_DB_DATABASE'))
define('APP_DB_DATABASE','');
if(!defined('APP_DB_USER'))
define('APP_DB_USER','');
if(!defined('APP_DB_PASS'))
define('APP_DB_PASS','');
if(!defined('APP_DB_PCONNECT'))
define('APP_DB_PCONNECT',false);
if(!defined('APP_DB_PREFIX'))
define('APP_DB_PREFIX','');
if(!defined('DEVBLOCKS_LANGUAGE'))
define('DEVBLOCKS_LANGUAGE','en');
if(!defined('DEVBLOCKS_REWRITE'))
define('DEVBLOCKS_REWRITE',false);
if(!defined('DEVBLOCKS_CACHE_PREFIX'))
define('DEVBLOCKS_CACHE_PREFIX','');
if(!defined('APP_DEFAULT_CONTROLLER'))
define('APP_DEFAULT_CONTROLLER',''); // 404?
if(!defined('APP_PATH'))
define('APP_PATH',dirname(__FILE__));
if(!defined('APP_STORAGE_PATH'))
define('APP_STORAGE_PATH',APP_PATH . '/storage');
if(!defined('APP_TEMP_PATH'))
define('APP_TEMP_PATH',APP_STORAGE_PATH . '/tmp');
if(!defined('DEVBLOCKS_PATH'))
define('DEVBLOCKS_PATH',APP_PATH . '/libs/devblocks/');
if(!defined('LANG_CHARSET_MAIL_CONTENT_TYPE'))
define('LANG_CHARSET_MAIL_CONTENT_TYPE','text/plain');
if(!defined('LANG_CHARSET_CODE'))
define('LANG_CHARSET_CODE','iso-8859-1');
if(!defined('DB_CHARSET_CODE'))
define('DB_CHARSET_CODE','latin1'); // latin1, utf8
if(!defined('APP_SESSION_NAME'))
define('APP_SESSION_NAME', 'Devblocks');
if(!defined('DEVELOPMENT_MODE'))
define('DEVELOPMENT_MODE', false);
// ----
@ini_set('session.gc_maxlifetime','86400');
@ini_set('session.save_path',APP_TEMP_PATH);
@date_default_timezone_set(date_default_timezone_get());
@ini_set('magic_quotes_gpc',0);
@set_magic_quotes_runtime(0);
@ignore_user_abort(true);