File manager - Edit - /home/jardides/www/Jardi-design/administrator/components/com_templateck/controllers/templateinfos.php
Back
<?php /** * @name Template Creator CK 3 * @package com_templateck * @copyright Copyright (C) 2013. 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 defined('_JEXEC') or die; jimport('joomla.application.component.controllerform'); /** * Template controller class. */ class TemplateckControllerTemplateinfos extends JControllerForm { function __construct() { $this->view_list = 'templates'; parent::__construct(); } /** * copy an existing template * @return void */ function copy() { $model = $this->getModel('templateinfos'); $input = new JInput(); $input = $input->get('cid', '', 'array'); $this->input->set('id', (int) $input[0]); if (!$model->copy()) { $msg = JText::_('CK_TEMPLATE_COPY_ERROR'); $type = 'error'; } else { $msg = JText::_('CK_TEMPLATE_COPIED'); $type = 'message'; } $this->setRedirect('index.php?option=com_templateck', $msg, $type); } /** * display input form to select a file * @return void */ function installGabarit() { $link = 'index.php?option=com_templateck&view=templateinfos&layout=install'; $this->setRedirect($link); } /** * import a theme from a zip file * @return void */ function importtck() { $model = $this->getModel('templateinfos'); if (!$model->installGabarit()) { $msg = JText::_('CK_INSTALL_GABARIT_ERROR'); $link = 'index.php?option=com_templateck&view=templateinfos&layout=install'; $type = 'error'; } else { $msg = JText::_('CK_GABARIT_INSTALLED'); $link = 'index.php?option=com_templateck&view=templates'; $type = 'message'; } $this->setRedirect($link, $msg, $type); } /** * display input form to select a file * @return void */ function exportGabarit() { $this->input->set('view', 'templateinfos'); $this->input->set('layout', 'export'); $input = new JInput(); $input = $input->get('cid', '', 'array'); $this->input->set('id', (int) $input[0]); parent::display(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings