Changeset 1308


Ignore:
Timestamp:
08/11/09 17:07:53 (15 years ago)
Author:
amuller
Message:

Ticket #475 - Revertendo código usado para fora de escritório

Location:
trunk/expressoMail1_2
Files:
1 added
1 edited

Legend:

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

    r1186 r1308  
    278278                // Atualiza um email nos contatos dinamicos. 
    279279                if(!$this->db->update('phpgw_expressomail_contacts ','data=\''.serialize($contacts).'\'', 
    280                                                           'id_owner ='.$this -> user_id, 
    281                                                           __LINE__,__FILE__)) 
    282                 { 
    283                         return $this->db->Error; 
    284                 } 
    285         return $contacts; 
     280                        'id_owner ='.$this -> user_id, 
     281                        __LINE__,__FILE__)) 
     282                { 
     283                        return $this->db->Error; 
     284                } 
     285                return $contacts; 
    286286        }        
     287        function update_preferences($params){ 
     288                $string_serial = urldecode($params['prefe_string']);                             
     289                $string_serial = get_magic_quotes_gpc() ? $string_serial : addslashes($string_serial); 
     290                $query = "update phpgw_preferences set preference_value = '".$string_serial."' where preference_app = 'expressoMail'". 
     291                        " and preference_owner = '".$this->user_id."'"; 
     292 
     293                if (!$this->db->query($query)) 
     294                        return $this->db->error; 
     295                else 
     296                        return array("success" => true); 
     297        } 
    287298         
    288299        function insert_contact($contact)        
Note: See TracChangeset for help on using the changeset viewer.