Server IP : 184.154.167.98 / Your IP : 3.145.14.239 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/www/mesa/scp/ |
Upload File : |
<?php /********************************************************************* logs.php System Logs 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: **********************************************************************/ require('admin.inc.php'); if($_POST){ switch(strtolower($_POST['do'])){ case 'mass_process': if(!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) { $errors['err'] = sprintf(__('You must select at least %s.'), __('one log entry')); } else { $count=count($_POST['ids']); if($_POST['a'] && !strcasecmp($_POST['a'], 'delete')) { $sql='DELETE FROM '.SYSLOG_TABLE .' WHERE log_id IN ('.implode(',', db_input($_POST['ids'])).')'; if(db_query($sql) && ($num=db_affected_rows())){ if($num==$count) $msg=sprintf(__('Successfully deleted %s.'), _N('selected log entry', 'selected log entries', $count)); else $warn=sprintf(__('%1$d of %2$d %3$s deleted'), $num, $count, _N('selected log entry', 'selected log entries', $count)); } elseif(!$errors['err']) $errors['err']=sprintf(__('Unable to delete %s.'), _N('selected log entry', 'selected log entries', $count)); } else { $errors['err']=sprintf('%s - %s', __('Unknown action'), __('Get technical help!')); } } break; default: $errors['err']=__('Unknown action'); break; } } $page='syslogs.inc.php'; $nav->setTabActive('dashboard'); $ost->addExtraHeader('<meta name="tip-namespace" content="dashboard.system_logs" />', "$('#content').data('tipNamespace', 'dashboard.system_logs');"); require(STAFFINC_DIR.'header.inc.php'); require(STAFFINC_DIR.$page); include(STAFFINC_DIR.'footer.inc.php'); ?>