$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. <br><br>Please know that all attempts to access this page are recorded in security logs of Pandora System Database');
$home=newHome();
$home->show($error);
}
privatefunctionshow_visualmaps(){
$ui=Ui::getInstance();
$ui->createPage();
$ui->createDefaultHeader(__("Visual consoles"),
$ui->createHeaderButton(
array('icon'=>'back',
'pos'=>'left',
'text'=>__('Back'),
'href'=>'index.php?page=home')));
$ui->showFooter(false);
$ui->beginContent();
$this->listVisualmapsHtml();
$ui->endContent();
$ui->showPage();
}
privatefunctionlistVisualmapsHtml(){
$system=System::getInstance();
$ui=Ui::getInstance();
// Create filter
$where=array();
// Order by type field
$where['order']='type';
if($this->group!='0')
$where['id_group']=$this->group;
if($this->type!='0')
$where['type']=$this->type;
// Only display maps of "All" group if user is administrator
// or has "RR" privileges, otherwise show only maps of user group