Rev 985 | Rev 1030 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 985 | Rev 1020 | ||
---|---|---|---|
Line 116... | Line 116... | ||
116 | 116 | ||
117 | echo _L('CAPTCHA plugin').': <select name="captcha_plugin" onChange="captchaplugin_changed()" id="captcha_plugin">'; |
117 | echo _L('CAPTCHA plugin').': <select name="captcha_plugin" onChange="captchaplugin_changed()" id="captcha_plugin">'; |
118 | 118 | ||
119 | OIDplus::registerAllPlugins('captcha', 'OIDplusCaptchaPlugin', array('OIDplus','registerCaptchaPlugin')); |
119 | OIDplus::registerAllPlugins('captcha', 'OIDplusCaptchaPlugin', array('OIDplus','registerCaptchaPlugin')); |
120 | foreach (OIDplus::getCaptchaPlugins() as $plugin) { |
120 | foreach (OIDplus::getCaptchaPlugins() as $plugin) { |
121 | $selected = $plugin::id() === 'None' ? ' selected="true"' : ''; |
121 | $selected = strtolower($plugin::id()) === strtolower('None') ? ' selected="true"' : ''; // select "None" by default |
122 | echo '<option value="'.htmlentities($plugin::id()).'"'.$selected.'>'.htmlentities($plugin::id()).'</option>'; |
122 | echo '<option value="'.htmlentities($plugin::id()).'"'.$selected.'>'.htmlentities($plugin::id()).'</option>'; |
123 | } |
123 | } |
124 | 124 | ||
125 | echo '</select>'; |
125 | echo '</select>'; |
126 | 126 | ||
Line 137... | Line 137... | ||
137 | echo '<p><font color="red">'._L('ERROR: No CAPTCHA plugins were found! You CANNOT use OIDplus without the "%1" CAPTCHA plugin.','None').'</font></p>'; |
137 | echo '<p><font color="red">'._L('ERROR: No CAPTCHA plugins were found! You CANNOT use OIDplus without the "%1" CAPTCHA plugin.','None').'</font></p>'; |
138 | } |
138 | } |
139 | 139 | ||
140 | echo '</div>'; |
140 | echo '</div>'; |
141 | 141 | ||
142 | // Commented out, because it might confuse people during the OOBE |
- | |
143 | //echo '<p>'._L('Note: In case you are already operating a system, the users need to reload the webpage in order to receive the new CAPTCHA settings.').'</p>'; |
- | |
144 | - | ||
145 | // ---------------------------------------- |
142 | // ---------------------------------------- |
146 | 143 | ||
147 | $is_ssl = OIDplus::isSSL(); |
144 | $is_ssl = OIDplus::isSSL(); |
148 | echo '<h3>'._L('Secure connection (HTTPS)').'</h3>'; |
145 | echo '<h3>'._L('Secure connection (HTTPS)').'</h3>'; |
149 | echo '<p>'._L('Enforcement of a secure connection:').'<br><select name="enforce_ssl" id="enforce_ssl" onchange="rebuild()">'; |
146 | echo '<p>'._L('Enforcement of a secure connection:').'<br><select name="enforce_ssl" id="enforce_ssl" onchange="rebuild()">'; |
150 | echo '<option value="OIDplus::ENFORCE_SSL_NO">'._L('No SSL available (don\'t redirect)').'</option>'; |
147 | echo '<option value="OIDplus::ENFORCE_SSL_NO">'._L('No SSL available (don\'t redirect)').'</option>'; |
151 | echo '<option value="OIDplus::ENFORCE_SSL_YES"'.($is_ssl ? ' selected' : '').'>'._L('Enforce SSL (always redirect)').'</option>'; |
148 | echo '<option value="OIDplus::ENFORCE_SSL_YES"'.($is_ssl ? ' selected' : '').'>'._L('Enforce SSL (always redirect)').'</option>'; |
152 | echo '<option value="OIDplus::ENFORCE_SSL_AUTO"'.(!$is_ssl ? ' selected' : '').'>'._L('Intelligent SSL detection (redirect if port 443 is open)').'</option>'; |
149 | echo '<option value="OIDplus::ENFORCE_SSL_AUTO"'.(!$is_ssl ? ' selected' : '').'>'._L('Intelligent SSL detection (redirect if port 443 is open)').'</option>'; |
153 | echo '</select></p>'; |
150 | echo '</select></p>'; |
154 | echo '</form>'; |
- | |
155 | echo '</div>'; |
- | |
156 | 151 | ||
157 | // ---------------------------------------- |
152 | // ---------------------------------------- |
158 | 153 | ||
- | 154 | echo '<h3>'._L('Public URL of this system (Canonical URL)').'</h3>'; |
|
- | 155 | ||
- | 156 | echo '<p><input id="canonical_url" type="text" value="'.htmlentities(OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL)).'" onkeypress="rebuild()" onkeyup="rebuild()" style="width:550px"></p>'; |
|
- | 157 | ||
- | 158 | // ---------------------------------------- |
|
- | 159 | ||
- | 160 | echo '</form>'; |
|
- | 161 | echo '</div>'; |
|
- | 162 | ||
159 | echo '<div id="step2">'; |
163 | echo '<div id="step2">'; |
160 | echo '<h2>'._L('Step %1: Initialize database',2).'</h2>'; |
164 | echo '<h2>'._L('Step %1: Initialize database',2).'</h2>'; |
161 | echo '<p><font color="red"><b>'._L('If you already have an OIDplus database and just want to rebuild the config file, please skip this step.').'</b></font></p>'; |
165 | echo '<p><font color="red"><b>'._L('If you already have an OIDplus database and just want to rebuild the config file, please skip this step.').'</b></font></p>'; |
162 | echo '<p>'._L('Otherwise, import one of the following SQL dumps in your database:').'</p>'; |
166 | echo '<p>'._L('Otherwise, import one of the following SQL dumps in your database:').'</p>'; |
163 | echo '<p><ul>'; |
167 | echo '<p><ul>'; |