path_to_ipb ) { /* Constant available? */ if( defined('DOC_IPS_ROOT_PATH') ) { $this->path_to_ipb = DOC_IPS_ROOT_PATH; } else { /* Fallback.. */ $this->path_to_ipb = dirname(__FILE__) . '/../../'; } } /* Load the registry */ require_once( $this->path_to_ipb . 'initdata.php' );/*noLibHook*/ require_once( $this->path_to_ipb . CP_DIRECTORY . '/sources/base/ipsRegistry.php' );/*noLibHook*/ $this->registry = ipsRegistry::instance(); $this->registry->init(); /* Make registry shortcuts */ $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); /* INIT Child? */ if( method_exists( $this, 'childInit' ) ) { $this->childInit(); } } }