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'; } }
<!doctype html> <html> <head> <title>Install Wizard</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <?php foreach ($controller->getCss() as $css) { echo '<link type="text/css" rel="stylesheet" href="' . $css['path'] . htmlspecialchars($css['file']) . '" />'; } foreach ($controller->getJs() as $js) { echo '<script src="' . $js['path'] . htmlspecialchars($js['file']) . '"></script>'; } ?> </head> <body> <div id="container"> <div id="header"> <a href="http://www.phpjabbers.com/" id="logo" target="_blank"><img src="<?php echo pjObject::getConstant('pjInstaller', 'PLUGIN_IMG_PATH'); ?> install-logo.png" alt="Install Wizard" /></a> </div> <div id="middle"> <?php require $content_tpl; ?> </div> </div> </body> </html>
<?php include_once pjObject::getConstant('pjInstaller', 'PLUGIN_VIEWS_PATH') . 'pjInstaller/pjActionStep0.php';
public function pjActionVersion() { if ($this->isLoged()) { printf('PJ_SCRIPT_ID: %s<br>', PJ_SCRIPT_ID); printf('PJ_SCRIPT_BUILD: %s<br><br>', PJ_SCRIPT_BUILD); $plugins = pjRegistry::getInstance()->get('plugins'); foreach ($plugins as $plugin => $whtvr) { printf("%s: %s<br>", $plugin, pjObject::getConstant($plugin, 'PLUGIN_BUILD')); } } exit; }