[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * logoff header_php.php 4 * 5 * @package page 6 * @copyright Copyright 2003-2006 Zen Cart Development Team 7 * @copyright Portions Copyright 2003 osCommerce 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: header_php.php 5403 2006-12-27 00:38:58Z drbyte $ 10 */ 11 12 // This should be first line of the script: 13 $zco_notifier->notify('NOTIFY_HEADER_START_LOGOFF'); 14 15 require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); 16 $breadcrumb->add(NAVBAR_TITLE); 17 18 /** 19 * Check what language should be used on the logoff screen 20 */ 21 $logoff_lang = ($_SESSION['languages_code'] != DEFAULT_LANGUAGE) ? 'language=' . $_SESSION['languages_code'] : ''; 22 23 /** 24 * Check if there is still a customer_id 25 * If so, kill the session, and redirect back to the logoff page 26 * This will cause the header logic to see that the customer_id is gone, and thus not display another logoff link 27 */ 28 if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) { 29 zen_session_destroy(); 30 zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang)); 31 } 32 33 // This should be last line of the script: 34 $zco_notifier->notify('NOTIFY_HEADER_END_LOGOFF'); 35 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |