DIR : /home/kozerus/public_html/zc/adam/includes/init_includes/init_templates.php
/home/kozerus/public_html/zc/adam/includes/init_includes
<?php
/**
* @copyright Copyright 2003-2020 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Scott C Wilson 2020 Apr 12 Modified in v1.5.7 $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// Set theme related directories
if (!isset($template_dir) || $template_dir == '') {
$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");
$template_dir = $template_query->fields['template_dir'];
}
define('DIR_WS_TEMPLATE', DIR_WS_TEMPLATES . $template_dir . '/');
// define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_CATALOG_TEMPLATE . $template_dir . '/images/');
define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_CATALOG_TEMPLATE . 'template_default' . '/images/');
define('DIR_WS_TEMPLATE_ICONS', DIR_WS_TEMPLATE_IMAGES . 'icons/');
require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'template_func.php');
$template = new template_func(DIR_WS_TEMPLATE);
/**
* send the content charset "now" so that all content is impacted by it - this is important for non-english sites
*/
header("Content-Type: text/html; charset=" . CHARSET);
/**
* set HTML <title> tag for admin pages
*/
$pagename = '';
if ($pagename == '') {
$pagename = preg_replace('/\.php$/', '', basename($PHP_SELF));
}
if ($pagename == 'configuration') {
$pagename .= " ". zen_get_configuration_group_value($_GET['gID']);
}
$pagename = str_replace('_', ' ', $pagename);
if ($pagename == 'index') $pagename = HEADER_TITLE_TOP; // Admin home page/dashboard
$pagename = ucwords($pagename);
if ($pagename == '') {
$pagename = STORE_NAME;
}
$title = TEXT_ADMIN_TAB_PREFIX . ' ' . $pagename;
define('TITLE', $title);
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer