public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->memberData =& $this->registry->member()->fetchMemberData();
 }
 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->registry->class_localization->loadLanguageFile(array('public_topic'), 'forums');
 }
Пример #3
0
 /**
  * Constructor
  * 
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     /* Get class forums, used for displaying forum names on results */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         ipsRegistry::setClass('class_forums', new $classToLoad(ipsRegistry::instance()));
         ipsRegistry::getClass('class_forums')->strip_invisible = 1;
         ipsRegistry::getClass('class_forums')->forumsInit();
     }
     /* Load tagging stuff */
     if (!$registry->isClassLoaded('tags')) {
         require_once IPS_ROOT_PATH . 'sources/classes/tags/bootstrap.php';
         /*noLibHook*/
         $registry->setClass('tags', classes_tags_bootstrap::run('forums', 'topics'));
     }
     /* Get live or archive */
     $this->searchArchives = ipsRegistry::$request['search_app_filters']['forums']['liveOrArchive'] == 'archive' ? true : false;
     if ($this->searchArchives) {
         /* Load up archive class */
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/reader.php', 'classes_archive_reader');
         $this->archiveReader = new $classToLoad();
         $this->archiveReader->setApp('forums');
         $this->table = $this->archiveReader->getFields();
         $this->table['_table_'] = 'forums_archive_posts';
         $this->table['_prefix_'] = 'p.archive_';
     } else {
         $this->table = array('_table_' => 'posts', '_prefix_' => 'p.', 'pid' => 'pid', 'author_id' => 'author_id', 'author_name' => 'author_name', 'ip_address' => 'ip_address', 'post_date' => 'post_date', 'post' => 'post', 'queued' => 'queued', 'topic_id' => 'topic_id', 'new_topic' => 'new_topic', 'post_bwoptions' => 'post_bwoptions', 'post_key' => 'post_key', 'post_htmlstate' => 'post_htmlstate', 'use_sig' => 'use_sig', 'use_emo' => 'use_emo', 'append_edit' => 'append_edit', 'edit_time' => 'edit_time', 'edit_name' => 'edit_name', 'post_edit_reason' => 'post_edit_reason');
     }
     parent::__construct($registry);
     /* Set up wrapper */
     $this->templates = array('group' => 'search', 'template' => 'searchResultsAsForum');
 }
Пример #4
0
 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->settings = ipsRegistry::fetchSettings();
     $this->lang = $this->registry->getClass('class_localization');
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_lang'), 'syncApp');
 }
Пример #5
0
 /**
  * CONSTRUCTOR
  *
  * @return      @e void
  */
 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->lang = $this->registry->getClass('class_localization');
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_lang'), 'syncApp');
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     $sqlPassed = FALSE;
     $classname = "db_driver_Mysql";
     $sync_DB = new $classname();
     $sync_DB->obj['sql_database'] = $this->settings['syncapp_realm_database'];
     $sync_DB->obj['sql_user'] = $this->settings['syncapp_mysql_user'];
     $sync_DB->obj['sql_pass'] = $this->settings['syncapp_mysql_password'];
     $sync_DB->obj['sql_host'] = $this->settings['syncapp_mysql_ip'];
     $sync_DB->return_die = true;
     if (!$sync_DB->connect()) {
         $fail = 1;
         return $fail;
         /* At this point we dont have a connection so ABORT! else database driver error */
     }
     if ($this->settings['syncapp_mysql_user'] || $this->settings['syncapp_mysql_password'] || $fail != 1) {
         $this->sqlPassed = TRUE;
         $this->registry->dbFunctions()->setDB('mysql', 'auth_DB', array('sql_database' => $this->settings['syncapp_realm_database'], 'sql_user' => $this->settings['syncapp_mysql_user'], 'sql_pass' => $this->settings['syncapp_mysql_password'], 'sql_host' => $this->settings['syncapp_mysql_ip']));
     } else {
         return;
     }
 }
Пример #6
0
 public function __construct($group, $skinSet)
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     /* Require some files for our sabre implementation */
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/root/skins.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/directory/templates.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/files/templates.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/lock/nolocks.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinFunctions.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinCaching.php';
     /*noLibHook*/
     $this->skinFunctions = new skinCaching($this->registry);
     $this->_skinSet = $skinSet;
     $this->_group = $group;
 }
 /**
  * Constructor
  *
  * @param	object	Database reference
  * @return	@e void
  */
 public function __construct(&$obj)
 {
     $reg = ipsRegistry::instance();
     $this->member = $reg->member();
     $this->DB = $reg->DB();
     $this->tbl = ips_DBRegistry::getPrefix();
 }
Пример #8
0
 /**
  * Constructor
  *
  * Use this to do any initiation required by your application
  */
 public function __construct()
 {
     //-----------------------------------------
     // Init IPB
     //-----------------------------------------
     define('IPS_ENFORCE_ACCESS', TRUE);
     define('IPB_THIS_SCRIPT', 'public');
     require_once '../../initdata.php';
     require_once IPS_ROOT_PATH . 'sources/base/ipsRegistry.php';
     require_once IPS_ROOT_PATH . 'sources/base/ipsController.php';
     $this->registry = ipsRegistry::instance();
     $this->registry->init();
     //-----------------------------------------
     // Set up 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->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     $this->masterKey = md5(md5($this->settings['sql_user'] . $this->settings['sql_pass']) . $this->settings['board_start']);
     //-----------------------------------------
     // Init han_login
     //-----------------------------------------
     $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/handlers/han_login.php', 'han_login');
     $this->han_login = new $classToLoad($this->registry);
     $this->han_login->init();
 }
Пример #9
0
 public function __construct($skinSet, $template = null, $title = null, $group = null)
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     /* Require some files for our sabre implementation */
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/root/skins.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/directory/templates.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/directory/groups.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/sabre/lock/nolocks.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinFunctions.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinCaching.php';
     /*noLibHook*/
     $this->skinFunctions = new skinCaching($this->registry);
     $this->_skinSet = $skinSet;
     $this->_group = $group;
     if ($template) {
         $this->_template = $template;
         $this->_title = $this->_group == 'css' ? $template['css_group'] : $template['template_name'];
     } else {
         $this->_title = $title;
     }
 }
Пример #10
0
 /**
  * Loads the registry class
  *
  * @return @e void
  */
 public function init()
 {
     /* Path not set? */
     if (!$this->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();
     }
 }
Пример #11
0
 /**
  * Grab the RSS document content and return it
  * 
  * @return	string		RSS document
  */
 public function returnRSSDocument()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $cal_id = intval(ipsRegistry::$request['id']);
     $rss_data = array();
     $to_print = '';
     $this->expires = time();
     $_calendarCache = ipsRegistry::cache()->getCache('calendars');
     //-----------------------------------------
     // Get RSS export
     //-----------------------------------------
     $rss_data = $_calendarCache[$cal_id];
     //-----------------------------------------
     // Got one?
     //-----------------------------------------
     if ($rss_data['cal_id'] and $rss_data['cal_rss_export']) {
         //-----------------------------------------
         // Correct expires time
         //-----------------------------------------
         $this->expires = $rss_data['cal_rss_update_last'] + $rss_data['cal_rss_update'] * 60;
         //-----------------------------------------
         // Need to recache?
         //-----------------------------------------
         if (!$rss_data['cal_rss_cache'] or time() - $rss_data['cal_rss_update'] * 60 > $rss_data['cal_rss_update_last']) {
             $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('calendar') . '/sources/cache.php', 'calendar_cache', 'calendar');
             $rss_export = new $classToLoad(ipsRegistry::instance());
             return $rss_export->rebuildCalendarRSSCache($rss_data['cal_id']);
         } else {
             return $rss_data['cal_rss_cache'];
         }
     }
 }
Пример #12
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     /* Make registry objects */
     $this->registry = ipsRegistry::instance();
     $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();
     /* Check for class_forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         $this->registry->setClass('class_forums', new $classToLoad($this->registry));
         $this->registry->class_forums->forumsInit();
     }
     /* Load topic class */
     if (!$this->registry->isClassLoaded('topics')) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums');
         $this->registry->setClass('topics', new $classToLoad($this->registry));
     }
     /* Language class */
     $this->registry->getClass('class_localization')->loadLanguageFile(array('public_global'), 'core');
     /* Fetch engine class */
     $this->settings['archive_engine'] = $this->settings['archive_engine'] ? $this->settings['archive_engine'] : 'sql';
     /* Load up archive class */
     $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/reader/' . $this->settings['archive_engine'] . '.php', 'classes_archive_reader_' . $this->settings['archive_engine']);
     $this->engine = new $classToLoad();
     $this->fields = $this->registry->topics->getPostTableFields();
 }
Пример #13
0
 /**
  * Constructor
  * 
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     /* Hard limit - not used in Sphinx but may need to revisit if we bust IN()s */
     //IPSSearchRegistry::set('set.hardLimit', ( ipsRegistry::$settings['search_hardlimit'] ) ? ipsRegistry::$settings['search_hardlimit'] : 200 );
     /* Get class forums, used for displaying forum names on results */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         ipsRegistry::setClass('class_forums', new $classToLoad(ipsRegistry::instance()));
         ipsRegistry::getClass('class_forums')->strip_invisible = 1;
         ipsRegistry::getClass('class_forums')->forumsInit();
     }
     /* Get live or archive */
     $this->searchArchives = ipsRegistry::$request['search_app_filters']['forums']['liveOrArchive'] == 'archive' ? true : false;
     if ($this->searchArchives) {
         /* Load up archive class */
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/reader.php', 'classes_archive_reader');
         $this->archiveReader = new $classToLoad();
         $this->archiveReader->setApp('forums');
         $this->table = $this->archiveReader->getFields();
         $this->table['_table_'] = 'forums_archive_posts';
         $this->table['_prefix_'] = 'p.archive_';
         $this->table['forums_search_posts_main'] = 'forums_search_archive_main';
         $this->table['forums_search_posts_delta'] = 'forums_search_archive_delta';
         /* disable max days search */
         $this->settings['search_ucontent_days'] = 0;
     } else {
         $this->table = array('_table_' => 'posts', '_prefix_' => 'p.', 'pid' => 'pid', 'author_id' => 'author_id', 'author_name' => 'author_name', 'ip_address' => 'ip_address', 'post_date' => 'post_date', 'post' => 'post', 'queued' => 'queued', 'topic_id' => 'topic_id', 'new_topic' => 'new_topic', 'post_bwoptions' => 'post_bwoptions', 'post_key' => 'post_key', 'post_htmlstate' => 'post_htmlstate', 'use_sig' => 'use_sig', 'use_emo' => 'use_emo', 'append_edit' => 'append_edit', 'edit_time' => 'edit_time', 'edit_name' => 'edit_name', 'post_edit_reason' => 'post_edit_reason', 'forums_search_posts_main' => 'forums_search_posts_main', 'forums_search_posts_delta' => 'forums_search_posts_delta');
     }
     parent::__construct($registry);
 }
 public function __construct()
 {
     /* Make registry objects */
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->lang = $this->registry->getClass('class_localization');
 }
 /**
  * Constructor
  *
  * @access	public
  * @param	object	ipsRegistry
  * @return	void
  */
 public function __construct()
 {
     /* Make object */
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->_importTemplates();
     $this->_importSite();
 }
 public function __construct()
 {
     /* Make registry objects */
     $this->registry = ipsRegistry::instance();
     if (is_file(IPSLib::getAppDir('ipchat') . '/sources/hooks.php')) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('ipchat') . '/sources/hooks.php', 'hooksApi', 'ipchat');
         $this->chatting = new $classToLoad($this->registry);
     }
 }
Пример #17
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     /* Set up */
     $this->setImageDir();
     $this->setImageUrl();
     $this->setStyleLastUpdated();
     $this->setDefaultImageDir();
     $this->setDefaultImageUrl();
 }
Пример #18
0
 /**
  * Constructor
  *
  * @return	@e void
  */
 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     $this->lang = $this->registry->class_localization;
 }
Пример #19
0
 /**
  * This method is run when a member is flagged as a spammer
  *
  * @param	array 	$member	Array of member data
  * @return	@e void
  */
 public function onSetAsSpammer($member)
 {
     /* Load status class */
     if (!$this->registry->isClassLoaded('memberStatus')) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/member/status.php', 'memberStatus');
         $this->registry->setClass('memberStatus', new $classToLoad(ipsRegistry::instance()));
     }
     /* Delete the stuff */
     $this->registry->getClass('memberStatus')->setAuthor($member);
     $this->registry->getClass('memberStatus')->deleteAllReplies();
     $this->registry->getClass('memberStatus')->deleteAllMemberStatus();
 }
Пример #20
0
 /**
  * Constructor
  *
  * @access	public
  * @return	@e void
  */
 public function __construct()
 {
     /* Make object */
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     $this->lang = $this->registry->getClass('class_localization');
     self::$Perms['memberData'] = is_array(self::$Perms['memberData']) ? self::$Perms['memberData'] : ipsRegistry::member()->fetchMemberData();
 }
Пример #21
0
 public function sendOutput($saveData = TRUE)
 {
     if ($this->next == 'done') {
         echo "OK";
         exit;
     } else {
         parse_str($this->next, $vars);
         $_REQUEST = $vars;
         $this->controller->request = $vars;
         $this->controller->doExecute(ipsRegistry::instance());
     }
 }
Пример #22
0
 /**
  * Constructor
  */
 public function __construct()
 {
     /* Init attachments */
     $classname = IPSLib::loadLibrary(IPSLib::getAppDir('core') . '/sources/classes/attach/class_attach.php', 'class_attach');
     $this->class_attach = new $classname(ipsRegistry::instance());
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_topic'), 'forums');
     $this->class_attach->type = 'post';
     $this->class_attach->init();
     $this->class_attach->getUploadFormSettings();
     $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/class_reputation_cache.php', 'classReputationCache');
     ipsRegistry::setClass('repCache', new $classToLoad());
 }
Пример #23
0
 /**
  * Method constructor
  *
  * @return	@e void
  */
 public function __construct()
 {
     /* Make object */
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
 }
 /**
  * Formats the search result for display
  *
  * @access	public
  * @param	array	$search_row	Array of data from search_index
  * @return	string				Formatted content, ready for display
  */
 public function formatContent($search_row)
 {
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_lang'), 'ccs');
     $registry = ipsRegistry::instance();
     require_once IPSLib::getAppDir('ccs') . '/sources/functions.php';
     $registry->setClass('ccsFunctions', new ccsFunctions($registry));
     $search_row['formatted_url'] = $registry->ccsFunctions->returnPageUrl($search_row);
     $search_row['content'] = preg_replace("#{parse block=(.+?)}#", '', $search_row['content']);
     //-----------------------------------------
     // And output
     //-----------------------------------------
     return ipsRegistry::getClass('output')->getTemplate('ccs')->pageSearchResult($search_row, $this->search_plugin->onlyTitles);
 }
Пример #25
0
 /**
  * Constructor
  *
  * @return	@e void
  */
 public function __construct()
 {
     /* Make registry objects */
     $this->registry = ipsRegistry::instance();
     $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();
     $this->lang->loadLanguageFile(array('public_calendar'), 'calendar');
 }
Пример #26
0
 public function __construct()
 {
     /* Make registry objects */
     $this->registry = ipsRegistry::instance();
     $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();
     /* Connect */
     $this->_connect();
 }
Пример #27
0
 /**
  * Construct
  *
  */
 public function __construct()
 {
     /* Make object */
     $this->registry = ipsRegistry::instance();
     $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();
     $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('members') . '/sources/classes/messaging/messengerFunctions.php', 'messengerFunctions', 'members');
     $this->messengerFunctions = new $classToLoad($this->registry);
 }
Пример #28
0
 /**
  * Constructor
  *
  * @return	@e void
  */
 public function __construct()
 {
     //-----------------------------------------
     // Make shortcuts
     //-----------------------------------------
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     $this->lang = $this->registry->class_localization;
     $this->tab_name = ipsRegistry::getClass('class_localization')->words['tab_groupform_rc'];
 }
Пример #29
0
 /**
  * Construct
  */
 public function __construct()
 {
     /* Make objects */
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     /* Fetch *lists */
     $this->BlackList = $this->_getBlackList();
     $this->Whitelist = $this->_getWhiteList();
     /* Fetch data variables */
     $this->Vars = $this->_getVars();
     /* Fetch db table pkeys */
     $this->Keys = $this->_getKeys();
     /* Set default limits for the batch pulling */
     $this->setLimits('rows', 10000);
     $this->setLimits('bytes', 20 * 1024 * 1024);
 }
Пример #30
0
 /**
  * Shows board index recent entries
  *
  */
 public function statusUpdates()
 {
     /* System enabled? */
     if (!$this->settings['su_enabled']) {
         return '';
     }
     $this->registry->class_localization->loadLanguageFile(array('public_profile'), 'members');
     /* Load status class */
     if (!$this->registry->isClassLoaded('memberStatus')) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/member/status.php', 'memberStatus');
         $this->registry->setClass('memberStatus', new $classToLoad(ipsRegistry::instance()));
     }
     /* Fetch */
     $statuses = $this->registry->getClass('memberStatus')->fetch($this->memberData, array('limit' => intval($this->settings['status_sidebar_show_x']), 'status_is_latest' => 1, 'ownerOnly' => true));
     return $this->registry->getClass('output')->getTemplate('boards')->hookBoardIndexStatusUpdates($statuses);
 }