Rev 1206 | Rev 1278 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1206 | Rev 1266 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | $handled = true; |
66 | $handled = true; |
67 | $out['title'] = _L('VNag version check'); |
67 | $out['title'] = _L('VNag version check'); |
68 | $out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png'; |
68 | $out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png'; |
69 | 69 | ||
70 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
70 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
71 | throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title']); |
71 | throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title'], 401); |
72 | } |
72 | } |
73 | 73 | ||
74 | if (file_exists(__DIR__ . '/tutorial$'.OIDplus::getCurrentLang().'.html')) { |
74 | if (file_exists(__DIR__ . '/tutorial$'.OIDplus::getCurrentLang().'.html')) { |
75 | $cont = file_get_contents(__DIR__ . '/tutorial$'.OIDplus::getCurrentLang().'.html'); |
75 | $cont = file_get_contents(__DIR__ . '/tutorial$'.OIDplus::getCurrentLang().'.html'); |
76 | } else if (file_exists(__DIR__ . '/tutorial.html')) { |
76 | } else if (file_exists(__DIR__ . '/tutorial.html')) { |