Subversion Repositories oidplus

Rev

Rev 709 | Rev 830 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 709 Rev 801
Line 70... Line 70...
70
                echo '<p><font color="red"><b>'.htmlentities($e->getMessage()).'</b></font></p>';
70
                echo '<p><font color="red"><b>'.htmlentities($e->getMessage()).'</b></font></p>';
71
                $errors_happened = true;
71
                $errors_happened = true;
72
                $edits_possible = false;
72
                $edits_possible = false;
73
        }
73
        }
74
}
74
}
75
echo OIDplus::getActiveCaptchaPlugin()->captchaGenerate(_L('Before logging in, please solve the following CAPTCHA'), _L('If the CAPTCHA does not work (e.g. because of wrong keys, please run <a href="%1">setup part 1</a> again or edit %2 manually).',OIDplus::webpath().'setup/','userdata/baseconfig/config.inc.php'));
75
echo OIDplus::getActiveCaptchaPlugin()->captchaGenerate(_L('Before logging in, please solve the following CAPTCHA'), _L('If the CAPTCHA does not work (e.g. because of wrong keys, please run <a href="%1">setup part 1</a> again or edit %2 manually).',OIDplus::webpath(null,OIDplus::PATH_RELATIVE).'setup/','userdata/baseconfig/config.inc.php'));
76
 
76
 
77
echo '<p><u>'._L('Step %1: Authenticate',$step++).'</u></p>';
77
echo '<p><u>'._L('Step %1: Authenticate',$step++).'</u></p>';
78
 
78
 
79
if (OIDplus::authUtils()->isAdminLoggedIn()) {
79
if (OIDplus::authUtils()->isAdminLoggedIn()) {
80
 
80
 
Line 82... Line 82...
82
 
82
 
83
} else {
83
} else {
84
 
84
 
85
        echo '<p>'._L('Please enter the administrator password you have entered before.').'</p>';
85
        echo '<p>'._L('Please enter the administrator password you have entered before.').'</p>';
86
 
86
 
87
        echo '<p><input type="password" name="admin_password" value=""> (<a href="'.OIDplus::webpath().'setup/">'._L('Forgot password?').'</a>) ';
87
        echo '<p><input type="password" name="admin_password" value=""> (<a href="'.OIDplus::webpath(null,OIDplus::PATH_RELATIVE).'setup/">'._L('Forgot password?').'</a>) ';
88
 
88
 
89
        if (isset($_REQUEST['sent'])) {
89
        if (isset($_REQUEST['sent'])) {
90
                if (!OIDplus::authUtils()->adminCheckPassword(isset($_REQUEST['admin_password']) ? $_REQUEST['admin_password'] : '')) {
90
                if (!OIDplus::authUtils()->adminCheckPassword(isset($_REQUEST['admin_password']) ? $_REQUEST['admin_password'] : '')) {
91
                        $errors_happened = true;
91
                        $errors_happened = true;
92
                        $edits_possible = false;
92
                        $edits_possible = false;