blob: 71d606eea928d82a06458aa83e81ff5f33070342 (
plain) (
blame)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
<?php
/**
* YOURLS defaut actions upon instantiating
*
* This class defines all the default actions to be performed when instantiating YOURLS. The idea
* is that this is easily tuneable depending on the scenario, namely when running YOURLS for
* unit tests.
*
* @see \YOURLS\Config\Init
*/
namespace YOURLS\Config;
class InitDefaults {
/**
* Whether to include core function files
* @var bool
*/
public $include_core_funcs = true;
/**
* Whether to include auth function files
* @var bool
*/
public $include_auth_funcs = false; // by default do not load (let YOURLS decide depending on yourls_is_private() value)
/**
* Whether to include auth function files
* @var bool
*/
public $include_install_upgrade_funcs = false; // by default do not load
/**
* Whether to set default time zone
* @var bool
*/
public $default_timezone = true;
/**
* Whether to load default text domain
* @var bool
*/
public $load_default_textdomain = true;
/**
* Whether to check for maintenance mode and maybe die here
* @var bool
*/
public $check_maintenance_mode = true;
/**
* Whether to fix $_REQUEST for IIS
* @var bool
*/
public $fix_request_uri = true;
/**
* Whether to redirect to SSL if needed
* @var bool
*/
public $redirect_ssl = true;
/**
* Whether to include DB engine
* @var bool
*/
public $include_db = true;
/**
* Whether to include cache layer
* @var bool
*/
public $include_cache = true;
/**
* Whether to end instantiating early if YOURLS_FAST_INIT is defined and true
* @var bool
*/
public $return_if_fast_init = true;
/**
* Whether to read all options at once during starting
* @var bool
*/
public $get_all_options = true;
/**
* Whether to register shutdown action
* @var bool
*/
public $register_shutdown = true;
/**
* Whether to trigger action 'init' after core is loaded
* @var bool
*/
public $core_loaded = true;
/**
* Whether to redirect to install procedure if needed
* @var bool
*/
public $redirect_to_install = true;
/**
* Whether to redirect to upgrade procedure if needed
* @var bool
*/
public $check_if_upgrade_needed = true;
/**
* Whether to load all plugins
* @var bool
*/
public $load_plugins = true;
/**
* Whether to trigger the "plugins_loaded" action
* @var bool
*/
public $plugins_loaded_action = true;
/**
* Whether to check if a new version if available
* @var bool
*/
public $check_new_version = true;
/**
* Whether to trigger 'admin_init' if applicable
* @var bool
*/
public $init_admin = true;
}
|