Ejemplo n.º 1
0
 function render($layout, $array, $output = "backend")
 {
     if ($output == "backend") {
         $extensions = new extensions();
         $active = explode('/', $_SERVER['REQUEST_URI']);
         $activeDupe = $active;
         $active = isset($active[2]) ? $active[2] : false;
         if (strpos($active, "?") !== false) {
             $active = explode('?', $active)[0];
         }
         if ($active == "extension") {
             $active = isset($activeDupe[3]) ? $activeDupe[3] : $active;
         }
         $array['activePage'] = strtolower($active);
         $array['extensions'] = $extensions->listAll(false);
         echo $this->backend->render("component/" . $layout . ".twig", $array);
     } else {
         $db = new db("variables");
         $config = new config();
         $array['config'] = $config->system->evany;
         $array['variables'] = $db->all();
         if (strpos($layout, ".twig") !== FALSE) {
             $layout = $layout;
         } else {
             $layout = $layout . ".twig";
         }
         return $this->frontend->render($layout, $array);
     }
 }
Ejemplo n.º 2
0
 function output()
 {
     return 'Goto(' . (!extensions::gotoEmpty($this->context) ? $this->context . ',' : '') . (!extensions::gotoEmpty($this->ext) ? $this->ext . ',' : '') . $this->pri . ')';
 }
Ejemplo n.º 3
0
 function _uservalue_installerdir($pagenum, $varnum)
 {
     $return = parent::_value_installerdir($pagenum, $varnum);
     $return['value'] = parent::lang('[Path to installer]') . ' ' . $return['value'];
     return $return;
 }