Rev 1143 | Rev 1321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1143 | Rev 1200 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | * limitations under the License. |
17 | * limitations under the License. |
18 | */ |
18 | */ |
19 | 19 | ||
20 | use ViaThinkSoft\OIDplus\OIDplus; |
20 | use ViaThinkSoft\OIDplus\OIDplus; |
21 | use ViaThinkSoft\OIDplus\OIDplusException; |
21 | use ViaThinkSoft\OIDplus\OIDplusException; |
- | 22 | use ViaThinkSoft\OIDplus\OIDplusGui; |
|
22 | use ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck; |
23 | use ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck; |
23 | 24 | ||
24 | include __DIR__ . '/../../../../vendor/danielmarschall/vnag/framework/vnag_framework.inc.php'; |
25 | include __DIR__ . '/../../../../vendor/danielmarschall/vnag/framework/vnag_framework.inc.php'; |
25 | include __DIR__ . '/../../../../includes/oidplus.inc.php'; |
26 | include __DIR__ . '/../../../../includes/oidplus.inc.php'; |
26 | 27 | ||
27 | const OIDPLUS_VNAG_MAX_CACHE_AGE = 60; // seconds (TODO: in base config?) |
28 | const OIDPLUS_VNAG_MAX_CACHE_AGE = 60; // seconds (TODO: in base config?) |
28 | 29 | ||
- | 30 | set_exception_handler(array(OIDplusGui::class, 'html_exception_handler')); |
|
- | 31 | ||
29 | OIDplus::init(false); |
32 | OIDplus::init(true); |
30 | 33 | ||
31 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck', false)) { |
34 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck', false)) { |
32 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
35 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
33 | } |
36 | } |
34 | 37 |