resultInsertId( 'billing_orders', $fields ); } function assignOrdersToCart($user_id,$tax_amount,$currency,$coupon_id){ global $db; $fields['user_id'] = $user_id; $fields['paid'] = '0'; $fields['tax_amount'] = $tax_amount; $fields['currency'] = $currency; //discount coupon if (!isset($coupon_id)) $coupon_id = "0"; $fields['coupon_id'] = $coupon_id; $check_expired = $db->resultquery("SELECT id from OGP_DB_PREFIXbilling_coupons WHERE id = $fields[coupon_id] AND count > 0 AND expires >= NOW()"); if ($check_expired <= 0) $fields['coupon_id'] = 0; return $db->resultInsertId( 'billing_carts', $fields ); } function exec_ogp_module() { error_reporting(E_ALL); global $db,$view,$settings; $discounted_price = 0; $user_id = $_SESSION['user_id']; if( isset( $_POST["buy"] ) or isset( $_POST["pay_paypal"] ) ) { $cart_id = $_POST['cart_id']; echo ''; } if( isset( $_POST["extend"] ) or isset( $_POST["extend_and_pay_paypal"] )) { } if(isset($_POST['remove'])) { } ?>
| Status | |||||
|---|---|---|---|---|---|
| getRemoteServer($order['ip']); if($order['home_id'] == 0) { echo "Order# ".$order['order_id'] . " ".$order['home_name'].""; //************************************************** ?> ".$order['home_name']." Server ID ".$order['home_id'] ; } ?> |
"
. $order['max_players'] . " Slots " . $order['qty'] . " " . $order['invoice_duration'] ; ?> |
0) { $status = "Active" ; } //status is -1, invoice has been created elseif($order['status'] == -1) { $status = "Invoice Due"; } //invoice was not paid, server is expired and suspended elseif($order['status'] == -2) { $status = "Suspended"; } //display the expiration date and invoice button. if($order['status'] > 0){$warning_status = "". $formated_finish_date ."";} if($order['status'] == -1){$warning_status ="". $formated_finish_date ."";} if($order['status'] == -2){$warning_status ="". $formated_finish_date ."" ;} ?> | |||
| Amount | ||
|
|
||
| Discounted Subtotal | ||
| Tax Amount | ||