<?php /** * Copyright: dtbaker 2012 * Licence: Please check CodeCanyon.net for licence details. * More licence clarification available here: http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ * Deploy: 321 52e20b549dde146818983ece66d81a11 * Envato: f2874e84-c8f9-4c6c-894f-2c79a77bf602 * Package Date: 2012-05-29 04:20:08 * IP Address: 127.0.0.1 */ $report_id = (int) $_REQUEST['report_id']; $report = module_report::get_report($report_id); if ($report_id > 0 && $report['report_id'] == $report_id) { $module->page_title = _l('Report: %s', $report['report_title']); } else { $module->page_title = _l('Report: %s', _l('New')); } if ($report_id > 0 && $report) { if (class_exists('module_security', false)) { module_security::check_page(array('module' => $module->module_name, 'feature' => 'edit')); } } else { if (class_exists('module_security', false)) { module_security::check_page(array('module' => $module->module_name, 'feature' => 'create')); } module_security::sanatise_data('report', $report); } if ($report_id > 0 && isset($_REQUEST['o']) && $_REQUEST['o'] == 'xls') { require_once 'php-excel.class.php'; // sending query