Revision 1737
Added by Dietmar about 12 years ago
save.php | ||
---|---|---|
42 | 42 |
if(isset($message) AND $message != '') { |
43 | 43 |
// Copy values entered into session so user doesn't have to re-enter everything |
44 | 44 |
if(isset($_POST['website_title'])) { |
45 |
$_SESSION['wb_url'] = $_POST['wb_url'];
|
|
45 |
$_SESSION['website_title'] = $_POST['website_title'];
|
|
46 | 46 |
$_SESSION['default_timezone'] = $_POST['default_timezone']; |
47 | 47 |
$_SESSION['default_language'] = $_POST['default_language']; |
48 | 48 |
if(!isset($_POST['operating_system'])) { |
... | ... | |
57 | 57 |
} |
58 | 58 |
$_SESSION['database_host'] = $_POST['database_host']; |
59 | 59 |
$_SESSION['database_username'] = $_POST['database_username']; |
60 |
$_SESSION['database_password'] = $_POST['database_password'];
|
|
60 |
$_SESSION['database_password'] = '';
|
|
61 | 61 |
$_SESSION['database_name'] = $_POST['database_name']; |
62 | 62 |
$_SESSION['table_prefix'] = $_POST['table_prefix']; |
63 | 63 |
if(!isset($_POST['install_tables'])) { |
64 |
$_SESSION['install_tables'] = false;
|
|
64 |
$_SESSION['install_tables'] = true;
|
|
65 | 65 |
} else { |
66 | 66 |
$_SESSION['install_tables'] = true; |
67 | 67 |
} |
68 | 68 |
$_SESSION['website_title'] = $_POST['website_title']; |
69 | 69 |
$_SESSION['admin_username'] = $_POST['admin_username']; |
70 | 70 |
$_SESSION['admin_email'] = $_POST['admin_email']; |
71 |
$_SESSION['admin_password'] = $_POST['admin_password'];
|
|
72 |
$_SESSION['admin_repassword'] = $_POST['admin_repassword'];
|
|
71 |
$_SESSION['admin_password'] = '';
|
|
72 |
$_SESSION['admin_repassword'] = '';
|
|
73 | 73 |
} |
74 | 74 |
// Set the message |
75 | 75 |
$_SESSION['message'] = $message; |
... | ... | |
479 | 479 |
." ('wbmailer_smtp_password', '')," |
480 | 480 |
." ('fingerprint_with_ip_octets', '2')," |
481 | 481 |
." ('secure_form_module', '')," |
482 |
." ('groups_updated', 'time()' ),"
|
|
482 |
." ('groups_updated', '".time()."' ),"
|
|
483 | 483 |
." ('page_extended', 'true')," |
484 | 484 |
." ('mediasettings', '')"; |
485 | 485 |
$database->query($settings_rows); |
Also available in: Unified diff
! set stored passwords in $session to empty string
! installer now detect browser language and operating_system