<? include("../function/db.php");?>
<?
//Check access
admin_panel_access("orders_orders");


$sql="update downloads set tlimit=0,data=".(mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"))+3600*24*download_expiration)." where  order_id=".(int)$_GET["id"]." and  id_parent=".(int)$_GET["link_id"];
$db->execute($sql);



header("location:order_content.php?id=".(int)$_GET["id"]);
?>