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,21 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Clean out 'dead' sessions, validations, registration image entires, etc
* Last Updated: $LastChangedDate: 2009-07-01 07:35:02 -0400 (Wed, 01 Jul 2009) $
* Last Updated: $LastChangedDate: 2010-07-28 05:00:44 -0400 (Wed, 28 Jul 2010) $
* </pre>
*
* @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 Core
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 4832 $
* @version $Rev: 6708 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -111,6 +113,14 @@ class task_item
$this->DB->delete( 'sessions', 'running_time < ' . ( IPS_UNIX_TIME_NOW - $this->settings['session_expiration'] ) );
//-----------------------------------------
// Lost password requests
//-----------------------------------------
$_cutoff = time() - ( $this->settings['lost_pw_prune'] * 60 * 60 * 24 );
$this->DB->delete( 'validating', 'lost_pass=1 AND entry_date < ' . $_cutoff );
//-----------------------------------------
// Log to log table - modify but dont delete
//-----------------------------------------