Version 3.2.3

This commit is contained in:
Neo committed 2025-12-19 00:34:03 -08:00
1 parent ae5c01cc78
commit 78706903a2
2641 files changed
+228363 -201264

No files matched your search

@@ -3,19 +3,19 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* IP.Board v3.2.3
* IP.Board messenger attachments plugin
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
* Last Updated: $Date: 2011-09-20 21:18:18 -0400 (Tue, 20 Sep 2011) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since 6/24/2008
* @version $Revision: 5713 $
* @version $Revision: 9520 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -29,7 +29,6 @@ class plugin_msg extends class_attach
/**
* Module type
*
* @access public
* @var string
*/
public $module = 'msg';
@@ -37,7 +36,6 @@ class plugin_msg extends class_attach
/**
* Checks the attachment and checks for download / show perms
*
* @access public
* @param integer Attachment id
* @return array Attachment data
*/
@@ -77,7 +75,7 @@ class plugin_msg extends class_attach
// Check..
//-----------------------------------------
if ( ! isset( $attach['msg_id'] ) OR empty( $attach['msg_id'] ) )
if ( empty( $attach['msg_id'] ) )
{
if( $attach['attach_member_id'] != $this->memberData['member_id'] )
{
@@ -115,7 +113,6 @@ class plugin_msg extends class_attach
/**
* Check the attachment and make sure its OK to display
*
* @access public
* @param array Array of ids
* @param array Array of relationship ids
* @return array Attachment data
@@ -216,7 +213,6 @@ class plugin_msg extends class_attach
/**
* Recounts number of attachments for the articles row
*
* @access public
* @param string Post key
* @param integer Related ID
* @param array Arguments for query
@@ -236,7 +232,7 @@ class plugin_msg extends class_attach
if ( ! $post_key )
{
return 0;
return array( 'count' => 0 );
}
@@ -255,7 +251,6 @@ class plugin_msg extends class_attach
/**
* Recounts number of attachments for the articles row
*
* @access public
* @param array Attachment data
* @return boolean
*/
@@ -320,7 +315,6 @@ class plugin_msg extends class_attach
* Returns TRUE or FALSE
* IT really does
*
* @access public
* @param array Ids to check against
* @return boolean
*/
@@ -334,7 +328,6 @@ class plugin_msg extends class_attach
* Returns TRUE or FALSE
* IT really does
*
* @access public
* @param array Attachment data
* @return boolean
*/
@@ -388,7 +381,6 @@ class plugin_msg extends class_attach
* Return 'space_allowed' as 0 to allow unlimited uploads
* Return 'max_single_upload' as 0 to not set a limit
*
* @access public
* @param string MD5 post key
* @param id Member ID
* @return array [ 'space_used', 'space_left', 'space_allowed', 'max_single_upload' ]
@@ -432,7 +424,7 @@ class plugin_msg extends class_attach
'from' => 'attachments',
'where' => "attach_post_key='".$post_key."'" ) );
$space_used = intval( $_space_used['figure'] );
$space_used = $_space_used['figure'] ? $_space_used['figure'] : 0;
}
else
{
@@ -444,7 +436,7 @@ class plugin_msg extends class_attach
'from' => 'attachments',
'where' => 'attach_member_id='.$member_id . " AND attach_rel_module IN( 'post', 'msg' )" ) );
$space_used = intval( $_space_used['figure'] );
$space_used = $_space_used['figure'] ? $_space_used['figure'] : 0;
}
//-----------------------------------------
// Generate space allowed figure
@@ -458,9 +450,9 @@ class plugin_msg extends class_attach
'from' => 'attachments',
'where' => 'attach_member_id='.$member_id . " AND attach_rel_module IN( 'post', 'msg' )" ) );
$g_space_used = intval( $_g_space_used['figure'] );
$g_space_used = $_g_space_used['figure'] ? $_g_space_used['figure'] : 0;
if( intval( ( $this->memberData['g_attach_max'] * 1024 ) - $g_space_used ) < 0 )
if( ( $this->memberData['g_attach_max'] * 1024 ) - $g_space_used < 0 )
{
$space_used = $g_space_used;
$total_space_allowed = $this->memberData['g_attach_max'] * 1024;
@@ -537,7 +529,6 @@ class plugin_msg extends class_attach
* You can omit any of these settings and IPB will use the default
* settings (which are the ones entered into the ACP for post thumbnails)
*
* @access public
* @return boolean
*/
public function getSettings()