[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * Customer Authorization 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 2974 2006-02-05 04:53:19Z birdbrain $ 10 */ 11 12 13 $sql = "SELECT customers_authorization 14 FROM " . TABLE_CUSTOMERS . " 15 WHERE customers_id = :customersID"; 16 17 $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); 18 $check_customer = $db->Execute($sql); 19 20 $_SESSION['customers_authorization'] = $check_customer->fields['customers_authorization']; 21 22 if ($_SESSION['customers_authorization'] != '1') { 23 zen_redirect(zen_href_link(FILENAME_DEFAULT)); 24 } 25 26 require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); 27 $breadcrumb->add(NAVBAR_TITLE); 28 29 if (CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true') $flag_disable_right = true; 30 if (CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true') $flag_disable_left = true; 31 if (CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true') $flag_disable_footer = true; 32 if (CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true') $flag_disable_header = true; 33 34 ?>
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 |
![]() |