Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.67 KB | None | 0 0
  1. *** /Users/amp/Downloads/pnp4nagios-0.6.12/share/pnp/application/controllers/graph.php  2011-05-18 14:50:29.000000000 +0200
  2. --- controllers/graph.php   2011-05-18 14:04:07.000000000 +0200
  3. ***************
  4. *** 13,20 ****
  5.           parent::__construct();
  6.           $this->template->graph   = $this->add_view('graph');
  7.           $this->template->zoom_header   = $this->add_view('zoom_header');
  8. !         $this->template->zoom_header->graph_width  = ($this->config->conf['graph_width'] + 140);
  9. !         $this->template->zoom_header->graph_height = ($this->config->conf['graph_height'] + 230);
  10.           $this->template->graph->icon_box           = $this->add_view('icon_box');
  11.           $this->template->graph->icon_box->position = "graph";
  12.           $this->template->graph->icon_box->xml_icon = TRUE;
  13. --- 13,20 ----
  14.           parent::__construct();
  15.           $this->template->graph   = $this->add_view('graph');
  16.           $this->template->zoom_header   = $this->add_view('zoom_header');
  17. !         $this->template->zoom_header->graph_width  = ($this->config->conf['zgraph_width'] + 140);
  18. !         $this->template->zoom_header->graph_height = ($this->config->conf['zgraph_height'] + 230);
  19.           $this->template->graph->icon_box           = $this->add_view('icon_box');
  20.           $this->template->graph->icon_box->position = "graph";
  21.           $this->template->graph->icon_box->xml_icon = TRUE;
  22. ***************
  23. *** 51,59 ****
  24.               $this->is_authorized = $this->auth->is_authorized($this->data->MACRO['AUTH_HOSTNAME'], $this->data->MACRO['AUTH_SERVICEDESC']);
  25.  
  26.               $this->title = Kohana::lang('common.service-details') . " ". $this->host ." -> " . $this->data->MACRO['DISP_SERVICEDESC'];
  27. !           $this->template->graph->graph_content->graph_width = ($this->data->STRUCT[0]['GRAPH_WIDTH'] + 85);
  28. !           $this->template->zoom_header->graph_width  = ($this->data->STRUCT[0]['GRAPH_WIDTH'] + 140);
  29. !           $this->template->zoom_header->graph_height = ($this->data->STRUCT[0]['GRAPH_HEIGHT'] + 230);
  30.               // Status Box Vars
  31.               $this->template->graph->status_box->host     = $this->data->MACRO['DISP_HOSTNAME'];
  32.               $this->template->graph->status_box->lhost    = $this->data->MACRO['HOSTNAME'];
  33. --- 51,57 ----
  34.               $this->is_authorized = $this->auth->is_authorized($this->data->MACRO['AUTH_HOSTNAME'], $this->data->MACRO['AUTH_SERVICEDESC']);
  35.  
  36.               $this->title = Kohana::lang('common.service-details') . " ". $this->host ." -> " . $this->data->MACRO['DISP_SERVICEDESC'];
  37. !             $this->template->graph->graph_content->graph_width = ($this->data->STRUCT[0]['GRAPH_WIDTH'] + 85);
  38.               // Status Box Vars
  39.               $this->template->graph->status_box->host     = $this->data->MACRO['DISP_HOSTNAME'];
  40.               $this->template->graph->status_box->lhost    = $this->data->MACRO['HOSTNAME'];
  41. *** /Users/amp/Downloads/pnp4nagios-0.6.12/share/pnp/application/controllers/image.php  2011-05-18 14:50:29.000000000 +0200
  42. --- controllers/image.php   2011-05-18 12:33:32.000000000 +0200
  43. ***************
  44. *** 32,40 ****
  45. --- 32,44 ----
  46.  
  47.           if($this->input->get('w') != "" )
  48.               $this->rrdtool->config->conf['graph_width'] = intval($this->input->get('w'));
  49. +         if($this->input->get('graph_width') != "" )
  50. +             $this->rrdtool->config->conf['graph_width'] = intval($this->input->get('graph_width'));
  51.  
  52.           if($this->input->get('h') != "" )
  53.               $this->rrdtool->config->conf['graph_height'] = intval($this->input->get('h'));
  54. +         if($this->input->get('graph_height') != "" )
  55. +             $this->rrdtool->config->conf['graph_height'] = intval($this->input->get('graph_height'));
  56.  
  57.           $this->data->getTimeRange($this->start,$this->end,$this->view);
  58.  
  59. *** /Users/amp/Downloads/pnp4nagios-0.6.12/share/pnp/application/controllers/zoom.php   2011-05-18 14:50:29.000000000 +0200
  60. --- controllers/zoom.php    2011-05-18 12:26:58.000000000 +0200
  61. ***************
  62. *** 14,21 ****
  63.           parent::__construct();
  64.           $this->template          = $this->add_view('zoom');
  65.           $this->tpl               = $this->input->get('tpl');
  66. !         $this->graph_width       = $this->input->get('graph_width');
  67. !         $this->graph_height      = $this->input->get('graph_height');
  68.       }
  69.  
  70.       public function index()
  71. --- 14,21 ----
  72.           parent::__construct();
  73.           $this->template          = $this->add_view('zoom');
  74.           $this->tpl               = $this->input->get('tpl');
  75. !         $this->graph_width       = $this->config->conf['zgraph_width'];
  76. !         $this->graph_height      = $this->config->conf['zgraph_height'];
  77.       }
  78.  
  79.       public function index()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement