Version 3.4.8
This commit is contained in:
1 parent
b45ea0dffb
commit
c603205a25
1398 files changed
+36675
-31023
No files matched your search
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile AJAX hCard
|
||||
* Last Updated: $Date: 2012-05-30 13:28:08 -0400 (Wed, 30 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile display name history
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Member AJAX DST switcher
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile AJAX Comment Handler
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile AJAX Ignore User
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile AJAX Tab Loader
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile AJAX Ignored User methods
|
||||
* Last Updated: $Date: 2013-01-29 18:38:34 -0500 (Tue, 29 Jan 2013) $
|
||||
* Last Updated: $Date: 2015-04-24 13:07:02 -0400 (Fri, 24 Apr 2015) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: AndyMillne $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Thursday 26th June 2008
|
||||
* @version $Revision: 11914 $
|
||||
* @version $Revision: 12626 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -480,8 +480,6 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
//-----------------------------------------
|
||||
|
||||
$folderID = IPSText::alphanumericalClean( $this->request['folderID'] );
|
||||
$memberID = intval( $this->request['memberID'] );
|
||||
$memberData = IPSMember::load( $memberID, 'extendedProfile' );
|
||||
$status = 'ok';
|
||||
$mtids = array();
|
||||
|
||||
@@ -489,7 +487,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $memberData['member_id'] OR ! $folderID )
|
||||
if ( !$this->memberData['member_id'] OR ! $folderID )
|
||||
{
|
||||
$this->returnJsonError( 'noSuchFolder' );
|
||||
}
|
||||
@@ -498,7 +496,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// First off, get dir data
|
||||
//-----------------------------------------
|
||||
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $memberData['pconversation_filters'] );
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $this->memberData['pconversation_filters'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// "New" folder?
|
||||
@@ -507,12 +505,12 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
if ( $folderID == 'new' )
|
||||
{
|
||||
/* Just mark them as read */
|
||||
$this->DB->update( 'message_topic_user_map', array( 'map_has_unread' => 0 ), 'map_user_id=' . $memberID . " AND map_user_banned=0 AND map_user_active=1" );
|
||||
$this->DB->update( 'message_topic_user_map', array( 'map_has_unread' => 0 ), 'map_user_id=' . $this->memberData['member_id'] . " AND map_user_banned=0 AND map_user_active=1" );
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Delete all PMs -you- sent regardless of which folder they're in */
|
||||
$messages = $this->messengerFunctions->getPersonalTopicsList( $memberID, $folderID, array( 'offsetStart' => 0, 'offsetEnd' => 100000 ) );
|
||||
$messages = $this->messengerFunctions->getPersonalTopicsList( $this->memberData['member_id'], $folderID, array( 'offsetStart' => 0, 'offsetEnd' => 100000 ) );
|
||||
|
||||
/* Just grab IDs */
|
||||
$mtids = array_keys( $messages );
|
||||
@@ -532,7 +530,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
|
||||
try
|
||||
{
|
||||
$this->messengerFunctions->deleteTopics( $memberData['member_id'], $mtids );
|
||||
$this->messengerFunctions->deleteTopics( $this->memberData['member_id'], $mtids );
|
||||
}
|
||||
catch( Exception $error )
|
||||
{
|
||||
@@ -544,14 +542,14 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Reset total message count
|
||||
//-----------------------------------------
|
||||
|
||||
$totalMsgs = $this->messengerFunctions->resetMembersTotalTopicCount( $memberData['member_id'] );
|
||||
$this->messengerFunctions->resetMembersNewTopicCount( $memberData['member_id'] );
|
||||
$totalMsgs = $this->messengerFunctions->resetMembersTotalTopicCount( $this->memberData['member_id'] );
|
||||
$this->messengerFunctions->resetMembersNewTopicCount( $this->memberData['member_id'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// Update directory counts
|
||||
//-----------------------------------------
|
||||
|
||||
$newDirs = $this->messengerFunctions->resetMembersFolderCounts( $memberData['member_id'] );
|
||||
$newDirs = $this->messengerFunctions->resetMembersFolderCounts( $this->memberData['member_id'] );
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $newDirs );
|
||||
|
||||
$this->returnJsonArray( array( 'status' => $status, 'totalMsgs' => $totalMsgs, 'newDirs' => $newDirs, 'affectedDirCount' => $folders[ $folderID ]['count'] ) );
|
||||
@@ -570,8 +568,6 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
//-----------------------------------------
|
||||
|
||||
$folderID = IPSText::alphanumericalClean( $this->request['folderID'] );
|
||||
$memberID = intval( $this->request['memberID'] );
|
||||
$memberData = IPSMember::load( $memberID, 'extendedProfile' );
|
||||
|
||||
// If we run through alpha clean, chars in other langs don't work properly of course
|
||||
$name = IPSText::truncate( $this->convertAndMakeSafe($_POST['name']), 50 ); //IPSText::alphanumericalClean( $this->request['name'], ' ' );
|
||||
@@ -581,13 +577,13 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// First off, get dir data
|
||||
//-----------------------------------------
|
||||
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $memberData['pconversation_filters'] );
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $this->memberData['pconversation_filters'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// Check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $memberData['member_id'] OR ! $folderID )
|
||||
if ( !$this->memberData['member_id'] OR ! $folderID )
|
||||
{
|
||||
$this->returnJsonError( 'noSuchFolder' );
|
||||
}
|
||||
@@ -629,7 +625,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Save...
|
||||
//-----------------------------------------
|
||||
|
||||
IPSMember::save( $memberID, array( 'extendedProfile' => array( 'pconversation_filters' => $newDirs ) ) );
|
||||
IPSMember::save( $this->memberData['member_id'], array( 'extendedProfile' => array( 'pconversation_filters' => $newDirs ) ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Return...
|
||||
@@ -651,24 +647,21 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
//-----------------------------------------
|
||||
|
||||
$folderID = IPSText::alphanumericalClean( $this->request['folderID'] );
|
||||
$memberID = intval( $this->request['memberID'] );
|
||||
$memberData = IPSMember::load( $memberID, 'extendedProfile' );
|
||||
$status = 'ok';
|
||||
|
||||
IPSDebug::fireBug( 'info', array( 'Received folder id:' . $folderID ) );
|
||||
IPSDebug::fireBug( 'info', array( 'Received member id:' . $memberID ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// First off, get dir data
|
||||
//-----------------------------------------
|
||||
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $memberData['pconversation_filters'] );
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $this->memberData['pconversation_filters'] );
|
||||
|
||||
//-----------------------------------------
|
||||
// Check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $memberData['member_id'] OR ! $folderID )
|
||||
if ( ! $this->memberData['member_id'] OR ! $folderID )
|
||||
{
|
||||
IPSDebug::fireBug( 'error', array( 'Missing member id or folder id' ) );
|
||||
|
||||
@@ -708,14 +701,14 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// $this->returnJsonError( 'cannotDeleteHasMessages' );
|
||||
//}
|
||||
|
||||
$messages = $this->messengerFunctions->getPersonalTopicsList( $memberID, $folderID, array( 'offsetStart' => 0, 'offsetEnd' => 100000 ) );
|
||||
$messages = $this->messengerFunctions->getPersonalTopicsList( $this->memberData['member_id'], $folderID, array( 'offsetStart' => 0, 'offsetEnd' => 100000 ) );
|
||||
|
||||
/* Just grab IDs */
|
||||
$mtids = array_keys( $messages );
|
||||
|
||||
try
|
||||
{
|
||||
$this->messengerFunctions->deleteTopics( $memberData['member_id'], $mtids );
|
||||
$this->messengerFunctions->deleteTopics( $this->memberData['member_id'], $mtids );
|
||||
}
|
||||
catch( Exception $error )
|
||||
{
|
||||
@@ -741,7 +734,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Save...
|
||||
//-----------------------------------------
|
||||
|
||||
IPSMember::save( $memberID, array( 'extendedProfile' => array( 'pconversation_filters' => $newDirs ) ) );
|
||||
IPSMember::save( $this->memberData['member_id'], array( 'extendedProfile' => array( 'pconversation_filters' => $newDirs ) ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Return...
|
||||
@@ -763,8 +756,6 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
//-----------------------------------------
|
||||
|
||||
$name = IPSText::truncate( $this->convertAndMakeSafe($_POST['name']), 50 );
|
||||
$memberID = intval( $this->request['memberID'] );
|
||||
$memberData = IPSMember::load( $memberID, 'extendedProfile' );
|
||||
$status = 'ok';
|
||||
$maxID = 0;
|
||||
|
||||
@@ -772,7 +763,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $memberData['member_id'] OR ! $name )
|
||||
if ( ! $this->memberData['member_id'] OR ! $name )
|
||||
{
|
||||
$this->returnJsonError( 'invalidName' );
|
||||
}
|
||||
@@ -781,7 +772,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Get vdir information
|
||||
//-----------------------------------------
|
||||
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $memberData['pconversation_filters'] );
|
||||
$folders = $this->messengerFunctions->explodeFolderData( $this->memberData['pconversation_filters'] );
|
||||
|
||||
foreach( $folders as $id => $folder )
|
||||
{
|
||||
@@ -819,7 +810,7 @@ class public_members_ajax_messenger extends ipsAjaxCommand
|
||||
// Save...
|
||||
//-----------------------------------------
|
||||
|
||||
IPSMember::save( $memberID, array( 'extendedProfile' => array( 'pconversation_filters' => $newDirs ) ) );
|
||||
IPSMember::save( $this->memberData['member_id'], array( 'extendedProfile' => array( 'pconversation_filters' => $newDirs ) ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Return...
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* $Author: mmecham $
|
||||
* @since 7th Feb 2011
|
||||
* $LastChangedDate: 2012-05-11 11:17:52 -0400 (Fri, 11 May 2012) $
|
||||
* @version v3.4.6
|
||||
* @version v3.4.8
|
||||
* $Revision: 10727 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile AJAX Tab Loader
|
||||
* Last Updated: $Date: 2013-03-19 10:12:37 -0400 (Tue, 19 Mar 2013) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Allow user to change their status
|
||||
* Last Updated: $Date: 2012-11-05 09:03:19 -0500 (Mon, 05 Nov 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* $Author: bfarber $ (Original: Mark)
|
||||
* @since 9 Nov 2011
|
||||
* $LastChangedDate: 2012-06-29 10:12:14 -0400 (Fri, 29 Jun 2012) $
|
||||
* @version v3.4.6
|
||||
* @version v3.4.8
|
||||
* $Revision: 11007 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -7,7 +7,7 @@
|
||||
* $Author: ips_terabyte $
|
||||
* @since 20th February 2002
|
||||
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
|
||||
* @version v3.4.6
|
||||
* @version v3.4.8
|
||||
* $Revision: 8655 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Member list
|
||||
* Last Updated: $Date: 2013-10-16 19:11:24 -0400 (Wed, 16 Oct 2013) $
|
||||
* Last Updated: $Date: 2015-05-08 05:55:54 -0400 (Fri, 08 May 2015) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: rashbrook $
|
||||
* @author $Author: mmecham $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 20th February 2002
|
||||
* @version $Revision: 12381 $
|
||||
* @version $Revision: 12635 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -124,14 +124,14 @@ class public_members_list_view extends ipsCommand
|
||||
$url = array();
|
||||
$pp_rating_real = isset($this->request['pp_rating_real']) ? intval( $this->request['pp_rating_real'] ) : 0;
|
||||
$this->first = isset($this->request['st']) ? intval($this->request['st']) : 0;
|
||||
$this->max_results = !empty($this->request['max_results']) ? $this->request['max_results'] : $this->max_results;
|
||||
$this->sort_key = !empty($this->request['sort_key']) ? $this->request['sort_key'] : 'members_display_name';
|
||||
$this->sort_order = !empty($this->request['sort_order']) ? $this->request['sort_order'] : 'asc';
|
||||
$this->max_results = !empty($this->request['max_results']) ? IPSText::parseCleanValue( $this->request['max_results'] ) : $this->max_results;
|
||||
$this->sort_key = !empty($this->request['sort_key']) ? IPSText::parseCleanValue( $this->request['sort_key'] ) : 'members_display_name';
|
||||
$this->sort_order = !empty($this->request['sort_order']) ? IPSText::parseCleanValue( $this->request['sort_order'] ): 'asc';
|
||||
$this->filter = !empty($this->request['filter']) ? ( $this->request['filter'] == 'ALL' ? 'ALL' : intval( $this->request['filter'] ) ) : 'ALL';
|
||||
|
||||
$this->request['showall'] = isset($this->request['showall']) ? intval( $this->request['showall'] ) : 0;
|
||||
$this->request['name_box'] = isset($this->request['name_box']) ? $this->request['name_box'] : '';
|
||||
$this->request['quickjump'] = isset($this->request['quickjump']) ? $this->request['quickjump'] : 0;
|
||||
$this->request['name_box'] = isset($this->request['name_box']) ? IPSText::parseCleanValue( $this->request['name_box'] ) : '';
|
||||
$this->request['quickjump'] = isset($this->request['quickjump']) ? IPSText::parseCleanValue( $this->request['quickjump'] ) : '';
|
||||
|
||||
$_queryPP = false;
|
||||
|
||||
@@ -362,7 +362,7 @@ class public_members_list_view extends ipsCommand
|
||||
//-----------------------------------------
|
||||
// Custom fields?
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( count( $this->custom_fields->out_fields ) )
|
||||
{
|
||||
foreach( $this->custom_fields->out_fields as $id => $data )
|
||||
@@ -375,14 +375,14 @@ class public_members_list_view extends ipsCommand
|
||||
{
|
||||
foreach( $this->request[ 'field_' . $id ] as $k => $v )
|
||||
{
|
||||
$this->request[ 'field_' . $id ][ $k ] = urldecode($v);
|
||||
$this->request[ 'field_' . $id ][ $k ] = IPSText::parseCleanValue( urldecode($v) );
|
||||
$url['field_' . $id] = "field_{$id}[{$k}]=" . $v;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$url['field_' . $id] = "field_{$id}=" . $this->request[ 'field_' . $id ];
|
||||
$this->request[ 'field_' . $id ] = urldecode($this->request[ 'field_' . $id ]);
|
||||
$this->request[ 'field_' . $id ] = IPSText::parseCleanValue( urldecode($this->request[ 'field_' . $id ]) );
|
||||
}
|
||||
|
||||
if( $this->custom_fields->cache_data[ $id ]['pf_type'] == 'drop' )
|
||||
@@ -393,9 +393,22 @@ class public_members_list_view extends ipsCommand
|
||||
{
|
||||
if ( count( $this->request[ 'field_' . $id ] ) )
|
||||
{
|
||||
foreach ( $this->request[ 'field_' . $id ] as $k => $v )
|
||||
if ( $this->custom_fields->cache_data[ $id ]['pf_search_type'] == 'loose' )
|
||||
{
|
||||
$query[] = "p.field_{$id} LIKE '%|{$k}|%'";
|
||||
$cboxFields = array();
|
||||
foreach ( $this->request[ 'field_' . $id ] as $k => $v )
|
||||
{
|
||||
$cboxFields[] = "p.field_{$id} LIKE '%|{$k}|%'";
|
||||
}
|
||||
|
||||
$query[] = "( " . implode( ' OR ', $cboxFields ) . " )";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach ( $this->request[ 'field_' . $id ] as $k => $v )
|
||||
{
|
||||
$query[] = "p.field_{$id} LIKE '%|{$k}|%'";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* $Author: ips_terabyte $
|
||||
* @since 20th February 2002
|
||||
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
|
||||
* @version v3.4.6
|
||||
* @version v3.4.8
|
||||
* $Revision: 8655 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,9 +3,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Mark a private message as read
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* Last Updated: $Date: 2015-02-18 10:39:15 -0500 (Wed, 18 Feb 2015) $
|
||||
* </pre>
|
||||
*
|
||||
* @author Brandon Farber
|
||||
@@ -15,7 +15,7 @@
|
||||
* @subpackage Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Thurs 7th Jan 2010
|
||||
* @version $Rev: 10721 $
|
||||
* @version $Rev: 12599 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -38,6 +38,15 @@ class public_members_messaging_markasread extends ipsCommand
|
||||
$_ajax = intval($this->request['ajax']);
|
||||
$topic = intval($this->request['topicID']);
|
||||
|
||||
//-----------------------------------------
|
||||
// Auth check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->request['authKey'] != $this->member->form_hash )
|
||||
{
|
||||
$this->registry->getClass('output')->showError( 'messenger_bad_key', 2024, null, null, 403 );
|
||||
}
|
||||
|
||||
if( !$topic )
|
||||
{
|
||||
$this->endReturn( $_ajax );
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Online list
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Online list
|
||||
* Last Updated: $Date: 2012-12-13 08:29:08 -0500 (Thu, 13 Dec 2012) $
|
||||
* Last Updated: $Date: 2015-04-24 13:16:25 -0400 (Fri, 24 Apr 2015) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: AndyMillne $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 12th March 2002
|
||||
* @version $Revision: 11713 $
|
||||
* @version $Revision: 12627 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -492,6 +492,15 @@ class public_members_messaging_send extends ipsCommand
|
||||
|
||||
try
|
||||
{
|
||||
/* Make sure this was the user who owned the topic if they are editing a draft */
|
||||
if( $topicID )
|
||||
{
|
||||
if( $this->messengerFunctions->canAccessTopic( $this->memberData['member_id'], $topicID ) !== TRUE )
|
||||
{
|
||||
throw new Exception( 'NO_PERMISSION' );
|
||||
}
|
||||
}
|
||||
|
||||
$this->messengerFunctions->sendNewPersonalTopic( $toMember['member_id'], $this->memberData['member_id'], $inviteUsers, $msgTitle, $msgContent, array( 'isDraft' => $draft,
|
||||
'topicID' => $topicID,
|
||||
'sendMode' => $sendType,
|
||||
@@ -886,7 +895,7 @@ class public_members_messaging_send extends ipsCommand
|
||||
|
||||
if ( $preview )
|
||||
{
|
||||
$displayData['message'] = $_POST['Post-NS'];
|
||||
$displayData['message'] = $_editor->htmlPurify( $_POST['Post-NS'] );
|
||||
|
||||
if( $this->request['_from'] == 'quickPM' )
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Online list
|
||||
* Last Updated: $Date: 2012-05-21 11:56:33 -0400 (Mon, 21 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* $Author: ips_terabyte $
|
||||
* @since 20th February 2002
|
||||
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
|
||||
* @version v3.4.6
|
||||
* @version v3.4.8
|
||||
* $Revision: 8655 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Online list
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* $Author: ips_terabyte $
|
||||
* @since 20th February 2002
|
||||
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
|
||||
* @version v3.4.6
|
||||
* @version v3.4.8
|
||||
* $Revision: 8655 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile View
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile View
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Ignore a user
|
||||
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,9 +3,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile Photo
|
||||
* Last Updated: $Date: 2012-06-06 06:31:40 -0400 (Wed, 06 Jun 2012) $
|
||||
* Last Updated: $Date: 2015-02-18 08:20:59 -0500 (Wed, 18 Feb 2015) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: AndyMillne $
|
||||
@@ -15,7 +15,7 @@
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 20th February 2002
|
||||
* @version $Revision: 10874 $
|
||||
* @version $Revision: 12598 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -73,6 +73,11 @@ class public_members_profile_photo extends ipsCommand
|
||||
*/
|
||||
protected function _remove()
|
||||
{
|
||||
if ( $this->request['secure_key'] != $this->member->form_hash )
|
||||
{
|
||||
$this->registry->getClass('output')->showError( 'no_permission', 20314.1, null, null, 403 );
|
||||
}
|
||||
|
||||
$this->photo->remove( $this->memberData['member_id'] );
|
||||
|
||||
/* redirect to show */
|
||||
@@ -86,6 +91,11 @@ class public_members_profile_photo extends ipsCommand
|
||||
*/
|
||||
protected function _save()
|
||||
{
|
||||
if ( $this->request['secure_key'] != $this->member->form_hash )
|
||||
{
|
||||
$this->registry->getClass('output')->showError( 'no_permission', 20314.1, null, null, 403 );
|
||||
}
|
||||
|
||||
$getJson = intval( $this->request['getJson'] );
|
||||
$photoType = $this->request['photoType'];
|
||||
$gravatar = $this->request['gravatar'];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Allow user to change their status
|
||||
* Last Updated: $Date: 2013-05-02 11:20:01 -0400 (Thu, 02 May 2013) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Profile View
|
||||
* Last Updated: $Date: 2013-10-14 15:30:19 -0400 (Mon, 14 Oct 2013) $
|
||||
* </pre>
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Warnings Management
|
||||
* Last Updated: $Date: 2013-02-01 20:54:48 -0500 (Fri, 01 Feb 2013) $
|
||||
* Last Updated: $Date: 2014-08-14 09:13:37 -0400 (Thu, 14 Aug 2014) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: AndyMillne $ (Original: Mark)
|
||||
* @author $Author: bfarber $ (Original: Mark)
|
||||
* @copyright © 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th November 2011
|
||||
* @version $Revision: 11930 $
|
||||
* @version $Revision: 12485 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -775,18 +775,20 @@ class public_members_profile_warnings extends ipsCommand
|
||||
}
|
||||
}
|
||||
|
||||
IPSText::getTextClass('bbcode')->parse_smilies = TRUE;
|
||||
IPSText::getTextClass('bbcode')->parse_bbcode = TRUE;
|
||||
IPSText::getTextClass('bbcode')->parse_html = FALSE;
|
||||
IPSText::getTextClass('bbcode')->parse_nl2br = TRUE;
|
||||
IPSText::getTextClass('bbcode')->parse_smilies = TRUE;
|
||||
IPSText::getTextClass('bbcode')->parse_bbcode = TRUE;
|
||||
IPSText::getTextClass('bbcode')->parse_html = FALSE;
|
||||
IPSText::getTextClass('bbcode')->parse_nl2br = TRUE;
|
||||
IPSText::getTextClass('bbcode')->bypass_badwords = FALSE;
|
||||
|
||||
IPSText::getTextClass('bbcode')->parsing_section = 'warn';
|
||||
|
||||
IPSText::getTextClass( 'bbcode' )->parsing_mgroup = $this->memberData['member_group_id'];
|
||||
IPSText::getTextClass( 'bbcode' )->parsing_mgroup_others = $this->memberData['mgroup_others'];
|
||||
|
||||
|
||||
IPSText::getTextClass( 'bbcode' )->parsing_mgroup = $this->memberData['member_group_id'];
|
||||
IPSText::getTextClass( 'bbcode' )->parsing_mgroup_others = $this->memberData['mgroup_others'];
|
||||
|
||||
$warning['wl_note_member'] = IPSText::getTextClass('bbcode')->preDisplayParse( $warning['wl_note_member'] );
|
||||
|
||||
$_SERVER['HTTP_REFERER'] = htmlspecialchars( $_SERVER['HTTP_REFERER'] );
|
||||
|
||||
$this->registry->output->addContent( $this->registry->output->getTemplate('profile')->acknowledgeWarning( $warning ) );
|
||||
$this->registry->output->setTitle( $this->lang->words['warnings_acknowledge'] );
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
IP.Board
|
||||
<a href="http://www.invisionpower.com/">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* Most Liked Content
|
||||
* Last Updated: $Date: 2013-10-21 09:41:15 -0400 (Mon, 21 Oct 2013) $
|
||||
* </pre>
|
||||
|
||||
Reference in new issue
Block a user