Esempio n. 1
0
 function order($order_id = '')
 {
     $this->info = array();
     $this->totals = array();
     $this->products = array();
     $this->customer = array();
     $this->delivery = array();
     if (tep_not_null($order_id)) {
         $this->query($order_id);
     } else {
         // >>> BEGIN REGISTER_GLOBALS
         link_post_variable('cc_type');
         link_post_variable('cc_owner');
         link_post_variable('cc_number');
         link_post_variable('cc_expires');
         link_post_variable('comments');
         // <<< END REGISTER_GLOBALS
         $this->cart();
     }
 }
Esempio n. 2
0
<?php

/*
$Id$

  osCmax e-Commerce
  http://www.osCmax.com

  Copyright 2000 - 2011 osCmax

  Released under the GNU General Public License
*/
require 'includes/application_top.php';
require DIR_WS_CLASSES . 'currencies.php';
$action = isset($_GET['action']) ? $_GET['action'] : '';
link_post_variable('custid');
// fix to allow turning off register_globals in php
$currencies = new currencies();
// Delete Entry Begin
if ($action == 'delete') {
    $reset_query_raw = "delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id=" . $_GET[customer_id];
    tep_db_query($reset_query_raw);
    $reset_query_raw2 = "delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id=" . $_GET[customer_id];
    tep_db_query($reset_query_raw2);
    tep_redirect(tep_href_link(FILENAME_RECOVER_CART_SALES, 'delete=1&customer_id=' . $_GET['customer_id'] . '&tdate=' . $_GET['tdate'] . '&sdate=' . $_GET['sdate']));
}
if (isset($_GET['delete'])) {
    $messageStack->add(MESSAGE_STACK_CUSTOMER_ID . $_GET['customer_id'] . MESSAGE_STACK_DELETE_SUCCESS, 'success');
}
// Delete Entry End
$tdate = '';
Esempio n. 3
0
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
$adminImages = "includes/languages/english/images/buttons/";
$backLink = "<a href=\"javascript:history.back()\">";
require 'new_attributes_config.php';
require 'includes/application_top.php';
require DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEW_ATTRIBUTE_MANAGER;
// Evolve Edit for Register Globals Off
link_post_variable('current_product_id');
link_post_variable('x');
link_post_variable('y');
link_post_variable('action');
link_post_variable('optionValues');
// link_post_variable('value_sort');
// End Evolve Edit for Register Globals Off
if ($cPathID && $action == "change") {
    require 'new_attributes_change.php';
    tep_redirect('./' . FILENAME_CATEGORIES . '?cPath=' . $cPathID . '&pID=' . $current_product_id);
}
?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php