Rev 1206 | Rev 1267 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1206 | Rev 1266 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | $handled = true; |
98 | $handled = true; |
99 | $out['title'] = _L('System registration settings'); |
99 | $out['title'] = _L('System registration settings'); |
100 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
100 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
101 | 101 | ||
102 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
102 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
103 | throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title']); |
103 | throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title'], 401); |
104 | } |
104 | } |
105 | 105 | ||
106 | if (file_exists(__DIR__ . '/info$'.OIDplus::getCurrentLang().'.html')) { |
106 | if (file_exists(__DIR__ . '/info$'.OIDplus::getCurrentLang().'.html')) { |
107 | $info = file_get_contents(__DIR__ . '/info$'.OIDplus::getCurrentLang().'.html'); |
107 | $info = file_get_contents(__DIR__ . '/info$'.OIDplus::getCurrentLang().'.html'); |
108 | } else { |
108 | } else { |
Line 175... | Line 175... | ||
175 | $handled = true; |
175 | $handled = true; |
176 | $out['title'] = _L('Registration live status'); |
176 | $out['title'] = _L('Registration live status'); |
177 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
177 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
178 | 178 | ||
179 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
179 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
180 | throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title']); |
180 | throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')), $out['title'], 401); |
181 | } |
181 | } |
182 | 182 | ||
183 | $query = self::QUERY_LIVESTATUS_V1; |
183 | $query = self::QUERY_LIVESTATUS_V1; |
184 | 184 | ||
185 | $payload = array( |
185 | $payload = array( |