Rev 1050 | Rev 1143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1050 | Rev 1116 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | use ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck; |
22 | use ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck; |
23 | 23 | ||
24 | include __DIR__ . '/../../../../vendor/danielmarschall/vnag/framework/vnag_framework.inc.php'; |
24 | include __DIR__ . '/../../../../vendor/danielmarschall/vnag/framework/vnag_framework.inc.php'; |
25 | include __DIR__ . '/../../../../includes/oidplus.inc.php'; |
25 | include __DIR__ . '/../../../../includes/oidplus.inc.php'; |
26 | 26 | ||
27 | define('OIDPLUS_VNAG_MAX_CACHE_AGE', 60); // seconds (TODO: in base config?) |
27 | const OIDPLUS_VNAG_MAX_CACHE_AGE = 60; // seconds (TODO: in base config?) |
28 | 28 | ||
29 | OIDplus::init(false); |
29 | OIDplus::init(false); |
30 | 30 | ||
31 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck', false)) { |
31 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPageAdminVNagVersionCheck', false)) { |
32 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
32 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |