| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/inc/ |
Upload File : |
<?php
/* -----------------------------------------------------------------------------------------
$Id: xtc_get_order_data.inc.php 899 2005-04-29 02:40:57Z hhgag $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2003 nextcommerce (xtc_get_order_data.inc.php,v 1.1 2003/08/15); www.nextcommerce.org
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
function xtc_get_order_data($order_id) {
$coo_lang_file_master = MainFactory::create_object('LanguageTextManager', array(), true);
$order_query = xtc_db_query("SELECT
customers_name,
customers_company,
customers_street_address,
customers_suburb,
customers_city,
customers_postcode,
customers_state,
customers_country,
customers_telephone,
customers_email_address,
customers_address_format_id,
delivery_name,
delivery_company,
delivery_street_address,
delivery_suburb,
delivery_city,
delivery_postcode,
delivery_state,
delivery_country,
delivery_address_format_id,
billing_name,
billing_company,
billing_street_address,
billing_suburb,
billing_city,
billing_postcode,
billing_state,
billing_country,
billing_address_format_id,
payment_method,
comments,
date_purchased,
orders_status,
currency,
currency_value
FROM ".TABLE_ORDERS."
WHERE orders_id='".(int)$_GET['oID']."'");
$order_data= xtc_db_fetch_array($order_query);
// get order status name
$order_status_query=xtc_db_query("SELECT
orders_status_name
FROM ".TABLE_ORDERS_STATUS."
WHERE orders_status_id='".$order_data['orders_status']."'
AND language_id='".$_SESSION['languages_id']."'");
$order_status_data=xtc_db_fetch_array($order_status_query);
$order_data['orders_status']=$order_status_data['orders_status_name'];
// get language name for payment method
$coo_lang_file_master->init_from_lang_file('lang/' . $_SESSION['language'] . '/modules/payment/' . $order_data['payment_method'] . '.php');
$order_data['payment_method']=constant(strtoupper('MODULE_PAYMENT_'.$order_data['payment_method'].'_TEXT_TITLE'));
return $order_data;
}
?>