[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/admin/includes/ -> affiliate_application_top.php (source)

   1  <?php
   2  /*

   3  $Id: affiliate_application_top.php 14 2006-07-28 17:42:07Z user $

   4  

   5    OSC-Affiliate

   6  

   7    Contribution based on:

   8  

   9    osCMax Power E-Commerce

  10    http://oscdox.com

  11  

  12    Copyright 2006 osCMax

  13  

  14    Released under the GNU General Public License

  15  */
  16  
  17  // Set the local configuration parameters - mainly for developers

  18    if (file_exists(DIR_WS_INCLUDES . 'local/affiliate_configure.php')) include(DIR_WS_INCLUDES . 'local/affiliate_configure.php');
  19  
  20    require (DIR_WS_INCLUDES . 'affiliate_configure.php');
  21    require (DIR_WS_FUNCTIONS . 'affiliate_functions.php');
  22  
  23    define('FILENAME_AFFILIATE', 'affiliate_affiliates.php');
  24    define('FILENAME_AFFILIATE_BANNERS', 'affiliate_banners.php');
  25    define('FILENAME_AFFILIATE_BANNER_MANAGER', 'affiliate_banners.php');
  26    define('TABLE_AFFILIATE_NEWS_CONTENTS', 'affiliate_news_contents');
  27    define('FILENAME_AFFILIATE_CLICKS', 'affiliate_clicks.php');
  28    define('FILENAME_AFFILIATE_CONTACT', 'affiliate_contact.php');
  29    define('FILENAME_AFFILIATE_HELP_1', 'affiliate_help1.php');
  30    define('FILENAME_AFFILIATE_HELP_2', 'affiliate_help2.php');
  31    define('FILENAME_AFFILIATE_HELP_3', 'affiliate_help3.php');
  32    define('FILENAME_AFFILIATE_HELP_4', 'affiliate_help4.php');
  33    define('FILENAME_AFFILIATE_HELP_5', 'affiliate_help5.php');
  34    define('FILENAME_AFFILIATE_HELP_6', 'affiliate_help6.php');
  35    define('FILENAME_AFFILIATE_HELP_7', 'affiliate_help7.php');
  36    define('FILENAME_AFFILIATE_HELP_8', 'affiliate_help8.php');
  37    define('FILENAME_AFFILIATE_INVOICE', 'affiliate_invoice.php');
  38    define('FILENAME_AFFILIATE_NEWS', 'affiliate_news.php');
  39    define('FILENAME_AFFILIATE_NEWSLETTERS', 'affiliate_newsletters.php');
  40    define('FILENAME_AFFILIATE_PAYMENT', 'affiliate_payment.php');
  41    define('FILENAME_AFFILIATE_POPUP_IMAGE', 'affiliate_popup_image.php');
  42    define('FILENAME_AFFILIATE_SALES', 'affiliate_sales.php');
  43    define('FILENAME_AFFILIATE_STATISTICS', 'affiliate_statistics.php');
  44    define('FILENAME_AFFILIATE_SUMMARY', 'affiliate_summary.php');
  45    define('FILENAME_AFFILIATE_RESET', 'affiliate_reset.php');
  46    define('FILENAME_AFFILIATE_VALIDPRODUCTS', 'affiliate_validproducts.php');
  47    define('FILENAME_AFFILIATE_VALIDCATS', 'affiliate_validcats.php');
  48    define('FILENAME_CATALOG_AFFILIATE_PAYMENT_INFO','affiliate_payment.php');
  49    define('FILENAME_CATALOG_PRODUCT_INFO', 'product_info.php');
  50  
  51    define('TABLE_AFFILIATE', 'affiliate_affiliate');
  52    define('TABLE_AFFILIATE_NEWS', 'affiliate_news');
  53    define('TABLE_AFFILIATE_NEWSLETTERS', 'affiliate_newsletters');
  54    define('TABLE_AFFILIATE_BANNERS', 'affiliate_banners');
  55    define('TABLE_AFFILIATE_BANNERS_HISTORY', 'affiliate_banners_history');
  56    define('TABLE_AFFILIATE_CLICKTHROUGHS', 'affiliate_clickthroughs');
  57    define('TABLE_AFFILIATE_PAYMENT', 'affiliate_payment');
  58    define('TABLE_AFFILIATE_PAYMENT_STATUS', 'affiliate_payment_status');
  59    define('TABLE_AFFILIATE_PAYMENT_STATUS_HISTORY', 'affiliate_payment_status_history');
  60    define('TABLE_AFFILIATE_SALES', 'affiliate_sales');
  61    define('TABLE_PRODUCTS_XSELL', 'products_xsell'); //X-Sell

  62  
  63  // include the language translations

  64    require(DIR_WS_LANGUAGES . 'affiliate_' . $language . '.php');
  65  
  66  // If an order is deleted delete the sale too (optional)

  67    if ($HTTP_GET_VARS['action'] == 'deleteconfirm' && basename($HTTP_SERVER_VARS['SCRIPT_FILENAME']) == FILENAME_ORDERS && AFFILIATE_DELETE_ORDERS == 'true') {
  68      $affiliate_oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
  69      tep_db_query("delete from " . TABLE_AFFILIATE_SALES . " where affiliate_orders_id = '" . tep_db_input($affiliate_oID) . "' and affiliate_billing_status != 1");
  70    }
  71  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7