All pastes #78744 Raw Edit

MarkH_UK

public php v1 · immutable
·published 2006-07-04 14:44 UTC
rendered paste body
<?define("XCART_START", 1);define("XCART_START", 1);$xcart_dir="/var/www/shop/";require "/var/www/shop/config.php";if($start){        $orderids = func_query("SELECT orderid from $sql_tbl[orders] WHERE orde$        foreach($orderids as $k => $v){                if($v["orderid"]>$end){                        break;                }                $order_data = func_order_data($v["orderid"]);                $order = $order_data["order"];                $userinfo = $order_data["userinfo"];                $products = $order_data["products"];                func_send_csv_mail($order,$products);                echo "Sent: ".$v["orderid"]."<br>";        }}exit();?>