Esempio n. 1
0
 public function page($view = '', $app_id = '')
 {
     $_SESSION['message'] = '';
     $service = vmc::service(sprintf('desktop_controller_display.%s.%s.%s', $_GET['app'], $_GET['ctl'], $_GET['act']));
     if ($service) {
         if (method_exists($service, 'get_file')) {
             $view = $service->get_file();
         }
         if (method_exists($service, 'get_app_id')) {
             $app_id = $service->get_app_id();
         }
     }
     if (!$view) {
         $view = 'common/default.html';
         $app_id = 'desktop';
     }
     ob_start();
     parent::display($view, $app_id);
     $output = ob_get_contents();
     ob_end_clean();
     $output = $this->sidebar_active() . $output;
     $this->output($output);
 }
Esempio n. 2
0
 function page($view = '', $app_id = '')
 {
     if (!isset($_SERVER['HTTP_REFERER'])) {
         header('Location: index.php#' . $_SERVER['QUERY_STRING']);
     }
     $_SESSION['message'] = '';
     $service = kernel::service(sprintf('desktop_controller_display.%s.%s.%s', $_GET['app'], $_GET['ctl'], $_GET['act']));
     if ($service) {
         if (method_exists($service, 'get_file')) {
             $view = $service->get_file();
         }
         if (method_exists($service, 'get_app_id')) {
             $app_id = $service->get_app_id();
         }
     }
     if (!$view) {
         $view = 'common/default.html';
         $app_id = 'desktop';
     }
     ob_start();
     parent::display($view, $app_id);
     $output = ob_get_contents();
     ob_end_clean();
     $output = $this->sidePanel() . $output;
     $this->output($output);
 }