Rev 1305 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1305 | Rev 1359 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | $handled = true; |
179 | $handled = true; |
180 | $out['title'] = _L('Login'); |
180 | $out['title'] = _L('Login'); |
181 | $out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/login_icon.png'; |
181 | $out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/login_icon.png'; |
182 | 182 | ||
183 | $out['text'] = '<noscript>'; |
183 | $out['text'] = '<noscript>'; |
184 | $out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use the login area.').'</font></p>'; |
184 | $out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use this feature.').'</font></p>'; |
185 | $out['text'] .= '</noscript>'; |
185 | $out['text'] .= '</noscript>'; |
186 | 186 | ||
187 | $out['text'] .= '<div id="loginArea" style="visibility: hidden"><div id="loginTab" class="container" style="width:100%;">'; |
187 | $out['text'] .= '<div id="loginArea" style="visibility: hidden"><div id="loginTab" class="container" style="width:100%;">'; |
188 | 188 | ||
189 | $out['text'] .= OIDplus::getActiveCaptchaPlugin()->captchaGenerate(_L('Before logging in, please solve the following CAPTCHA')); |
189 | $out['text'] .= OIDplus::getActiveCaptchaPlugin()->captchaGenerate(_L('Before logging in, please solve the following CAPTCHA')); |
Line 205... | Line 205... | ||
205 | $tabcont .= '<p>'._L('If you have more accounts, you can log in with another account here.').'</p>'; |
205 | $tabcont .= '<p>'._L('If you have more accounts, you can log in with another account here.').'</p>'; |
206 | } else { |
206 | } else { |
207 | $tabcont .= '<p>'._L('Enter your email address and your password to log in as Registration Authority.').'</p>'; |
207 | $tabcont .= '<p>'._L('Enter your email address and your password to log in as Registration Authority.').'</p>'; |
208 | } |
208 | } |
209 | $tabcont .= '<form action="javascript:void(0);" onsubmit="return OIDplusPagePublicLogin.raLoginOnSubmit(this);">'; |
209 | $tabcont .= '<form action="javascript:void(0);" onsubmit="return OIDplusPagePublicLogin.raLoginOnSubmit(this);">'; |
210 | $tabcont .= '<div><label class="padding_label">'._L('E-Mail').':</label><input type="text" name="email" value="'.htmlentities($desired_ra).'" id="raLoginEMail"></div>'; |
210 | $tabcont .= '<div><label class="padding_label" for="raLoginEMail">'._L('E-Mail').':</label><input type="text" name="email" value="'.htmlentities($desired_ra).'" id="raLoginEMail"></div>'; |
211 | $tabcont .= '<div><label class="padding_label">'._L('Password').':</label><input type="password" name="password" value="" id="raLoginPassword"></div>'; |
211 | $tabcont .= '<div><label class="padding_label" for="raLoginPassword">'._L('Password').':</label><input type="password" name="password" value="" id="raLoginPassword"></div>'; |
212 | $tabcont .= '<br><input type="submit" value="'._L('Login').'"><br><br>'; |
212 | $tabcont .= '<br><input type="submit" value="'._L('Login').'"><br><br>'; |
213 | $tabcont .= '</form>'; |
213 | $tabcont .= '</form>'; |
214 | $tabcont .= '<p><a '.OIDplus::gui()->link('oidplus:forgot_password').'>'._L('Forgot password?').'</a><br>'; |
214 | $tabcont .= '<p><a '.OIDplus::gui()->link('oidplus:forgot_password').'>'._L('Forgot password?').'</a><br>'; |
215 | 215 | ||
216 | $invitePlugin = OIDplus::getPluginByOid('1.3.6.1.4.1.37476.2.5.2.4.2.92'); // OIDplusPageRaInvite |
216 | $invitePlugin = OIDplus::getPluginByOid('1.3.6.1.4.1.37476.2.5.2.4.2.92'); // OIDplusPageRaInvite |
Line 250... | Line 250... | ||
250 | if (OIDplus::authUtils()->isAdminLoggedIn()) { |
250 | if (OIDplus::authUtils()->isAdminLoggedIn()) { |
251 | $tabcont .= '<p>'._L('You are logged in as administrator.').'</p>'; |
251 | $tabcont .= '<p>'._L('You are logged in as administrator.').'</p>'; |
252 | $tabcont .= '<a href="#" onclick="return OIDplusPagePublicLogin.adminLogout();">'._L('Logout').'</a>'; |
252 | $tabcont .= '<a href="#" onclick="return OIDplusPagePublicLogin.adminLogout();">'._L('Logout').'</a>'; |
253 | } else { |
253 | } else { |
254 | $tabcont .= '<form action="javascript:void(0);" onsubmit="return OIDplusPagePublicLogin.adminLoginOnSubmit(this);">'; |
254 | $tabcont .= '<form action="javascript:void(0);" onsubmit="return OIDplusPagePublicLogin.adminLoginOnSubmit(this);">'; |
255 | $tabcont .= '<div><label class="padding_label">'._L('Password').':</label><input type="password" name="password" value="" id="adminLoginPassword"></div>'; |
255 | $tabcont .= '<div><label class="padding_label" for="adminLoginPassword">'._L('Password').':</label><input type="password" name="password" value="" id="adminLoginPassword"></div>'; |
256 | $tabcont .= '<br><input type="submit" value="'._L('Login').'"><br><br>'; |
256 | $tabcont .= '<br><input type="submit" value="'._L('Login').'"><br><br>'; |
257 | $tabcont .= '</form>'; |
257 | $tabcont .= '</form>'; |
258 | $tabcont .= '<p><a '.OIDplus::gui()->link('oidplus:forgot_password_admin').'>'._L('Forgot password?').'</a><br>'; |
258 | $tabcont .= '<p><a '.OIDplus::gui()->link('oidplus:forgot_password_admin').'>'._L('Forgot password?').'</a><br>'; |
259 | } |
259 | } |
260 | $out['text'] .= OIDplus::gui()->tabContentPage('admin', $tabcont, $tab === 'admin'); |
260 | $out['text'] .= OIDplus::gui()->tabContentPage('admin', $tabcont, $tab === 'admin'); |