Server IP : 184.154.167.98 / Your IP : 18.191.195.57 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/mesa/include/ |
Upload File : |
<?php /********************************************************************* class.log.php Log Peter Rotich <peter@osticket.com> Copyright (c) 2006-2013 osTicket http://www.osticket.com Released under the GNU General Public License WITHOUT ANY WARRANTY. See LICENSE.TXT for details. vim: expandtab sw=4 ts=4 sts=4: **********************************************************************/ class Log { var $id; var $info; function __construct($id){ $this->id=0; return $this->load($id); } function load($id){ $sql='SELECT * FROM '.SYSLOG_TABLE.' WHERE log_id='.db_input($id); if(!($res=db_query($sql)) || !db_num_rows($res)) return false; $this->info=db_fetch_array($res); $this->id=$this->info['log_id']; return $this->id; } function reload(){ return $this->load($this->getId()); } function getId(){ return $this->id; } function getType(){ return $this->info['log_type']; } function getTitle(){ return $this->info['title']; } function getText(){ return $this->info['log']; } function getIp(){ return $this->info['ip_address']; } function getCreateDate(){ return $this->info['created']; } function getInfo(){ return $this->info; } /*** static function ***/ static function lookup($id){ return ($id && is_numeric($id) && ($l= new Log($id)) && $l->getId()==$id)?$l:null; } } ?>