// +----------------------------------------------------------------------+ // | Authors: Bryan Alsdorf <*****@*****.**> | // | Authors: Elan Ruusamäe <*****@*****.**> | // +----------------------------------------------------------------------+ require_once dirname(__FILE__) . '/../../init.php'; Auth::checkAuthentication(APP_COOKIE); if (!Access::canAccessReports(Auth::getUserID())) { echo 'Invalid role'; exit; } if (!empty($_REQUEST['start']['Year']) && !empty($_REQUEST['start']['Month']) && !empty($_REQUEST['start']['Day'])) { $start = implode('-', $_REQUEST['start']); } else { $start = false; } if (!empty($_REQUEST['end']['Year']) && !empty($_REQUEST['end']['Month']) && !empty($_REQUEST['end']['Day'])) { $end = implode('-', $_REQUEST['end']); } else { $end = false; } $custom_field = isset($_GET['custom_field']) ? $_GET['custom_field'] : null; $custom_options = isset($_GET['custom_options']) ? $_GET['custom_options'] : null; $group_by = isset($_GET['group_by']) ? $_GET['group_by'] : null; $interval = isset($_REQUEST['interval']) ? $_REQUEST['interval'] : null; $type = isset($_GET['type']) ? $_GET['type'] : null; $plot = new PlotHelper(); $res = $plot->CustomFieldGraph($type, $custom_field, $custom_options, $group_by, $start, $end, $interval); if (!$res) { header('Location: ' . APP_RELATIVE_URL . '/images/no_data.gif'); exit; }
// | Copyright (c) 2011 - 2015 Eventum Team. | // | | // | This program is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | // | the Free Software Foundation; either version 2 of the License, or | // | (at your option) any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to: | // | | // | Free Software Foundation, Inc. | // | 51 Franklin Street, Suite 330 | // | Boston, MA 02110-1301, USA. | // +----------------------------------------------------------------------+ // | Authors: Bryan Alsdorf <*****@*****.**> | // | Authors: Elan Ruusamäe <*****@*****.**> | // +----------------------------------------------------------------------+ require_once dirname(__FILE__) . '/../../init.php'; Auth::checkAuthentication(APP_COOKIE); if (!Access::canAccessReports(Auth::getUserID())) { echo 'Invalid role'; exit; } $type = isset($_GET['type']) ? $_GET['type'] : null; $plot = new PlotHelper(); $plot->WorkloadTimePeriodGraph($type);
// | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to: | // | | // | Free Software Foundation, Inc. | // | 51 Franklin Street, Suite 330 | // | Boston, MA 02110-1301, USA. | // +----------------------------------------------------------------------+ // | Authors: Bryan Alsdorf <*****@*****.**> | // | Authors: Elan Ruusamäe <*****@*****.**> | // +----------------------------------------------------------------------+ require_once dirname(__FILE__) . '/../../init.php'; Auth::checkAuthentication(APP_COOKIE); if (!Access::canAccessReports(Auth::getUserID())) { echo 'Invalid role'; exit; } $interval = isset($_REQUEST['interval']) ? $_REQUEST['interval'] : null; $graph = isset($_REQUEST['graph']) ? $_REQUEST['graph'] : null; $start_date = isset($_REQUEST['start_date']) ? $_REQUEST['start_date'] : null; $end_date = isset($_REQUEST['end_date']) ? $_REQUEST['end_date'] : null; $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : null; $plot = new PlotHelper(); $res = $plot->WorkloadDateRangeGraph($graph, $type, $start_date, $end_date, $interval); if (!$res) { header('Location: ../images/no_data.gif'); exit; }
// | This program is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | // | the Free Software Foundation; either version 2 of the License, or | // | (at your option) any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to: | // | | // | Free Software Foundation, Inc. | // | 51 Franklin Street, Suite 330 | // | Boston, MA 02110-1301, USA. | // +----------------------------------------------------------------------+ // | Authors: João Prado Maia <*****@*****.**> | // | Authors: Elan Ruusamäe <*****@*****.**> | // +----------------------------------------------------------------------+ require_once dirname(__FILE__) . '/../init.php'; Auth::checkAuthentication(APP_COOKIE); $type = isset($_GET['plot']) ? (string) $_GET['plot'] : null; $hide_closed = isset($_REQUEST['hide_closed']) ? $_REQUEST['hide_closed'] : false; $plot = new PlotHelper(); $res = $plot->StatsChart($type, $hide_closed); if (!$res) { header('Content-type: image/gif'); readfile(APP_PATH . '/htdocs/images/no_data.gif'); exit; }