Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

108
 
146
 
146
 
account.php
_> 11 <?php
  22 /*
<> 3 -  $Id: account.php 108 2005-03-29 17:53:36Z hpdl $
   3+  $Id: account.php 146 2005-07-31 15:09:51Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
1313   require('includes/application_top.php');
  1414 
  1515   if ($osC_Customer->isLoggedOn() == false) {
<> 16 -    $navigation->set_snapshot();
   16+    if (empty($_GET) || (!empty($_GET) && !in_array(tep_sanitize_string(basename(key(array_slice($_GET, 0, 1)))), array('login', 'create')))) {
   17+      $navigation->set_snapshot();
1718 
<> 18 -    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
   19+      tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
   20+    }
1921   }
  2022 
  2123   require(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/' . FILENAME_ACCOUNT);
  2224 
<>  25+  $osC_Template->setPageTitle(HEADING_TITLE_ACCOUNT);
   26+  $osC_Template->setPageContentsFilename('account.php');
   27+
2328   if ($osC_Services->isStarted('breadcrumb')) {
  2429     $breadcrumb->add(NAVBAR_TITLE_MY_ACCOUNT, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
  2530   }
  2631 
<> 27 -  $page_contents = 'account.php';
  28 -
2932   if (empty($_GET) === false) {
  3033     $_account_module = tep_sanitize_string(basename(key(array_slice($_GET, 0, 1))));
  3134 
     
 !
3538       $_account_module_name = 'osC_Account_' . ucfirst($_account_module);
  3639       $osC_Account_Module = new $_account_module_name();
  3740 
<> 38 -      $page_contents = $osC_Account_Module->getPageContentsFile();
   41+      $osC_Template->setPageTitle($osC_Account_Module->getPageTitle());
   42+      $osC_Template->setPageContentsFilename($osC_Account_Module->getPageContentsFilename());
   43+
   44+      unset($osC_Account_Module);
3945     }
  4046   }
  4147 
<> 42 -  require('templates/default.php');
   48+  require('templates/' . $osC_Template->getTemplate() . '.php');
<_ 4349 
  4450   require('includes/application_bottom.php');
  4551 ?>