getSettings(); $cart_id = $_GET['cart_id']; if(!empty($cart_id)) { $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id) ); if( !empty( $orders ) ) { $cart['price'] = 0; foreach($orders as $order) { if( $order['qty'] > 1 ) $order['invoice_duration'] = $order['invoice_duration']."s"; $cart['price'] += $order['price']; if( !isset( $cart['name'] ) ) $cart['name'] = $order['home_name']."(".$order['qty'].get_lang($order['invoice_duration']).",".$order['max_players'].get_lang('slots').")"; else $cart['name'] .= ' + '.$order['home_name']."(".$order['qty'].get_lang($order['invoice_duration']).",".$order['max_players'].get_lang('slots').")"; } $total = $cart['price']+($settings['tax_amount']/100*$cart['price']); if ($total === 0) { $db->query("UPDATE " . $table_prefix . "billing_carts SET paid=1 WHERE cart_id=".$db->realEscapeSingle($cart_id)); $view->refresh("home.php?m=simple-billing&p=cart",0); } else { $s = ( isset($_SERVER['HTTPS']) and get_true_boolean($_SERVER['HTTPS']) ) ? "s" : ""; $p = isset($_SERVER['SERVER_PORT']) & $_SERVER['SERVER_PORT'] != "80" ? ":".$_SERVER['SERVER_PORT'] : NULL ; $this_script = 'http'.$s.'://'.$_SERVER['SERVER_NAME'].$p.$_SERVER['SCRIPT_NAME']; $current_folder_url = str_replace( curPageName(), "", $this_script); echo ''. '
'. ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". '
'; } } } } ?>