[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * @package admin 4 * @copyright Copyright 2003-2006 Zen Cart Development Team 5 * @copyright Portions Copyright 2003 osCommerce 6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 7 * @version $Id: init_templates.php 3739 2006-06-09 21:09:35Z drbyte $ 8 */ 9 if (!defined('IS_ADMIN_FLAG')) { 10 die('Illegal Access'); 11 } 12 // Set theme related directories 13 $template_query = $db->Execute("select template_dir 14 from " . TABLE_TEMPLATE_SELECT . 15 " where template_language = '0'"); 16 17 $template_dir = $template_query->fields['template_dir']; 18 $template_query = $db->Execute("select template_dir 19 from " . TABLE_TEMPLATE_SELECT . 20 " where template_language = '" . $_SESSION['languages_id'] . "'"); 21 22 if ($template_query->RecordCount() > 0) { 23 $template_dir = $template_query->fields['template_dir']; 24 } 25 26 // define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_CATALOG_TEMPLATE . $template_dir . '/images/'); 27 define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_CATALOG_TEMPLATE . 'template_default' . '/images/'); 28 define('DIR_WS_TEMPLATE_ICONS', DIR_WS_TEMPLATE_IMAGES . 'icons/'); 29 30 require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'template_func.php'); 31 $template = new template_func(DIR_WS_TEMPLATE); 32 33 /** 34 * send the content charset "now" so that all content is impacted by it - this is important for non-english sites 35 */ 36 header("Content-Type: text/html; charset=" . CHARSET); 37 38 ?>
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 |
![]() |