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
* Allow user to change their status
* Last Updated: $Date: 2010-06-10 06:36:42 -0400 (Thu, 10 Jun 2010) $
* Last Updated: $Date: 2011-08-25 07:46:38 -0400 (Thu, 25 Aug 2011) $
* </pre>
*
* @author $Author: danc $
* @author $Author: mmecham $
* @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 Members
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since Tuesday 1st March 2005 (11:52)
* @version $Revision: 6502 $
* @version $Revision: 9413 $
*
*/
@@ -30,9 +30,8 @@ class public_members_profile_status extends ipsCommand
/**
* Class entry point
*
* @access public
* @param object Registry reference
* @return void [Outputs to screen]
* @return @e void [Outputs to screen]
*/
public function doExecute( ipsRegistry $registry )
{
@@ -91,9 +90,8 @@ class public_members_profile_status extends ipsCommand
/**
* Lock a status
*
* @access private
*/
private function _lockStatus()
protected function _lockStatus()
{
/* INIT */
$status_id = intval( $this->request['status_id'] );
@@ -133,9 +131,8 @@ class public_members_profile_status extends ipsCommand
/**
* Lock a status
*
* @access private
*/
private function _unlockStatus()
protected function _unlockStatus()
{
/* INIT */
$status_id = intval( $this->request['status_id'] );
@@ -175,25 +172,27 @@ class public_members_profile_status extends ipsCommand
/**
* Delete a status reply
*
* @access private
*/
private function _list()
protected function _list()
{
/* INIT */
$filters = array( 'limit' => 15 );
$filters = array( 'offset' => intval( $this->request['st'] ), 'limit' => 15, 'getCount' => true );
/* Add to the filters */
if ( $this->request['member_id'] )
{
$filters['member_id'] = intval( $this->request['member_id'] );
$filters['relatedTo'] = intval( $this->request['member_id'] );
$filters['isApproved'] = true;
}
else if ( $this->request['status_id'] )
{
$filters['status_id'] = intval( $this->request['status_id'] );
$filters['type'] = 'all';
}
else if ( $this->request['type'] == 'friends' )
{
$filters['friends_only'] = 1;
$filters['type'] = 'all';
}
/* Fetch last 20 */
@@ -201,11 +200,17 @@ class public_members_profile_status extends ipsCommand
/* Fetch */
$statuses = $this->registry->getClass('memberStatus')->fetch( $this->memberData, $filters );
$count = $this->registry->getClass('memberStatus')->getStatusCount();
/* Fetch actions */
$actions = $this->registry->getClass('memberStatus')->fetchActions( $this->memberData, array( 'limit' => 30, 'not_theirs' => 1, 'custom' => 0 ) );
$pages = $this->registry->getClass('output')->generatePagination( array( 'totalItems' => $count,
'itemsPerPage' => 15,
'currentStartValue' => $this->request['st'],
'seoTitle' => true,
'seoTemplate' => 'members_status_all',
'showNumbers' => false,
'baseUrl' => "app=members&amp;module=profile&amp;section=status&amp;type={$this->request['type']}&amp;member_id={$this->request['member_id']}" ) );
$content = $this->registry->getClass('output')->getTemplate('profile')->statusUpdatesPage( $statuses, $actions );
$content = $this->registry->getClass('output')->getTemplate('profile')->statusUpdatesPage( $statuses, $pages );
$this->registry->output->addContent( $content );
$this->registry->output->setTitle( $this->lang->words['status_updates_title'] . ' - ' . ipsRegistry::$settings['board_name'] );
@@ -217,9 +222,8 @@ class public_members_profile_status extends ipsCommand
/**
* Delete a status reply
*
* @access private
*/
private function _deleteReply()
protected function _deleteReply()
{
/* INIT */
$status_id = intval( $this->request['status_id'] );
@@ -261,9 +265,8 @@ class public_members_profile_status extends ipsCommand
/**
* Delete a status
*
* @access private
*/
private function _deleteStatus()
protected function _deleteStatus()
{
/* INIT */
$status_id = intval( $this->request['status_id'] );
@@ -280,11 +283,14 @@ class public_members_profile_status extends ipsCommand
/* Set Data */
$this->registry->getClass('memberStatus')->setStatusData( $status_id );
/* Can we reply? */
/* Can we delete? */
if ( ! $this->registry->getClass('memberStatus')->canDeleteStatus() )
{
$this->registry->output->showError( 'status_off', 10279, null, null, 403 );
}
/* Get info */
$status = $this->registry->getClass('memberStatus')->getStatusData();
/* Update */
$this->registry->getClass('memberStatus')->deleteStatus();
@@ -296,16 +302,17 @@ class public_members_profile_status extends ipsCommand
}
else
{
$this->registry->output->redirectScreen( $this->lang->words['status_deleted'], $this->settings['base_url'] . 'showuser=' . $this->memberData['member_id'], $this->memberData['members_seo_name'] );
$_text = ( $status['status_member_id'] == $status['status_author_id'] ) ? $this->lang->words['status_deleted'] : $this->lang->words['comment_was_deleted'];
$this->registry->output->redirectScreen( $_text, $this->settings['base_url'] . 'showuser=' . $status['status_member_id'] . '&amp;tab=status', $status['members_seo_name'] );
}
}
/**
* Add a reply statussesses
*
* @access private
*/
private function _reply()
protected function _reply()
{
/* INIT */
$status_id = intval( $this->request['status_id'] );
@@ -350,13 +357,13 @@ class public_members_profile_status extends ipsCommand
/**
* Add a new statussesses
*
* @access private
*/
private function _new()
protected function _new()
{
$id = intval( $this->memberData['member_id'] );
$su_Twitter = intval( $this->request['su_Twitter'] );
$su_Facebook = intval( $this->request['su_Facebook'] );
$forMemberId = intval( $this->request['forMemberId'] );
/* Set Author */
$this->registry->getClass('memberStatus')->setAuthor( $this->memberData );
@@ -370,8 +377,24 @@ class public_members_profile_status extends ipsCommand
$this->registry->output->showError( 'status_off', 10268, null, null, 403 );
}
/* Set post outs */
$this->registry->getClass('memberStatus')->setExternalUpdates( array( 'twitter' => $su_Twitter, 'facebook' => $su_Facebook ) );
/* Update or comment? */
if ( $forMemberId && $forMemberId != $this->memberData['member_id'] )
{
$owner = IPSMember::load( $forMemberId );
if ( ! $owner['pp_setting_count_comments'] )
{
$this->registry->output->showError( 'status_off', 10268, null, null, 403 );
}
/* Set owner */
$this->registry->getClass('memberStatus')->setStatusOwner( $owner );
}
else
{
/* Set post outs */
$this->registry->getClass('memberStatus')->setExternalUpdates( array( 'twitter' => $su_Twitter, 'facebook' => $su_Facebook ) );
}
/* Update */
$this->registry->getClass('memberStatus')->create();