Created
January 25, 2011 06:51
-
-
Save boombatower/794582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git reinstall.php reinstall.php | |
new file mode 100644 | |
--- /dev/null | |
+++ reinstall.php | |
@@ -0,0 +1,15 @@ | |
+<?php | |
+define('DRUPAL_ROOT', getcwd()); | |
+ | |
+require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
+$profile = array_pop(explode('/', conf_path())); | |
+try { | |
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); | |
+ $tables = db_find_tables('%'); | |
+ foreach ($tables as $table) { | |
+ db_drop_table($table); | |
+ } | |
+} | |
+catch (Exception $e) { | |
+} | |
+header('Location: install.php?profile=' . $profile . '&locale=en'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment