inc/users.inc.php
changeset 183 aae57715199e
parent 126 cb06e3e29ed8
child 184 b60b88b1ae08
equal deleted inserted replaced
182:049347a649e0 183:aae57715199e
   710 
   710 
   711 		$query = "UPDATE users SET
   711 		$query = "UPDATE users SET
   712 				username = " . $db->quote($details['username']) . ",
   712 				username = " . $db->quote($details['username']) . ",
   713 				fullname = " . $db->quote($details['fullname']) . ",
   713 				fullname = " . $db->quote($details['fullname']) . ",
   714 				email = " . $db->quote($details['email']) . ",
   714 				email = " . $db->quote($details['email']) . ",
   715 				perm_templ = " . $db->quote($details['templ_id']) . ",
       
   716 				description = " . $db->quote($details['descr']) . ", 
   715 				description = " . $db->quote($details['descr']) . ", 
   717 				active = " . $db->quote($active) ;
   716 				active = " . $db->quote($active) ;
       
   717 
       
   718 		// If the user is alllowed to change the permission template, set it.
       
   719 		if ($perm_templ_perm_edit == "1") {
       
   720 			$query .= ", perm_templ = " . $db->quote($details['templ_id']) ;
       
   721 
       
   722 		}
   718 
   723 
   719 		// TODO Check if function works if password is set too.
   724 		// TODO Check if function works if password is set too.
   720 		if($details['password'] != "") {
   725 		if($details['password'] != "") {
   721 			$query .= ", password = '" . md5($db->quote($details['password'])) . "' ";
   726 			$query .= ", password = '" . md5($db->quote($details['password'])) . "' ";
   722 		}
   727 		}