install.php
changeset 80 cb7dde69c301
parent 73 0a74676a2f2f
child 82 03c7f5ec1e4c
equal deleted inserted replaced
79:5faff33a6580 80:cb7dde69c301
   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>
   815             Allow administrative embedding of PHP:<br />
   815             Allow administrators to embed PHP code into pages:<br />
   816             <small><span style="color: #D84308">Do not under any circumstances enable this option without reading these
   816             <small><span style="color: #D84308">Do not under any circumstances enable this option without reading these
   817                    <a href="install.php?mode=pophelp&amp;topic=admin_embed_php"
   817                    <a href="install.php?mode=pophelp&amp;topic=admin_embed_php"
   818                       onclick="window.open(this.href, 'pophelpwin', 'width=550,height=400,status=no,toolbars=no,toolbar=no,address=no,scroll=yes'); return false;"
   818                       onclick="window.open(this.href, 'pophelpwin', 'width=550,height=400,status=no,toolbars=no,toolbar=no,address=no,scroll=yes'); return false;"
   819                       style="color: #D84308; text-decoration: underline;">important security implications</a>.
   819                       style="color: #D84308; text-decoration: underline;">important security implications</a>.
   820             </span></small>
   820             </span></small>
  1008       // Are we supposed to drop any existing tables? If so, do it now
  1008       // Are we supposed to drop any existing tables? If so, do it now
  1009       if(isset($_POST['drop_tables']))
  1009       if(isset($_POST['drop_tables']))
  1010       {
  1010       {
  1011         echo 'Dropping existing Enano tables...';
  1011         echo 'Dropping existing Enano tables...';
  1012         // Our list of tables included in Enano
  1012         // Our list of tables included in Enano
  1013         $tables = Array( 'mdg_categories', 'mdg_comments', 'mdg_config', 'mdg_logs', 'mdg_page_text', 'mdg_session_keys', 'mdg_pages', 'mdg_users', 'mdg_users_extra', 'mdg_themes', 'mdg_buddies', 'mdg_banlist', 'mdg_files', 'mdg_privmsgs', 'mdg_sidebar', 'mdg_hits', 'mdg_search_index', 'mdg_groups', 'mdg_group_members', 'mdg_acl', 'mdg_search_cache' );
  1013         $tables = Array( 'mdg_categories', 'mdg_comments', 'mdg_config', 'mdg_logs', 'mdg_page_text', 'mdg_session_keys', 'mdg_pages', 'mdg_users', 'mdg_users_extra', 'mdg_themes', 'mdg_buddies', 'mdg_banlist', 'mdg_files', 'mdg_privmsgs', 'mdg_sidebar', 'mdg_hits', 'mdg_search_index', 'mdg_groups', 'mdg_group_members', 'mdg_acl', 'mdg_search_cache', 'mdg_tags', 'mdg_page_groups', 'mdg_page_group_members' );
  1014         $tables = implode(', ', $tables);
  1014         $tables = implode(', ', $tables);
  1015         $tables = str_replace('mdg_', $_POST['table_prefix'], $tables);
  1015         $tables = str_replace('mdg_', $_POST['table_prefix'], $tables);
  1016         $query_of_death = 'DROP TABLE '.$tables.';';
  1016         $query_of_death = 'DROP TABLE '.$tables.';';
  1017         mysql_query($query_of_death); // We won't check for errors here because if this operation fails it probably means the tables didn't exist
  1017         mysql_query($query_of_death); // We won't check for errors here because if this operation fails it probably means the tables didn't exist
  1018         echo 'done!<br />';
  1018         echo 'done!<br />';