Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

@@ -1,19 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Deactivate expired announcements
* Last Updated: $LastChangedDate: 2009-02-04 15:03:36 -0500 (Wed, 04 Feb 2009) $
* Last Updated: $LastChangedDate: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 3887 $
* @version $Rev: 7003 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -25,49 +26,49 @@ if ( ! defined( 'IN_IPB' ) )
class task_item
{
/**
* Parent task manager class
*
* @access protected
* @var object
*/
* Parent task manager class
*
* @var object
*/
protected $class;
/**
* This task data
*
* @access protected
* @var array
*/
* This task data
*
* @var array
*/
protected $task = array();
/**
* Prevent logging
*
* @access protected
* @var boolean
*/
* Prevent logging
*
* @var boolean
*/
protected $restrict_log = false;
/**
* Registry Object Shortcuts
*/
* Registry Object Shortcuts
*
* @var object
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @access public
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
* Constructor
*
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
public function __construct( ipsRegistry $registry, $class, $task )
{
/* Make registry objects */
@@ -86,11 +87,10 @@ class task_item
}
/**
* Run this task
*
* @access public
* @return void
*/
* Run this task
*
* @return void
*/
public function runTask()
{
$this->registry->getClass('class_localization')->loadLanguageFile( array( 'public_global' ), 'core' );
@@ -99,8 +99,8 @@ class task_item
// Deactivate expired announcements
//-----------------------------------------
require ( IPSLib::getAppDir( 'forums' ) . '/modules_public/forums/announcements.php' );
$announcements = new public_forums_forums_announcements();
$classToLoad = IPSLib::loadActionOverloader( IPSLib::getAppDir( 'forums' ) . '/modules_public/forums/announcements.php', 'public_forums_forums_announcements' );
$announcements = new $classToLoad();
$announcements->makeRegistryShortcuts( $this->registry );
$announcements->announceRetireExpired();
@@ -116,5 +116,4 @@ class task_item
$this->class->unlockTask( $this->task );
}
}
@@ -1,19 +1,21 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Prunes subscribed topics
* Last Updated: $LastChangedDate: 2009-08-24 20:56:22 -0400 (Mon, 24 Aug 2009) $
* Last Updated: $LastChangedDate: 2010-07-07 08:09:48 -0400 (Wed, 07 Jul 2010) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: matt $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 5041 $
* @version $Rev: 6609 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -162,6 +164,52 @@ class task_item
$this->DB->delete( 'attachments', "attach_id IN(" . implode( ",", $deadid ) . ")" );
}
//-----------------------------------------
// Delete old topic redirects
//-----------------------------------------
if ( intval( $this->settings['topic_redirect_prune'] ) > 0 )
{
$time = time() - ( $this->settings['topic_redirect_prune'] * 86400 );
$tids = array();
$fids = array();
/* Grab topics ensuring we use the index */
$this->DB->build( array( 'select' => 'tid, moved_to, forum_id',
'from' => 'topics',
'where' => 'forum_id > 0 AND pinned=0 AND last_post < ' . $time . " AND state='link'",
'limit' => array( 0, 150 ) ) );
$this->DB->execute();
while ( $row = $this->DB->fetch() )
{
/* ensure it's a moved topic */
if ( $row['moved_to'] )
{
$tids[] = $row['tid'];
$fids[ $row['forum_id'] ]++;
}
}
if ( count( $tids ) > 0 )
{
$this->DB->delete( 'topics', "tid IN (" . implode( ",", $tids ) . ")" );
if ( count( $fids ) )
{
foreach( $fids as $f => $count )
{
/* remove the count */
$this->DB->force_data_type = array( 'topics' => 'int' );
$this->DB->update( 'forums', array( 'topics' => 'minus:' . $count ), 'id=' . intval( $f ) );
}
}
}
$redirectsDeleted = intval( count( $tids ) );
}
//-----------------------------------------
// Remove old XML-RPC logs...
//-----------------------------------------
@@ -179,7 +227,7 @@ class task_item
// Log to log table - modify but dont delete
//-----------------------------------------
$this->class->appendTaskLog( $this->task, sprintf( $this->lang->words['task_dailycleanout'], $xmlrpc_logs_deleted, $_attach_count, $deleted ) );
$this->class->appendTaskLog( $this->task, sprintf( $this->lang->words['task_dailycleanout'], $xmlrpc_logs_deleted, $_attach_count, $deleted, $redirectsDeleted ) );
//-----------------------------------------
// Unlock Task: DO NOT MODIFY!
@@ -1,19 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Send the daily digest emails
* Last Updated: $LastChangedDate: 2009-03-03 11:17:41 -0500 (Tue, 03 Mar 2009) $
* Last Updated: $LastChangedDate: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
* </pre>
*
* @author $Author: matt $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 4133 $
* @version $Rev: 7003 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -25,60 +26,60 @@ if ( ! defined( 'IN_IPB' ) )
class task_item
{
/**
* Parent task manager class
*
* @access protected
* @var object
*/
* Parent task manager class
*
* @var object
*/
protected $class;
/**
* This task data
*
* @access protected
* @var array
*/
* This task data
*
* @var array
*/
protected $task = array();
/**
* Prevent logging
*
* @access protected
* @var boolean
*/
* Prevent logging
*
* @var boolean
*/
protected $restrict_log = false;
/**
* Registry Object Shortcuts
*/
* Registry Object Shortcuts
*
* @var object
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @access public
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
* Constructor
*
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
public function __construct( ipsRegistry $registry, $class, $task )
{
/* Make registry objects */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->class = $class;
@@ -86,11 +87,10 @@ class task_item
}
/**
* Run this task
*
* @access public
* @return void
*/
* Run this task
*
* @return void
*/
public function runTask()
{
$this->registry->getClass('class_localization')->loadLanguageFile( array( 'public_global' ), 'core' );
@@ -99,14 +99,14 @@ class task_item
// Send daily digests...
//-----------------------------------------
require ( IPSLib::getAppDir( 'forums' ) . '/sources/classes/digest.php' );
$digest = new digestLibrary( $this->registry );
$digest->digest_time = 'daily';
$digest->digest_type = 'topic';
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/digest.php', 'digestLibrary', 'forums' );
$digest = new $classToLoad( $this->registry );
$digest->digest_time = 'daily';
$digest->digest_type = 'topic';
$digest->runDigest();
$digest->digest_time = 'daily';
$digest->digest_type = 'forum';
$digest->digest_time = 'daily';
$digest->digest_type = 'forum';
$digest->runDigest();
//-----------------------------------------
@@ -121,5 +121,4 @@ class task_item
$this->class->unlockTask( $this->task );
}
}
@@ -1 +1,10 @@
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionboard.com/">IP.Board</a>
</body>
</html>
@@ -1,19 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Update the rss import
* Last Updated: $LastChangedDate: 2009-11-24 18:10:00 -0500 (Tue, 24 Nov 2009) $
* Last Updated: $LastChangedDate: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 5467 $
* @version $Rev: 7003 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -25,57 +26,54 @@ if ( ! defined( 'IN_IPB' ) )
class task_item
{
/**
* Parent task manager class
*
* @access protected
* @var object
*/
* Parent task manager class
*
* @var object
*/
protected $class;
/**
* This task data
*
* @access protected
* @var array
*/
* This task data
*
* @var array
*/
protected $task = array();
/**
* Prevent logging
*
* @access protected
* @var boolean
*/
* Prevent logging
*
* @var boolean
*/
protected $restrict_log = false;
/**
* Limit
*
* @access protected
* @var integer
*/
* Limit
*
* @var integer
*/
protected $limit = 10;
/**
* Registry Object Shortcuts
*/
* Registry Object Shortcuts
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @access public
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
* Constructor
*
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
public function __construct( ipsRegistry $registry, $class, $task )
{
/* Make registry objects */
@@ -94,11 +92,10 @@ class task_item
}
/**
* Run this task
*
* @access public
* @return void
*/
* Run this task
*
* @return void
*/
public function runTask()
{
$this->registry->getClass('class_localization')->loadLanguageFile( array( 'public_global' ), 'core' );
@@ -129,8 +126,8 @@ class task_item
{
define( 'IN_ACP', 1 );
require_once( IPSLib::getAppDir( 'forums' ) . '/modules_admin/rss/import.php' );
$rss = new admin_forums_rss_import();
$classToLoad = IPSLib::loadActionOverloader( IPSLib::getAppDir( 'forums' ) . '/modules_admin/rss/import.php', 'admin_forums_rss_import' );
$rss = new $classToLoad();
$rss->makeRegistryShortcuts( $this->registry );
while( $rss_feed = $this->DB->fetch( $rss_main_query ) )
@@ -1,19 +1,21 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Update topic views
* Last Updated: $LastChangedDate: 2009-02-04 15:03:36 -0500 (Wed, 04 Feb 2009) $
* Last Updated: $LastChangedDate: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 3887 $
* @version $Rev: 5713 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -1,19 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Send the weekly digest emails
* Last Updated: $LastChangedDate: 2009-03-03 11:17:41 -0500 (Tue, 03 Mar 2009) $
* Last Updated: $LastChangedDate: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
* </pre>
*
* @author $Author: matt $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 4133 $
* @version $Rev: 7003 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -25,49 +26,49 @@ if ( ! defined( 'IN_IPB' ) )
class task_item
{
/**
* Parent task manager class
*
* @access protected
* @var object
*/
* Parent task manager class
*
* @var object
*/
protected $class;
/**
* This task data
*
* @access protected
* @var array
*/
* This task data
*
* @var array
*/
protected $task = array();
/**
* Prevent logging
*
* @access protected
* @var boolean
*/
* Prevent logging
*
* @var boolean
*/
protected $restrict_log = false;
/**
* Registry Object Shortcuts
*/
* Registry Object Shortcuts
*
* @var object
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @access public
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
* Constructor
*
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
public function __construct( ipsRegistry $registry, $class, $task )
{
/* Make registry objects */
@@ -86,11 +87,10 @@ class task_item
}
/**
* Run this task
*
* @access public
* @return void
*/
* Run this task
*
* @return void
*/
public function runTask()
{
$this->registry->getClass('class_localization')->loadLanguageFile( array( 'public_global' ), 'core' );
@@ -99,14 +99,14 @@ class task_item
// Send daily digests...
//-----------------------------------------
require ( IPSLib::getAppDir( 'forums' ) . '/sources/classes/digest.php' );
$digest = new digestLibrary( $this->registry );
$digest->digest_time = 'weekly';
$digest->digest_type = 'topic';
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/digest.php', 'digestLibrary', 'forums' );
$digest = new $classToLoad( $this->registry );
$digest->digest_time = 'weekly';
$digest->digest_type = 'topic';
$digest->runDigest();
$digest->digest_time = 'weekly';
$digest->digest_type = 'forum';
$digest->digest_time = 'weekly';
$digest->digest_type = 'forum';
$digest->runDigest();
//-----------------------------------------
@@ -121,5 +121,4 @@ class task_item
$this->class->unlockTask( $this->task );
}
}