Subversion Repositories oidplus

Rev

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

Rev 206 Rev 227
Line 66... Line 66...
66
        echo '<noscript>';
66
        echo '<noscript>';
67
        echo '<p><font color="red">You need to enable JavaScript to solve the CAPTCHA.</font></p>';
67
        echo '<p><font color="red">You need to enable JavaScript to solve the CAPTCHA.</font></p>';
68
        echo '</noscript>';
68
        echo '</noscript>';
69
        echo '<script> grecaptcha.render(document.getElementById("g-recaptcha"), { "sitekey" : "'.RECAPTCHA_PUBLIC.'" }); </script>';
69
        echo '<script> grecaptcha.render(document.getElementById("g-recaptcha"), { "sitekey" : "'.RECAPTCHA_PUBLIC.'" }); </script>';
70
        echo '<p>Before logging in, please solve the following CAPTCHA</p>';
70
        echo '<p>Before logging in, please solve the following CAPTCHA</p>';
71
        echo '<p>If the CAPTCHA does not work (e.g. because of wrong keys, please run <a href="<?php echo OIDplus::system_url(); ?>setup/">setup part 1</a> again or edit includes/config.inc.php).</p>';
71
        echo '<p>If the CAPTCHA does not work (e.g. because of wrong keys, please run <a href="<?php echo OIDplus::getSystemUrl(); ?>setup/">setup part 1</a> again or edit includes/config.inc.php).</p>';
72
        echo '<div id="g-recaptcha" class="g-recaptcha" data-sitekey="'.RECAPTCHA_PUBLIC.'"></div>';
72
        echo '<div id="g-recaptcha" class="g-recaptcha" data-sitekey="'.RECAPTCHA_PUBLIC.'"></div>';
73
 
73
 
74
        if (isset($_REQUEST['sent'])) {
74
        if (isset($_REQUEST['sent'])) {
75
                $secret=RECAPTCHA_PRIVATE;
75
                $secret=RECAPTCHA_PRIVATE;
76
                $response=$_POST["g-recaptcha-response"];
76
                $response=$_POST["g-recaptcha-response"];
Line 87... Line 87...
87
 
87
 
88
<p><u>Step <?php echo $step++; ?>: Authentificate</u></p>
88
<p><u>Step <?php echo $step++; ?>: Authentificate</u></p>
89
 
89
 
90
<p>Please enter the administrator password you have entered before.</p>
90
<p>Please enter the administrator password you have entered before.</p>
91
 
91
 
92
<p><input type="password" name="admin_password" value=""> (<a href="<?php echo OIDplus::system_url(); ?>setup/">Forgot?</a>) <?php
92
<p><input type="password" name="admin_password" value=""> (<a href="<?php echo OIDplus::getSystemUrl(); ?>setup/">Forgot?</a>) <?php
93
 
93
 
94
if (isset($_REQUEST['sent'])) {
94
if (isset($_REQUEST['sent'])) {
95
        if (!OIDplusAuthUtils::adminCheckPassword($_REQUEST['admin_password'])) {
95
        if (!OIDplusAuthUtils::adminCheckPassword($_REQUEST['admin_password'])) {
96
                $errors_happened = true;
96
                $errors_happened = true;
97
                $edits_possible = false;
97
                $edits_possible = false;
Line 155... Line 155...
155
 
155
 
156
<?php
156
<?php
157
 
157
 
158
$enabled_ary = array();
158
$enabled_ary = array();
159
 
159
 
160
foreach (OIDplus::getRegisteredObjectTypes() as $ot) {
160
foreach (OIDplus::getEnabledObjectTypes() as $ot) {
161
        echo '<input type="checkbox" name="enable_ot_'.$ot::ns().'" id="enable_ot_'.$ot::ns().'"';
161
        echo '<input type="checkbox" name="enable_ot_'.$ot::ns().'" id="enable_ot_'.$ot::ns().'"';
162
        if (isset($_REQUEST['sent'])) {
162
        if (isset($_REQUEST['sent'])) {
163
                if (isset($_REQUEST['enable_ot_'.$ot::ns()])) {
163
                if (isset($_REQUEST['enable_ot_'.$ot::ns()])) {
164
                        echo ' checked';
164
                        echo ' checked';
165
                        $enabled_ary[] = $ot::ns();
165
                        $enabled_ary[] = $ot::ns();
Line 281... Line 281...
281
?>
281
?>
282
 
282
 
283
<p><u>Your OIDplus system ID (derived from the public key) is:</u></p>
283
<p><u>Your OIDplus system ID (derived from the public key) is:</u></p>
284
 
284
 
285
1.3.6.1.4.1.37476.30.9.<b><?php
285
1.3.6.1.4.1.37476.30.9.<b><?php
286
echo htmlentities(OIDplus::system_id());
286
echo htmlentities(OIDplus::getSystemId());
287
?></b>
287
?></b>
288
 
288
 
289
<p><u>Your public key is</u></p>
289
<p><u>Your public key is</u></p>
290
 
290
 
291
<?php
291
<?php