| Current Path : /home/giteleslfp/www/administrator/components/com_templateck/interfaces/ |
| Current File : /home/giteleslfp/www/administrator/components/com_templateck/interfaces/ajaxloadtheme.php |
<?php
/**
* @name Template Creator CK
* @copyright Copyright (C) since 2011. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr
*/
// No direct access to this file
defined('TCK_LOADED') or die('Restricted access');
$path = TEMPLATECREATORCK_PATH . '/themes/';
$themename = $this->input->get('themename');
$theme = file_get_contents($path . $themename . '.hck');
// make replacements to remove the local specific paths
$theme = str_replace("|URIBASE|", TEMPLATECREATORCK_URI_ROOT . "/", $theme);
$theme = str_replace("|TCK_COMPONENT|", "components/com_templateck", $theme);
$theme = str_replace("|TCK_ADMIN_COMPONENT|", "administrator/components/com_templateck", $theme);
echo $theme;