From 6dac5e7dadbc4d8dbd284ab0dd32d9fb9bd37766 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 21 Sep 2017 17:06:12 +0200 Subject: [PATCH] Drop /show/graph refs #46 --- application/controllers/ShowController.php | 33 ---------------------- 1 file changed, 33 deletions(-) diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php index 61010d6..1ed8063 100644 --- a/application/controllers/ShowController.php +++ b/application/controllers/ShowController.php @@ -40,39 +40,6 @@ class ShowController extends Controller $this->params->shift('r'); } - public function graphAction() - { - $template = $this->loadTemplate(); - $title = $template->getTitle(); - if (false === strpos($title, '$')) { - $template->setTitle('$hostname'); - } else { - if (false === strpos($title, '$hostname')) { - $template->setTitle('$hostname: ' . $template->getTitle()); - } - } - - $query = $this->graphiteWeb - ->select() - ->from( - $template->getFilterString() - ); - - foreach ($this->params->toArray() as $val) { - $query->where($val[0], urldecode($val[1])); - } - - $img = $this->applyGraphParams(current($query->getImages($template))) - ->showLegend(false); - - $this->_helper->layout()->disableLayout(); - - $image = $img->fetchImage(); - header('Content-Type: image/png'); - echo $image; - exit; - } - public function XXXserviceAction() { $this->handleDatasourceToggles();