iTx Technologies offre gratuitement
cet espace pour OsCommerce !

title

Body

[fermer]

/ -> account.php (source)

   1  <?php
   2  /*
   3    $Id$
   4  
   5    osCommerce, Open Source E-Commerce Solutions
   6    http://www.oscommerce.com
   7  
   8    Copyright (c) 2006 osCommerce
   9  
  10    This program is free software; you can redistribute it and/or modify
  11    it under the terms of the GNU General Public License v2 (1991)
  12    as published by the Free Software Foundation.
  13  */
  14  
  15    $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  16  
  17    require ('includes/application_top.php');
  18  
  19    if ($osC_Customer->isLoggedOn() === false) {
  20      if (!empty($_GET)) {
  21        $first_array = array_slice($_GET, 0, 1);
  22      }
  23  
  24      if (empty($_GET) || (!empty($_GET) && !in_array(osc_sanitize_string(basename(key($first_array))), array('login', 'create', 'password_forgotten')))) {
  25        $osC_NavigationHistory->setSnapshot();
  26  
  27        osc_redirect(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
  28      }
  29    }
  30  
  31    $osC_Language->load('account');
  32  
  33    if ($osC_Services->isStarted('breadcrumb')) {
  34      $osC_Breadcrumb->add($osC_Language->get('breadcrumb_my_account'), osc_href_link(FILENAME_ACCOUNT, null, 'SSL'));
  35    }
  36  
  37    $osC_Template = osC_Template::setup('account');
  38  
  39    require('templates/' . $osC_Template->getCode() . '.php');
  40  
  41    require ('includes/application_bottom.php');
  42  ?>


Generé en: Wed Mar 3 09:51:02 2010 | Cross-referenced par PHPXref 0.7