[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /***************************************************************************\ 3 * eGroupWare - log * 4 * http://www.egroupware.org * 5 * Written by : Jerry Westrick [jerry@westrick.com] * 6 * ------------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \***************************************************************************/ 12 13 /* $Id: class.bolog.inc.php 20295 2006-02-15 12:31:25Z $ */ 14 15 class bolog 16 { 17 var $public_functions = array 18 ( 19 'read_log' => True 20 ); 21 22 function bolog($session=False) 23 { 24 $this->so =& CreateObject('admin.solog'); 25 } 26 27 function get_error_cols() 28 { 29 $fields = $this->so->get_error_cols(); 30 // boAccounts 31 $fields['account_pwd']['include'] = false; 32 return $fields; 33 } 34 35 function get_error_cols_e() 36 { 37 $fields = $this->so->get_error_cols_e(); 38 $fields['log_date_e'] = array(); 39 $fields['log_msg_date_e'] = array(); 40 $fields['log_full_name'] = array(); 41 // boAccounts 42 $fields['account_pwd']['include'] = false; 43 $fields['account_lastlogin_e'] = array(); 44 $fields['account_lastloginfrom_e'] = array(); 45 $fields['account_lastpwd_change_e'] = array(); 46 return $fields; 47 } 48 49 function get_error($values='') 50 { 51 $rows = $this->so->get_error($values); 52 // should remove the accounts_pwd 53 return $rows; 54 } 55 56 function get_no_errors() 57 { 58 $rows = $this->so->get_no_errors(); 59 return $rows; 60 } 61 62 function get_error_e($values='') 63 { 64 $rows = $this->so->get_error_e($values); 65 66 // Enhance the fields 67 reset($rows); 68 while(list($rno,$r)=each($rows)) 69 { 70 unset($r['acount_pwd']); // remove the accounts_pwd 71 $r['log_date_e']['value'] = $GLOBALS['egw']->common->show_date($GLOBALS['egw']->db->from_timestamp($r['log_date']['value'])); 72 $r['log_msg_date_e']['value'] = $GLOBALS['egw']->common->show_date($GLOBALS['egw']->db->from_timestamp($r['log_msg_date']['value'])); 73 $r['log_full_name']['value'] = $r['account_lastname']['value'] . ', ' .$r['account_firstname']['value']; 74 $r['account_lastlogin_e']['value'] = $GLOBALS['egw']->common->show_date($GLOBALS['egw']->db->from_timestamp($r['account_lastlogin']['value'])); 75 $r['account_lastpwd_change_e']['value'] = $GLOBALS['egw']->common->show_date($GLOBALS['egw']->db->from_timestamp($r['account_lastpwd_change']['value'])); 76 $r['account_lastloginfrom_e']['value'] = 'www.nowhere.com'; 77 78 $r['log_msg_text']['value'] = lang($r['log_msg_msg']['value'],explode('|',$r['log_msg_parms']['value'])); 79 80 $rows[$rno]=$r; 81 } 82 return $rows; 83 } 84 } 85 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |