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
* Poll voting
* Last Updated: $Date: 2010-05-07 19:47:39 -0400 (Fri, 07 May 2010) $
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: ips_terabyte $
* @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 Forums
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since 20th February 2002
* @version $Revision: 6250 $
* @version $Revision: 8644 $
*
*/
@@ -30,7 +30,6 @@ class public_forums_extras_vote extends ipsCommand
/**
* Topic data
*
* @access public
* @var array
*/
public $topic = array();
@@ -38,9 +37,8 @@ class public_forums_extras_vote extends ipsCommand
/**
* Class entry point
*
* @access public
* @param object Registry reference
* @return void [Outputs to screen/redirects]
* @return @e void [Outputs to screen/redirects]
*/
public function doExecute( ipsRegistry $registry )
{
@@ -92,7 +90,7 @@ class public_forums_extras_vote extends ipsCommand
'type' => 'left'
),
array(
'select' => 'f.allow_pollbump, f.status',
'select' => 'f.allow_pollbump',
'from' => array( 'forums' => 'f' ),
'where' => 'f.id=t.forum_id',
'type' => 'left'
@@ -117,11 +115,6 @@ class public_forums_extras_vote extends ipsCommand
$this->registry->output->showError( 'topic_vote_locked', 10352, true, null, 403 );
}
if( ! $this->topic['status'] )
{
$this->registry->output->showError( 'topic_cannot_vote', 103152, true, null, 403 );
}
//-----------------------------------------
// Have reply permissions??
//-----------------------------------------
@@ -153,9 +146,8 @@ class public_forums_extras_vote extends ipsCommand
/**
* Add vote to poll
*
* @access public
* @return void
**/
* @return @e void
*/
public function topicAddVoteToPoll()
{
//-----------------------------------------
@@ -307,14 +299,13 @@ class public_forums_extras_vote extends ipsCommand
$lang = $this->request['nullvote'] ? $this->lang->words['poll_viewing_results'] : $this->lang->words['poll_vote_added'];
$this->registry->output->redirectScreen( $lang , $this->settings['base_url'] . "showtopic={$this->topic['tid']}&amp;st=" . $this->request['st'] );
$this->registry->output->redirectScreen( $lang , $this->settings['base_url'] . "showtopic={$this->topic['tid']}&amp;st=" . $this->request['st'], $this->topic['title_seo'], 'showtopic' );
}
/**
* Remove votes
*
* @access public
* @return void
* @return @e void
*/
public function topicDeletePollVotes()
{
@@ -337,7 +328,7 @@ class public_forums_extras_vote extends ipsCommand
if ( ! $voter )
{
$this->registry->output->redirectScreen( $this->lang->words['poll_vote_deleted'], $this->settings['base_url'] . "showtopic={$this->topic['tid']}&amp;st=" . $this->request['st'] );
$this->registry->output->redirectScreen( $this->lang->words['poll_vote_deleted'], $this->settings['base_url'] . "showtopic={$this->topic['tid']}&amp;st=" . $this->request['st'], $this->topic['title_seo'], 'showtopic' );
}
//-----------------------------------------
@@ -376,6 +367,6 @@ class public_forums_extras_vote extends ipsCommand
$this->DB->update( 'polls', $update, "tid=" . $this->topic['tid'] );
/* done */
$this->registry->output->redirectScreen( $this->lang->words['poll_vote_deleted'], $this->settings['base_url'] . "showtopic={$this->topic['tid']}&amp;st=" . $this->request['st'] );
$this->registry->output->redirectScreen( $this->lang->words['poll_vote_deleted'], $this->settings['base_url'] . "showtopic={$this->topic['tid']}&amp;st=" . $this->request['st'], $this->topic['title_seo'], 'showtopic' );
}
}