Vergleich inc/tasks/dailycleanup.php - 1.6.4 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: dailycleanup.php 5353 2011-02-15 14:24:00Z Tomm $

 * $Id$

 */

function task_dailycleanup($task)

 */

function task_dailycleanup($task)

Zeile 17Zeile 17
	
// Clear out sessions older than 24h
$cut = TIME_NOW-60*60*24;

	
// Clear out sessions older than 24h
$cut = TIME_NOW-60*60*24;

	$db->delete_query("sessions", "uid='0' AND time < '{$cut}'");

	$db->delete_query("sessions", "time < '{$cut}'");


// Delete old read topics
if($mybb->settings['threadreadcut'] > 0)


// Delete old read topics
if($mybb->settings['threadreadcut'] > 0)