Rev 241 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 241 | Rev 250 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | $out['title'] = 'Software update'; |
54 | $out['title'] = 'Software update'; |
55 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
55 | $out['icon'] = OIDplus::webpath(__DIR__).'icon_big.png'; |
56 | 56 | ||
57 | if (!OIDplus::authUtils()::isAdminLoggedIn()) { |
57 | if (!OIDplus::authUtils()::isAdminLoggedIn()) { |
58 | $out['icon'] = 'img/error_big.png'; |
58 | $out['icon'] = 'img/error_big.png'; |
59 | $out['text'] = '<p>You need to <a '.oidplus_link('oidplus:login').'>log in</a> as administrator.</p>'; |
59 | $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>'; |
60 | return $out; |
60 | return $out; |
61 | } |
61 | } |
62 | 62 | ||
63 | $out['text'] = '<p>You can perform a system update by clicking the bottom below.</p>'; |
63 | $out['text'] = '<p>You can perform a system update by clicking the bottom below.</p>'; |
64 | $out['text'] .= '<p><input type="button" onclick="document.location=\'update/\'" value="Start update assistant"></p>'; |
64 | $out['text'] .= '<p><input type="button" onclick="document.location=\'update/\'" value="Start update assistant"></p>'; |