Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

207
 
387
 
387
 
account.php
_> 11 <?php
  22 /*
<> 3 -  $Id: account.php 207 2005-09-25 23:29:31Z hpdl $
   3+  $Id: account.php 387 2006-01-18 16:49:58Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
3939     }
  4040 
  4141     function createEntry($data) {
<> 42 -      global $osC_Database, $osC_Session, $osC_Customer, $osC_NavigationHistory;
   42+      global $osC_Database, $osC_Session, $osC_Language, $osC_Customer, $osC_NavigationHistory;
4343 
  4444       $osC_Database->startTransaction();
  4545 
     
 !
8383 // build the message content
  8484           if ((ACCOUNT_GENDER > -1) && isset($data['gender'])) {
  8585              if ($data['gender'] == 'm') {
<> 86 -               $email_text = sprintf(EMAIL_GREET_MR, $osC_Customer->getLastName());
   86+               $email_text = sprintf($osC_Language->get('email_addressing_gender_male'), $osC_Customer->getLastName()) . "\n\n";
8787              } else {
<> 88 -               $email_text = sprintf(EMAIL_GREET_MS, $osC_Customer->getLastName());
   88+               $email_text = sprintf($osC_Language->get('email_addressing_gender_female'), $osC_Customer->getLastName()) . "\n\n";
8989              }
  9090           } else {
<> 91 -            $email_text = sprintf(EMAIL_GREET_NONE, $osC_Customer->getName());
   91+            $email_text = sprintf($osC_Language->get('email_addressing_gender_unknown'), $osC_Customer->getName()) . "\n\n";
9292           }
  9393 
<> 94 -          $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
  95 -          tep_mail($osC_Customer->getName(), $osC_Customer->getEmailAddress(), EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
   94+          $email_text .= sprintf($osC_Language->get('email_create_account_body'), STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
9695 
<>  96+          tep_mail($osC_Customer->getName(), $osC_Customer->getEmailAddress(), sprintf($osC_Language->get('email_create_account_subject'), STORE_NAME), $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
   97+
<_ 9798           return true;
  9899         } else {
  99100           $osC_Database->rollbackTransaction();