path_to_ipb ) { if( defined('DOC_IPS_ROOT_PATH') ) { $this->path_to_ipb = DOC_IPS_ROOT_PATH; } else { $this->path_to_ipb = dirname(__FILE__) . '/../../'; } } /* Load the registry */ require_once( $this->path_to_ipb . 'initdata.php' ); require_once( $this->path_to_ipb . CP_DIRECTORY . '/sources/base/ipsRegistry.php' ); $this->registry = ipsRegistry::instance(); $this->registry->init(); /* Make 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(); } } }