install.php
changeset 98 6457a9b983c6
parent 91 8079b0288e8e
child 119 9de392a67964
child 129 0b5244001799
equal deleted inserted replaced
97:293148ad7a70 98:6457a9b983c6
   214                        the site with you, you should enable this to allow extreme customization of pages.</p>
   214                        the site with you, you should enable this to allow extreme customization of pages.</p>
   215                     <p>Leave this option off if you are at all concerned about security – if your account is compromised and PHP embedding
   215                     <p>Leave this option off if you are at all concerned about security – if your account is compromised and PHP embedding
   216                        is enabled, an attacker can run arbitrary code on your server! Enabling this will also allow administrators to
   216                        is enabled, an attacker can run arbitrary code on your server! Enabling this will also allow administrators to
   217                        embed Javascript and arbitrary HTML and CSS.</p>
   217                        embed Javascript and arbitrary HTML and CSS.</p>
   218                     <p>If you don\'t have experience coding in PHP, you can safely disable this option. You may change this at any time
   218                     <p>If you don\'t have experience coding in PHP, you can safely disable this option. You may change this at any time
   219                        using the ACL editor by selecting the Administrators group and This Entire Website under the scope selection, or by
   219                        using the ACL editor by selecting the Administrators group and This Entire Website under the scope selection. <!-- , or by
   220                        using the "embedded PHP kill switch" in the administration panel.</p>';
   220                        using the "embedded PHP kill switch" in the administration panel. --></p>';
   221         break;
   221         break;
   222       default:
   222       default:
   223         $title = 'Invalid topic';
   223         $title = 'Invalid topic';
   224         $content = 'Invalid help topic.';
   224         $content = 'Invalid help topic.';
   225         break;
   225         break;
   757     <script type="text/javascript">
   757     <script type="text/javascript">
   758       function verify()
   758       function verify()
   759       {
   759       {
   760         var frm = document.forms.login;
   760         var frm = document.forms.login;
   761         ret = true;
   761         ret = true;
   762         if(frm.admin_user.value.match(/^([A-z0-9 \-\.]+)$/g))
   762         if ( frm.admin_user.value.match(/^([A-z0-9 \-\.]+)$/g) && !frm.admin_user.value.match(/^(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/) && frm.admin_user.value.toLowerCase() != 'anonymous' )
   763         {
   763         {
   764           document.getElementById('s_user').src = 'images/good.gif';
   764           document.getElementById('s_user').src = 'images/good.gif';
   765         }
   765         }
   766         else
   766         else
   767         {
   767         {
   804           echo '<input type="hidden" name="'.htmlspecialchars($k[$i]).'" value="'.htmlspecialchars($_POST[$k[$i]]).'" />'."\n";
   804           echo '<input type="hidden" name="'.htmlspecialchars($k[$i]).'" value="'.htmlspecialchars($_POST[$k[$i]]).'" />'."\n";
   805         }
   805         }
   806       ?>
   806       ?>
   807       <p>Next, enter your desired username and password. The account you create here will be used to administer your site.</p>
   807       <p>Next, enter your desired username and password. The account you create here will be used to administer your site.</p>
   808       <table border="0">
   808       <table border="0">
   809         <tr><td><b>Administration username</b><br />The administration username you will use to log into your site.</td><td><input onkeyup="verify();" name="admin_user" type="text" size="30" /></td><td><img id="s_user" alt="Good/bad icon" src="images/bad.gif" /></td></tr>
   809         <tr><td><b>Administration username</b><br /><small>The administration username you will use to log into your site.<br />This cannot be "anonymous" or in the form of an IP address.</small></td><td><input onkeyup="verify();" name="admin_user" type="text" size="30" /></td><td><img id="s_user" alt="Good/bad icon" src="images/bad.gif" /></td></tr>
   810         <tr><td>Administration password:</td><td><input onkeyup="verify();" name="admin_pass" type="password" size="30" /></td><td rowspan="2"><img id="s_password" alt="Good/bad icon" src="images/bad.gif" /></td></tr>
   810         <tr><td>Administration password:</td><td><input onkeyup="verify();" name="admin_pass" type="password" size="30" /></td><td rowspan="2"><img id="s_password" alt="Good/bad icon" src="images/bad.gif" /></td></tr>
   811         <tr><td>Enter it again to confirm:</td><td><input onkeyup="verify();" name="admin_pass_confirm" type="password" size="30" /></td></tr>
   811         <tr><td>Enter it again to confirm:</td><td><input onkeyup="verify();" name="admin_pass_confirm" type="password" size="30" /></td></tr>
   812         <tr><td>Your e-mail address:</td><td><input onkeyup="verify();" name="admin_email" type="text" size="30" /></td><td><img id="s_email" alt="Good/bad icon" src="images/bad.gif" /></td></tr>
   812         <tr><td>Your e-mail address:</td><td><input onkeyup="verify();" name="admin_email" type="text" size="30" /></td><td><img id="s_email" alt="Good/bad icon" src="images/bad.gif" /></td></tr>
   813         <tr>
   813         <tr>
   814           <td>
   814           <td>