<?php
/* Nulled by Wizzywig */
/***********تعريب***********/
/**          saher        **/
/**  منتديات شباب وصبايا  **/
/**   www.shababtop.com   **/
/**  saher1986@live.com   **/
/***************************/

/*
 *         RENAME THIS FILE IF USING - DO NOT LEAVE CRON.PHP
 * You must first uncomment the query lines below.  After, rename the file
 * something very unique so no one can run the file anytime they want.
 *
*/

// ########################## INCLUDE BACK-END ###########################
include_once ('config.php');

// ########################### CLEAN MESSAGES ############################
$sql = ("DELETE FROM arrowchat 
	WHERE arrowchat.read = 1 
		AND ('".time()."'-arrowchat.sent) > 10800"); // Deletes 3 hours old
// $query = mysql_query($sql);

// ######################## CLEAN NOTIFICATIONS ##########################
$sql = ("DELETE FROM arrowchat_notifications 
	WHERE arrowchat_notifications.user_read = 1 
		AND ('".time()."' - arrowchat_notifications.alert_time) > 432000"); // Deletes 5 days old
// $query = mysql_query($sql);

?>