Exemplo n.º 1
0
Arquivo: faq.php Projeto: joestump/jax
 function faq()
 {
     $this->JxAuthNo();
     $this->page->title = 'Frequently Asked Questions';
     if (!strlen(JxUri::getHandler())) {
         $this->getFaqList();
     }
 }
Exemplo n.º 2
0
 /**
  * render
  *
  * @author Joe Stump <*****@*****.**>
  * @access public
  * @return void
  * @see JxPresenter, JxTemplate, JxUri
  */
 function render()
 {
     if (PEAR::isError($this->template)) {
         die($this->template->getMessage());
     }
     $this->template->assign(JxUri::getModule(), $this->data);
     $present =& JxPresenter::factory($this->presenter);
     if (!JxPresenter::isError($present)) {
         $present->render(&$this);
     } else {
         die($present->getMessage());
     }
 }
Exemplo n.º 3
0
 } else {
     define('JX_CONTENT_PATH', JX_HOSTED_PATH . '/content');
     define('JX_SECURE_CONTENT_PATH', JX_CORE_PATH . '/../secure');
     if (in_array($jaxModule, $initialized)) {
         define('JX_BASE_PATH', JX_HOSTED_PATH);
     } else {
         define('JX_BASE_PATH', JX_CORE_PATH);
     }
     $jaxModulePath = JX_BASE_PATH . '/modules';
 }
 define('JX_BASE_LOG', JX_BASE_PATH . '/jax.log');
 $log =& JxSingleton::factory('log');
 JxPlugin::initializePlugins();
 JxPlugin::doHook('indexTop', $null);
 // Decide if we are running a default module or a sub-module
 $jaxClass = JxUri::getClass();
 if (file_exists($jaxModulePath . '/' . $jaxModule . '/' . $jaxClass . '.php')) {
     $jaxModuleFile = $jaxClass;
     // we are running a sub-module
 } else {
     $jaxModuleFile = $jaxModule;
 }
 if (JxModule::isValid($jaxModule)) {
     require_once $jaxModulePath . '/' . $jaxModule . '/config.php';
     require_once $jaxModulePath . '/' . $jaxModule . '/' . $jaxModuleFile . '.php';
     $module =& new $jaxModuleFile();
     // Possibly not used ... grep came up negative
     // $GLOBALS['jax_user'] = & new JxUser($_COOKIE['jax_userID']);
     if (!JxModule::isError($module)) {
         // They don't have proper perms to access this module
         if (!$module->authenticate()) {