Project

General

Profile

« Previous | Next » 

Revision 1792

Added by Dietmar about 12 years ago

! all changes in folder account, Signup with confirmation Mail
! frontend.css now included by account script

View differences:

details.php
26 26

  
27 27
// Get entered values
28 28
	$display_name = strip_tags($wb->StripCodeFromText($wb->get_post('display_name')));
29
	$language = strip_tags($wb->StripCodeFromText($wb->get_post('language')));
29
	$sUserLanguage = strip_tags($wb->StripCodeFromText($wb->get_post('language')));
30 30
	$timezone = intval($wb->StripCodeFromText($wb->get_post('timezone')))*60*60;
31 31
	$date_format = strip_tags($wb->StripCodeFromText($wb->get_post('date_format')));
32 32
	$time_format = strip_tags($wb->StripCodeFromText($wb->get_post('time_format')));
33 33

  
34
// Update the database
35
// $database = new database();
34
//  Update the database
36 35
	$sql  = "UPDATE `".TABLE_PREFIX."users` SET ";
37
	$sql .= "`display_name` = '".$display_name."', `language` = '".$language."', ";
36
	$sql .= "`display_name` = '".$display_name."', `language` = '".$sUserLanguage."', ";
38 37
	$sql .= "`timezone` = '".$timezone."', `date_format` = '".$date_format."', ";
39 38
	$sql .= "`time_format` = '".$time_format."' ";
40 39
	$sql .=	"WHERE `user_id` = '".$wb->get_user_id()."'";
......
44 43
	} else {
45 44
		$success[] = $MOD_PREFERENCE['DETAILS_SAVED'];
46 45
		$_SESSION['DISPLAY_NAME'] = $display_name;
47
		$_SESSION['LANGUAGE'] = $language;
46
		$_SESSION['LANGUAGE'] = $sUserLanguage;
48 47
		$_SESSION['TIME_FORMAT'] = $time_format;
49 48
		$_SESSION['DATE_FORMAT'] = $date_format;
50 49
		$_SESSION['TIMEZONE'] = $timezone;

Also available in: Unified diff