PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
/
scp
<?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'); ?>
[+]
..
[-] admin.inc.php
[edit]
[-] admin.php
[edit]
[-] ajax.php
[edit]
[-] apikeys.php
[edit]
[+]
apps
[-] audits.php
[edit]
[-] autocron.php
[edit]
[-] banlist.php
[edit]
[-] canned.php
[edit]
[-] categories.php
[edit]
[+]
css
[-] dashboard.php
[edit]
[-] departments.php
[edit]
[-] directory.php
[edit]
[-] emails.php
[edit]
[-] emailsettings.php
[edit]
[-] emailtest.php
[edit]
[-] export.php
[edit]
[-] faq.php
[edit]
[-] filters.php
[edit]
[-] forms.php
[edit]
[-] helptopics.php
[edit]
[+]
images
[-] index.php
[edit]
[+]
js
[-] kb.php
[edit]
[-] lists.php
[edit]
[-] login.php
[edit]
[-] logo.php
[edit]
[-] logout.php
[edit]
[-] logs.php
[edit]
[-] orgs.php
[edit]
[-] pages.php
[edit]
[-] plugins.php
[edit]
[-] profile.php
[edit]
[-] pwreset.php
[edit]
[-] queues.php
[edit]
[-] roles.php
[edit]
[-] schedules.php
[edit]
[-] settings.php
[edit]
[-] slas.php
[edit]
[-] staff.inc.php
[edit]
[-] staff.php
[edit]
[-] system.php
[edit]
[-] tasks.php
[edit]
[-] teams.php
[edit]
[-] templates.php
[edit]
[-] tickets.php
[edit]
[-] upgrade.php
[edit]
[-] users.php
[edit]
[-] .htaccess.disabled
[edit]