Server IP : 184.154.167.98 / Your IP : 3.148.105.127 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/scp/ |
Upload File : |
<?php /********************************************************************* dashboard.php Staff's Dashboard - basic stats...etc. 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('staff.inc.php'); require_once INCLUDE_DIR . 'class.report.php'; if ($_POST['export']) { $report = new OverviewReport($_POST['start'], $_POST['period']); switch (true) { case ($data = $report->getTabularData($_POST['export'])): $ts = date('Ymd'); $group = Format::slugify($_POST['export']); $delimiter = ','; if (class_exists('NumberFormatter')) { $nf = NumberFormatter::create(Internationalization::getCurrentLocale(), NumberFormatter::DECIMAL); $s = $nf->getSymbol(NumberFormatter::DECIMAL_SEPARATOR_SYMBOL); if ($s == ',') $delimiter = ';'; } Http::download("stats-$group-$ts.csv", 'text/csv'); $output = fopen('php://output', 'w'); fputs($output, chr(0xEF) . chr(0xBB) . chr(0xBF)); fputcsv($output, $data['columns'], $delimiter); foreach ($data['data'] as $row) fputcsv($output, $row, $delimiter); exit; } } $nav->setTabActive('dashboard'); $ost->addExtraHeader('<meta name="tip-namespace" content="dashboard.dashboard" />', "$('#content').data('tipNamespace', 'dashboard.dashboard');"); require(STAFFINC_DIR.'header.inc.php'); require_once(STAFFINC_DIR.'dashboard.inc.php'); include(STAFFINC_DIR.'footer.inc.php'); ?>