ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/init_includes/init_templates.php
Go to the documentation of this file.
00001 <?php
00009 if (!defined('IS_ADMIN_FLAG')) {
00010   die('Illegal Access');
00011 }
00012 // Set theme related directories
00013 if (!isset($template_dir) || $template_dir == '') {
00014   $template_query = $db->Execute("select template_dir from " . TABLE_TEMPLATE_SELECT . " where template_language in (" . (int)$_SESSION['languages_id'] . ', 0' . ") order by template_language DESC");
00015   $template_dir = $template_query->fields['template_dir'];
00016 }
00017   define('DIR_WS_TEMPLATE', DIR_WS_TEMPLATES . $template_dir . '/');
00018   //  define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_CATALOG_TEMPLATE . $template_dir . '/images/');
00019   define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_CATALOG_TEMPLATE . 'template_default' . '/images/');
00020   define('DIR_WS_TEMPLATE_ICONS', DIR_WS_TEMPLATE_IMAGES . 'icons/');
00021 
00022   require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'template_func.php');
00023   $template = new template_func(DIR_WS_TEMPLATE);
00024 
00028   header("Content-Type: text/html; charset=" . CHARSET);
00029 
 All Data Structures Namespaces Files Functions Variables Enumerations