Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

@@ -1,23 +1,22 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Online list
* Last Updated: $Date: 2009-09-28 13:36:50 -0400 (Mon, 28 Sep 2009) $
* Last Updated: $Date: 2010-10-21 09:25:51 -0400 (Thu, 21 Oct 2010) $
* </pre>
*
* @author $Author: josh $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Members
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 12th March 2002
* @version $Revision: 5169 $
*
* @version $Revision: 7009 $
*/
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
@@ -29,7 +28,6 @@ class public_members_online_online extends ipsCommand
/**
* Temporary stored output HTML
*
* @access public
* @var string
*/
public $output;
@@ -37,7 +35,6 @@ class public_members_online_online extends ipsCommand
/**
* DB result start point
*
* @access public
* @var integer
*/
public $first = 0;
@@ -45,7 +42,6 @@ class public_members_online_online extends ipsCommand
/**
* DB number of rows to pull
*
* @access public
* @var integer
*/
public $perpage = 25;
@@ -53,7 +49,6 @@ class public_members_online_online extends ipsCommand
/**
* Class entry point
*
* @access public
* @param object Registry reference
* @return void [Outputs to screen/redirects]
*/
@@ -92,7 +87,7 @@ class public_members_online_online extends ipsCommand
//-----------------------------------------
$this->registry->output->addContent( $this->output );
$this->registry->output->setTitle( $this->lang->words['page_title'] );
$this->registry->output->setTitle( $this->lang->words['page_title'] . ' - ' . ipsRegistry::$settings['board_name']);
$this->registry->output->addNavigation( $this->lang->words['page_title'], '' );
$this->registry->output->sendOutput();
}
@@ -101,10 +96,9 @@ class public_members_online_online extends ipsCommand
/**
* Show the online list
*
* @access private
* @return void [Stores HTML in $this->output]
*/
private function _listAll()
protected function _listAll()
{
//-----------------------------------------
// INIT
@@ -241,17 +235,21 @@ class public_members_online_online extends ipsCommand
{
foreach( $modules as $module_array )
{
$filename = IPSLib::getAppDir( IPSText::alphanumericalClean($module_array['app']) ) . '/extensions/coreExtensions.php';
if ( file_exists( $filename ) )
if( IPSLib::appIsInstalled( $module_array['app'] ) )
{
require_once( $filename );
$toload = 'publicSessions__' . IPSText::alphanumericalClean($module_array['app']);
$loader = new $toload;
if( method_exists( $loader, 'parseOnlineEntries' ) )
$module_array['app'] = IPSText::alphanumericalClean($module_array['app']);
$filename = IPSLib::getAppDir( $module_array['app'] ) . '/extensions/coreExtensions.php';
if ( file_exists( $filename ) )
{
$final = $loader->parseOnlineEntries( $final );
$classToLoad = IPSLib::loadLibrary( $filename, 'publicSessions__' . $module_array['app'], $module_array['app'] );
$loader = new $classToLoad();
if( method_exists( $loader, 'parseOnlineEntries' ) )
{
$final = $loader->parseOnlineEntries( $final );
}
}
}
}
@@ -268,23 +266,28 @@ class public_members_online_online extends ipsCommand
$newFinal = array();
foreach( $final as $id => $data )
if( is_array($final) AND count($final) )
{
if ( $data['member_id'] )
foreach( $final as $id => $data )
{
$newFinal[ 'member-' . $data['member_id'] ] = $data;
$newFinal[ 'member-' . $data['member_id'] ]['memberData'] = $members[ $data['member_id'] ];
$newFinal[ 'member-' . $data['member_id'] ]['_memberData'] = IPSMember::buildProfilePhoto( $members[ $data['member_id'] ] );
}
else
{
$newFinal[ $data['id'] ] = $data;
$newFinal[ $data['id'] ]['memberData'] = array();
$newFinal[ $data['id'] ]['_memberData'] = IPSMember::buildProfilePhoto( 0 );
if ( $data['member_id'] )
{
$newFinal[ 'member-' . $data['member_id'] ] = $data;
$newFinal[ 'member-' . $data['member_id'] ]['memberData'] = $members[ $data['member_id'] ];
$newFinal[ 'member-' . $data['member_id'] ]['_memberData'] = IPSMember::buildProfilePhoto( $members[ $data['member_id'] ] );
}
else
{
$newFinal[ $data['id'] ] = $data;
$newFinal[ $data['id'] ]['memberData'] = array();
$newFinal[ $data['id'] ]['_memberData'] = IPSMember::buildProfilePhoto( 0 );
}
}
}
/* Data Hook Location */
IPSLib::doDataHooks( $newFinal, 'onlineUsersListData' );
$this->output .= $this->registry->getClass('output')->getTemplate('online')->showOnlineList( $newFinal, $links, $defaults );
}
}