summaryrefslogtreecommitdiff
path: root/includes/install_database_reset.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/install_database_reset.php')
-rw-r--r--includes/install_database_reset.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/includes/install_database_reset.php b/includes/install_database_reset.php
new file mode 100644
index 0000000..fbbc383
--- /dev/null
+++ b/includes/install_database_reset.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * @version $Header$
+ * @package install
+ * @subpackage functions
+ */
+
+// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
+// All Rights Reserved. See below for details and a complete list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
+
+// assign next step in installation process
+$gBitSmarty->assign( 'next_step',$step );
+//vd($_REQUEST);
+if( isset( $_REQUEST['continue_install'] ) ) {
+ header( 'Location: '.INSTALL_PKG_URL.'install.php?step='.( $step + 1 ) );
+} elseif( isset( $_REQUEST['reset_config_inc'] ) ) {
+ $fw = fopen($config_file, 'w' );
+ if( isset( $fw ) ) {
+ fwrite( $fw, '');
+ fclose( $fw );
+ }
+ header( 'Location: '.INSTALL_PKG_URL.'install.php' );
+}
+?>