install.php
changeset 10 2f530ad04f1b
parent 0 902822492a68
child 11 ccad6026a168
equal deleted inserted replaced
9:1e61232606d6 10:2f530ad04f1b
   895       // Are we supposed to drop any existing tables? If so, do it now
   895       // Are we supposed to drop any existing tables? If so, do it now
   896       if(isset($_POST['drop_tables']))
   896       if(isset($_POST['drop_tables']))
   897       {
   897       {
   898         echo 'Dropping existing Enano tables...';
   898         echo 'Dropping existing Enano tables...';
   899         // Our list of tables included in Enano
   899         // Our list of tables included in Enano
   900         $tables = Array( 'mdg_categories', 'mdg_comments', 'mdg_config', 'mdg_logs', 'mdg_page_text', 'mdg_session_keys', 'mdg_pages', 'mdg_users', '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' );
   900         $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' );
   901         $tables = implode(', ', $tables);
   901         $tables = implode(', ', $tables);
   902         $tables = str_replace('mdg_', $_POST['table_prefix'], $tables);
   902         $tables = str_replace('mdg_', $_POST['table_prefix'], $tables);
   903         $query_of_death = 'DROP TABLE '.$tables.';';
   903         $query_of_death = 'DROP TABLE '.$tables.';';
   904         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
   904         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
   905         echo 'done!<br />';
   905         echo 'done!<br />';