Rev 991 | Rev 1053 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 991 | Rev 1050 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | * See the License for the specific language governing permissions and |
16 | * See the License for the specific language governing permissions and |
17 | * limitations under the License. |
17 | * limitations under the License. |
18 | */ |
18 | */ |
19 | 19 | ||
- | 20 | use ViaThinkSoft\OIDplus\OIDplus; |
|
- | 21 | use ViaThinkSoft\OIDplus\OIDplusGui; |
|
- | 22 | use ViaThinkSoft\OIDplus\OIDplusException; |
|
- | 23 | ||
20 | header('Content-Type:text/html; charset=UTF-8'); |
24 | header('Content-Type:text/html; charset=UTF-8'); |
21 | 25 | ||
22 | require_once __DIR__ . '/../../../../includes/oidplus.inc.php'; |
26 | require_once __DIR__ . '/../../../../includes/oidplus.inc.php'; |
23 | 27 | ||
24 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
28 | set_exception_handler(array(OIDplusGui::class, 'html_exception_handler')); |
25 | 29 | ||
26 | @set_time_limit(0); |
30 | @set_time_limit(0); |
27 | 31 | ||
28 | OIDplus::init(true); |
32 | OIDplus::init(true); |
29 | 33 | ||
30 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPageAdminNostalgia', false)) { |
34 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusPageAdminNostalgia', false)) { |
31 | 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!')); |
32 | } |
36 | } |
33 | 37 | ||
34 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
38 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
35 | throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin'))); |
39 | throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin'))); |