Version 3.3.4

This commit is contained in:
Neo committed 2025-12-19 00:35:52 -08:00
1 parent 78706903a2
commit fb6b5baabc
2206 files changed
+409828 -382984

No files matched your search

@@ -3,12 +3,12 @@
* @file plugin_announcements.php Moderator control panel plugin: manage announcements
*~TERABYTE_DOC_READY~
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
* $License: This is NULLED!
* $Author: ips_terabyte $
* $License: http://www.invisionpower.com/company/standards.php#license$
* $Author: bfarber $
* @since 2/18/2011
* $LastChangedDate: 2011-09-26 15:52:07 -0400 (Mon, 26 Sep 2011) $
* @version v3.2.3
* $Revision: 9550 $
* $LastChangedDate: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* @version v3.3.4
* $Revision: 10914 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -170,7 +170,7 @@ class plugin_forums_announcements
while ( $r = $this->DB->fetch() )
{
$r['announce_seo_title'] = IPSText::makeSeoTitle( $r['announce_title'] );
$r['announce_seo_title'] = $r['announce_seo_title'] ? $r['announce_seo_title'] : IPSText::makeSeoTitle( $r['announce_title'] );
if ( $r['announce_forum'] == '*' )
{
@@ -211,6 +211,12 @@ class plugin_forums_announcements
*/
protected function _delete()
{
if ( $this->request['secure_key'] != $this->member->form_hash )
{
$this->registry->output->showError( 'no_permission', 10311902, null, null, 403 );
}
$announce_id = intval( $this->request['announce_id'] );
//-----------------------------------------
@@ -268,7 +274,7 @@ class plugin_forums_announcements
{
if ( !empty($this->request[$bit]) )
{
$announce[ $bit ] = $this->request[ $bit ];
$announce[ $bit ] = $bit == 'announce_post' ? $_POST[ $bit ] : $this->request[ $bit ];
}
else if( !isset($announce[ $bit] ) )
{
@@ -315,6 +321,12 @@ class plugin_forums_announcements
*/
protected function _save( $type='add' )
{
if ( $this->request['secure_key'] != $this->member->form_hash )
{
$this->registry->output->showError( 'no_permission', 10311903, null, null, 403 );
}
//-----------------------------------------
// INIT
//-----------------------------------------
@@ -419,7 +431,8 @@ class plugin_forums_announcements
'announce_html_enabled' => $this->request['announce_html_enabled'] ? $this->request['announce_html_enabled'] : 0,
'announce_nlbr_enabled' => $this->request['announce_nlbr_enabled'] ? $this->request['announce_nlbr_enabled'] : 0,
'announce_start' => $start_date,
'announce_end' => $end_date
'announce_end' => $end_date,
'announce_seo_title' => IPSText::makeSeoTitle( $this->request['announce_title'] ),
);
//-----------------------------------------