reports: Fix id of custom date selector
[ninja.git] / application / controllers / system.php
bloba941bcc31c92e40393e7b5bdc1e50fc183c3965d
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * System controller
4 * Requires authentication
5 * Test with retreiving system data
7 * op5, and the op5 logo are trademarks, servicemarks, registered servicemarks
8 * or registered trademarks of op5 AB.
9 * All other trademarks, servicemarks, registered trademarks, and registered
10 * servicemarks mentioned herein may be the property of their respective owner(s).
11 * The information contained herein is provided AS IS with NO WARRANTY OF ANY
12 * KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A
13 * PARTICULAR PURPOSE.
15 class System_Controller extends Authenticated_Controller {
17 public function __construct()
19 parent::__construct();
22 public function rpm_info($filter = 'op5')
24 $data = System_Model::rpm_info($filter);
25 if (!empty($data)) {
26 echo $data;
27 } else {
28 echo "No data found";