diff --git a/database-config-process.php b/database-config-process.php new file mode 100644 index 0000000..8ea252e --- /dev/null +++ b/database-config-process.php @@ -0,0 +1,86 @@ +. +See AUTHORS to learn who helped make it become a reality. + +*/#### #### #### #### #### #### #### #### #### #### + + +include 'include.php'; + + + +// General variables +$szRedirectLink = ""; +$szDescription = ""; + +if( !isset($_POST['databaseConfig']) ) + $_POST['databaseConfig'] = ""; + +if($_POST['databaseConfig'] == "DatabaseConfiguration") +{ + /*! + * Update database name setting + !*/ + if ($_POST['database'] != "") + $_SESSION['database'] = $_POST['database']; + else + $_SESSION['database'] = _DBNAME; + + /*! + * Update language setting + !*/ + if ((eregi("^[a-z]+$", $_POST['language'])) and (strlen($_POST['language']) == 2)) + $_SESSION['language'] = $_POST['language']; + else + $_SESSION['language'] = 'en'; // default + +} + +$szRedirectLink = "database-config.php"; +$szDescription = "Your Personal user settings have been updated"; + +?> + + + + +"; +?> + +Redirecting + +



+
+".$szDescription."

"; +echo "You will be redirected to this page in 1 second."; + +?> +
+ + \ No newline at end of file diff --git a/database-config.php b/database-config.php new file mode 100644 index 0000000..59ded67 --- /dev/null +++ b/database-config.php @@ -0,0 +1,77 @@ +. +See AUTHORS to learn who helped make it become a reality. + +*/#### #### #### #### #### #### #### #### #### #### + + require("include.php"); + WriteStandardHeader(_MSGdatabaseConf); +?> + +
+
+ + +

..:: ::..

+ +
+ + + + + + + +
+ +
+ "; + while ($row = mysql_fetch_object($db_list)) + { + $temp = $row->Database; + $status_selected = ''; + if($_SESSION['database'] == $temp) + { + $status_selected = ' selected'; + } + echo ""; + } + echo ""; + ?> +
+
+ + +
+ + + \ No newline at end of file