Example #1
0
 public function details()
 {
     if (!Core::checkRequiredGetVars('id', 'tab')) {
         Go::to404();
     }
     if (!Core::checkRequiredGetVars('no-async')) {
         Core::deactivateDebug();
     }
     $details = $this->model_link->details($_GET['id']);
     $s = array_reverse($this->model_link->getStatesByLink($_GET['id']));
     $this->addContent('states', str_replace('"', "'", SimpleJSON::encode($s)));
     $this->addContent('details', $details);
     $this->addContent('tab', $_GET['tab']);
 }