$php_root_path = ".."; require_once "{$php_root_path}/includes/include_all_fns.inc"; require_once "{$php_root_path}/includes/page_includes/page_fns.php"; $err_message = " Unable to process your request due to the following problems: <br>\n"; $homepage->showmenu = 0; if ($_POST["Submit"] == "Download" && $_POST["final"]) { // the next three lines force an immediate download of the zip file: // header("Content-type: application/octet-stream"); header('Content-Type: text/x-delimtext; name="preferences.inc"'); header('Content-disposition: attachment; filename="preferences.inc"'); echo stripslashes($_POST["final"]); exit; } $error_array = array(); $exempt_array = array_merge(get_user_details_form_exemptions(), array("DB_PREFIX", "DB_PASSWORD")); check_form($_POST, $error_array, &$exempt_array); if ($_POST["pwdConfirm"] != $_POST["password"]) { $error_array["password"][] = " Your new password and confirmation password are inconsistent. <br>\n"; $error_array["pwdConfirm"][] = " Your new password and confirmation password are inconsistent. <br>\n"; do_html_header("Setup Database", &$err_message); } else { // echo "<br>\ncount: " . count ( $error_array ) . "<br>\n" ; if (count($error_array) == 0 && count($_POST) > 0) { // echo "<br>\nBOLD First<br>\n" ; // $link = mysql_connect($_POST["db_hosdtname"], $_POST["db_username"], $_POST["db_pwd"]) // or die("Could not connect"); // exit ; include '../install/process_install.php'; // echo "<br>\nBOLD Last<br>\n" ; } else {
<?php $php_root_path = ".."; require_once "{$php_root_path}/includes/include_all_fns.inc"; require_once "{$php_root_path}/includes/page_includes/page_fns.php"; session_start(); $err_message = " Unable to process your request due to the following problems: <br>\n"; $header = "Edit Personal Details"; $accepted_privilegeID_arr = array(1 => ""); $accepted_phaseID_arr = array(1 => "", 2 => "", 3 => "", 4 => ""); authentication($header, $accepted_privilegeID_arr, $accepted_phaseID_arr, $homepage, $php_root_path, $GLOBALS["DB_PREFIX"], &$err_message); $error_array = array(); $exempt_array = get_user_details_form_exemptions(); check_form($_POST, $error_array, &$exempt_array); // echo dump_array($error_array); if (count($error_array) == 0 && count($_POST) > 0) { if ($_POST["submit"] == "Update") { if ($result = update_details($_POST, &$err_message)) { do_html_header("Personal Details Updated Successfully", &$err_message); echo " Your personal information was updated successfully. <br><br><a href='edit_details.php'>View</a> your updated details?<br>\n"; do_html_footer($err_message); exit; } else { do_html_header("Updating Personal Details Failed...", &$err_message); $err_message .= "<br><br> Try <a href='edit_details.php'>again</a>?<br>\n"; } } else { if ($_POST["submit"] == "Undo Changes") { //Redirect to the same page to undo changes $str = "Location: edit_details.php"; header($str);