<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com  2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
include "../includes/config.php";
include "../includes/session.php";
include "../includes/functions.php";

//checking any sale details page without payment
$sqlSaleCheck=mysql_query("SELECT product_id,quantity FROM ".$tableprefix."cart WHERE status='1' AND
									DATE_ADD(date_format(FROM_UNIXTIME(datetime_added),'%Y-%c-%d'), INTERVAL 1 DAY) < CURDATE()") or die(mysql_error());
if(mysql_num_rows($sqlSaleCheck)>0)
{
	//delete records
	mysql_query("DELETE FROM ".$tableprefix."cart WHERE status='1' AND DATE_ADD(date_format(FROM_UNIXTIME(datetime_added),'%Y-%c-%d'), INTERVAL 1 DAY) < CURDATE()") 
									or die(mysql_error());
}//end if

// Cron Check For Seller Plans Expiry

		
?>