checkACL($this->acl)) { $this->correct_acl = true; } else { $this->correct_acl = false; } } private function getFilters() { $system = System::getInstance(); $this->id = (int)$system->getRequest('id', 0); } public function show() { if (!$this->correct_acl) { $this->show_fail_acl(); } else { $this->getFilters(); $this->visualmap = db_get_row('tlayout', 'id', $this->id); $this->show_visualmap(); } } private function show_fail_acl() { $error['title_text'] = __('You don\'t have access to this page'); $error['content_text'] = __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance.

Please know that all attempts to access this page are recorded in security logs of Pandora System Database'); $home = new Home(); $home->show($error); } public function ajax($parameter2 = false) { $system = System::getInstance(); if (!$this->correct_acl) { return; } else { switch ($parameter2) { case 'render_map': $map_id = $system->getRequest('map_id', '0'); $width = $system->getRequest('width', '400'); visual_map_print_visual_map($map_id, false, true, $width); exit; } } } private function show_visualmap() { $ui = Ui::getInstance(); $system = System::getInstance(); $ui->createPage(); $ui->createDefaultHeader( sprintf("%s", $this->visualmap['name']), $ui->createHeaderButton( array('icon' => 'back', 'pos' => 'left', 'text' => __('Back'), 'href' => 'index.php?page=visualmaps'))); $ui->showFooter(false); $ui->beginContent(); ob_start(); $rendered_map = '
'; $rendered_map .= html_print_image('images/spinner.gif', true); $rendered_map .= '
'; ob_clean(); $ui->contentAddHtml($rendered_map); $ui->contentAddHtml(""); $ui->endContent(); $ui->showPage(); } } ?>