[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/ -> affiliate_contact.php (source)

   1  <?php
   2  /*

   3  $Id: affiliate_contact.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  // Most of this file is changed or moved to BTS - Basic Template System - format.

  18  // For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).

  19  //       catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).

  20  // (Sub 'fallback' with your current template to see if there is a template specific file.)

  21  
  22    require ('includes/application_top.php');
  23  
  24    if (!tep_session_is_registered('affiliate_id')) {
  25      $navigation->set_snapshot();
  26      tep_redirect(tep_href_link(FILENAME_AFFILIATE, '', 'SSL'));
  27    }
  28  
  29    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_AFFILIATE_CONTACT);
  30  
  31    $error = false;
  32    if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
  33      if (tep_validate_email(trim($HTTP_POST_VARS['email']))) {
  34        tep_mail(STORE_OWNER, AFFILIATE_EMAIL_ADDRESS, EMAIL_SUBJECT, $HTTP_POST_VARS['enquiry'], $HTTP_POST_VARS['name'], $HTTP_POST_VARS['email']);
  35        tep_redirect(tep_href_link(FILENAME_AFFILIATE_CONTACT, 'action=success'));
  36      } else {
  37        $error = true;
  38      }
  39    }
  40  
  41    $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_AFFILIATE_CONTACT));
  42  
  43    $affiliate_values = tep_db_query("select * from " . TABLE_AFFILIATE . " where affiliate_id = '" . $affiliate_id . "'");
  44    $affiliate = tep_db_fetch_array($affiliate_values);
  45  
  46    $content = affiliate_contact; 
  47  
  48    include (bts_select('main', $content_template)); // BTSv1.5

  49  
  50    require (DIR_WS_INCLUDES . 'application_bottom.php'); 
  51  ?>


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