1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
5 * op5, and the op5 logo are trademarks, servicemarks, registered servicemarks
6 * or registered trademarks of op5 AB.
7 * All other trademarks, servicemarks, registered trademarks, and registered
8 * servicemarks mentioned herein may be the property of their respective owner(s).
9 * The information contained herein is provided AS IS with NO WARRANTY OF ANY
10 * KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A
13 class Nagvis_Controller
extends Authenticated_Controller
{
14 public function __call($name, $args)
16 $this->template
->disable_refresh
= true;
17 $this->template
->title
= _('Monitoring') . ' » NagVis';
18 $this->template
->breadcrumb
= _('Monitoring') . ' » '
19 . '<a href="' . Kohana
::config('config.site_domain') .
20 'index.php/nagvis/index">NagVis</a> » ';
21 $this->template
->content
= $this->add_view('nagvis/index');
22 $this->xtra_js
[] = $this->add_path('/js/iframe-adjust.js');
24 $queryparams = http_build_query($_GET, '', '&');
28 $this->template
->content
->params
= $queryparams;
32 $this->template
->content
->params
= 'mod=Map&act=view&show='.$args[0].'&'.$queryparams;
36 $queryparams .= '&root='.$args[1];
37 $this->template
->content
->params
= 'mod=Map&act=view&show=automap&'.$queryparams;
40 $this->template
->content
->params
= 'mod=Map&act=view&show='.$args[1].'&rotation='.$args[0].'&rotationStep=0&'.$queryparams;
43 return parent
::__call($name, $args);