Subversion Repositories oidplus

Rev

Rev 1206 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1206 Rev 1266
Line 42... Line 42...
42
                        $handled = true;
42
                        $handled = true;
43
                        $out['title'] = _L('Nostalgia');
43
                        $out['title'] = _L('Nostalgia');
44
                        $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : '';
44
                        $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : '';
45
 
45
 
46
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
46
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
47
                                throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title']);
47
                                throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title'], 401);
48
                        }
48
                        }
49
 
49
 
50
                        $out['text'] = '<p>'._L('Did you ever wonder what OIDplus would look like if it had been created in the era of MS-DOS, Windows 3.11, or Windows 95? Just download the ZIP files below and have a look!').'</p>';
50
                        $out['text'] = '<p>'._L('Did you ever wonder what OIDplus would look like if it had been created in the era of MS-DOS, Windows 3.11, or Windows 95? Just download the ZIP files below and have a look!').'</p>';
51
 
51
 
52
                        if (class_exists('ZipArchive')) {
52
                        if (class_exists('ZipArchive')) {