コード例 #1
0
ファイル: debug.php プロジェクト: pnp4nagios/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template->debug = $this->add_view('debug');
     $this->host = $this->input->get('host');
     $this->service = $this->input->get('srv');
 }
コード例 #2
0
ファイル: xport.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     // Disable auto-rendering
     $this->auto_render = FALSE;
     $this->data->getTimeRange($this->start, $this->end, $this->view);
 }
コード例 #3
0
ファイル: ajax.php プロジェクト: haraldj/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->auto_render = FALSE;
     // Disable auto-rendering
     $this->auto_render = FALSE;
 }
コード例 #4
0
ファイル: xml.php プロジェクト: pnp4nagios/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->config->read_config();
     $this->host = $this->input->get('host');
     $this->service = $this->input->get('srv');
 }
コード例 #5
0
ファイル: popup.php プロジェクト: pnp4nagios/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('popup');
     $this->host = pnp::clean($this->input->get('host'));
     $this->service = pnp::clean($this->input->get('srv'));
 }
コード例 #6
0
ファイル: zoom.php プロジェクト: CoolCold/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('zoom');
     $this->tpl = $this->input->get('tpl');
     $this->graph_width = $this->config->conf['zgraph_width'];
     $this->graph_height = $this->config->conf['zgraph_height'];
 }
コード例 #7
0
ファイル: zoom.php プロジェクト: pnp4nagios/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('zoom');
     $this->host = $this->input->get('host');
     $this->service = $this->input->get('srv');
     $this->tpl = $this->input->get('tpl');
 }
コード例 #8
0
ファイル: color.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('template');
     $this->template->color = $this->add_view('color');
     $this->template->color->color_box = $this->add_view('color_box');
     $this->template->color->logo_box = $this->add_view('logo_box');
 }
コード例 #9
0
 public function __construct()
 {
     if ($this->getParamByKey('save') == 'true') {
         if (!isset($_COOKIE[session_name()])) {
             session_set_cookie_params(Model_User::LIFETIME_USER_COOKIE);
         }
     }
     parent::__construct();
 }
コード例 #10
0
ファイル: docs.php プロジェクト: haraldj/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template->docs = $this->add_view('docs');
     $this->template->docs->search_box = $this->add_view('search_box');
     $this->template->docs->docs_box = $this->add_view('docs_box');
     $this->template->docs->logo_box = $this->add_view('logo_box');
     $this->doc_language = $this->config->conf['doc_language'];
 }
コード例 #11
0
ファイル: page.php プロジェクト: pnp4nagios/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template->page = $this->add_view('page');
     $this->template->page->graph_content = $this->add_view('graph_content');
     $this->template->page->graph_content->graph_width = $this->config->conf['graph_width'] + 85;
     $this->template->page->graph_content->timerange_select = $this->add_view('timerange_select');
     $this->template->page->header = $this->add_view('header');
     $this->template->page->logo_box = $this->add_view('logo_box');
 }
コード例 #12
0
ファイル: graph.php プロジェクト: haraldj/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template->graph = $this->add_view('graph');
     $this->template->zoom_header = $this->add_view('zoom_header');
     $this->template->zoom_header->graph_width = $this->config->conf['graph_width'] + 140;
     $this->template->zoom_header->graph_height = $this->config->conf['graph_height'] + 230;
     $this->template->graph->icon_box = $this->add_view('icon_box');
     $this->template->graph->icon_box->position = "graph";
     $this->template->graph->icon_box->xml_icon = TRUE;
     $this->template->graph->icon_box->pdf_icon = TRUE;
 }
コード例 #13
0
ファイル: special.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('template');
     $this->template->graph = $this->add_view('graph');
     $this->templates = $this->data->getSpecialTemplates();
     $this->data->GRAPH_TYPE = 'special';
     if ($this->tpl == '') {
         if ($this->templates) {
             $this->tpl = $this->templates[0];
         }
         url::redirect('special?tpl=' . $this->tpl, 302);
     }
 }
コード例 #14
0
ファイル: page.php プロジェクト: haraldj/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template->page = $this->add_view('page');
     $this->template->zoom_header = $this->add_view('zoom_header');
     $this->template->zoom_header->graph_width = $this->config->conf['graph_width'] + 140;
     $this->template->zoom_header->graph_height = $this->config->conf['graph_height'] + 230;
     $this->template->page->graph_content = $this->add_view('graph_content');
     $this->template->page->graph_content->graph_width = $this->config->conf['graph_width'] + 85;
     $this->template->page->graph_content->timerange_select = $this->add_view('timerange_select');
     $this->template->page->header = $this->add_view('header');
     $this->template->page->logo_box = $this->add_view('logo_box');
     $this->is_authorized = TRUE;
 }
コード例 #15
0
ファイル: xport.php プロジェクト: haraldj/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     // Disable auto-rendering
     $this->auto_render = FALSE;
     $this->view = 0;
     //fake value
     $this->source = "";
     if ($this->input->get('view') != "") {
         $this->view = $this->input->get('view');
     }
     if ($this->input->get('source')) {
         $this->source = $this->input->get('source');
     }
     $this->data->getTimeRange($this->start, $this->end, $this->view);
 }
コード例 #16
0
ファイル: graph.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('template');
     if (isset($this->version) && $this->version == "tiny") {
         $this->template->graph = $this->add_view('graph_tiny');
     } else {
         $this->template->graph = $this->add_view('graph');
     }
     $this->template->zoom_header = $this->add_view('zoom_header');
     $this->template->zoom_header->graph_width = $this->config->conf['zgraph_width'] + 140;
     $this->template->zoom_header->graph_height = $this->config->conf['zgraph_height'] + 230;
     $this->template->graph->icon_box = $this->add_view('icon_box');
     $this->template->graph->icon_box->position = "graph";
     $this->template->graph->icon_box->xml_icon = TRUE;
     $this->template->graph->icon_box->pdf_icon = TRUE;
 }
コード例 #17
0
ファイル: pdf.php プロジェクト: CoolCold/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->use_bg = 0;
     $this->bg = $this->config->conf['background_pdf'];
     // Define PDF background per url option
     if (isset($this->bg) && $this->bg != "") {
         if (is_readable(Kohana::config('core.pnp_etc_path') . "/" . $this->bg)) {
             $this->bg = Kohana::config('core.pnp_etc_path') . "/" . $this->bg;
         } else {
             $this->bg = $this->config->conf['background_pdf'];
         }
     }
     // Use PDF background if readable
     if (is_readable($this->bg)) {
         $this->use_bg = 1;
     }
 }
コード例 #18
0
ファイル: xml.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->config->read_config();
 }
コード例 #19
0
ファイル: debug.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('template');
     $this->template->debug = $this->add_view('debug');
 }
コード例 #20
0
ファイル: mobile.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->session->set('classic-ui', 0);
     $this->template = $this->add_view('mobile');
 }
コード例 #21
0
ファイル: image.php プロジェクト: CoolCold/pnp4nagios
 public function __construct()
 {
     parent::__construct();
 }
コード例 #22
0
ファイル: popup.php プロジェクト: rbarraud/pnp4nagios
 public function __construct()
 {
     parent::__construct();
     $this->template = $this->add_view('popup');
 }