Rev 755 | Rev 757 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 755 | Rev 756 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | 23 | ||
24 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
24 | set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
25 | 25 | ||
26 | OIDplus::init(true); |
26 | OIDplus::init(true); |
27 | 27 | ||
28 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPageAdminOIDInfoExport', false)) { |
28 | if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPageAdminNostalgia', false)) { |
29 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
29 | throw new OIDplusException(_L('This plugin was disabled by the system administrator!')); |
30 | } |
30 | } |
31 | 31 | ||
- | 32 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
|
- | 33 | throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin'))); |
|
- | 34 | } |
|
- | 35 | ||
32 | if (!class_exists('ZipArchive')) { |
36 | if (!class_exists('ZipArchive')) { |
33 | throw new OIDplusException(_L('The PHP extension "ZipArchive" needs to be installed to create a ZIP archive with an included database. Otherwise, you can just download the plain program without data.')); |
37 | throw new OIDplusException(_L('The PHP extension "ZipArchive" needs to be installed to create a ZIP archive with an included database. Otherwise, you can just download the plain program without data.')); |
34 | } |
38 | } |
35 | 39 | ||
36 | $dos_ids = array(); |
40 | $dos_ids = array(); |