Ignore:
Timestamp:
03/10/08 09:18:37 (16 years ago)
Author:
niltonneto
Message:

ver Ticket #154 e #155;
Otimizar verificação do Fora de Escritório;
Otimizar código que salva as preferências;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.db_functions.inc.php

    r163 r205  
    158158                return $stringDropDownContacts;  
    159159        } 
    160          
     160        /* 
    161161        function update_preferences($params){ 
    162162                 
     
    212212                else 
    213213                        return "OK!"; 
     214        } 
     215        */ 
     216        function update_preferences($params){ 
     217                $string_serial = urldecode($params['prefe_string']);                             
     218                $string_serial = get_magic_quotes_gpc() ? $string_serial : addslashes($string_serial); 
     219                $query = "update phpgw_preferences set preference_value = '".$string_serial."' where preference_app = 'expressoMail'". 
     220                                 " and preference_owner = '".$this->user_id."'"; 
     221                 
     222                if (!$this->db->query($query)) 
     223                return $this->db->error; 
     224                else 
     225                        return array("success" => true); 
    214226        } 
    215227        function getUserByEmail($params){        
Note: See TracChangeset for help on using the changeset viewer.