File manager - Edit - /home/jardides/www/Jardi-design/old/administrator/components/com_templateck/views/template/tmpl/edit_restore.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 to this file defined('_JEXEC') or die('Restricted access'); ?> <div id="restoreModalck" style="display: none;"> <h3><?php echo JText::_('CK_RESTORE') ?></h3> <div class=""> <?php if ($this->item->id) { $path = JPATH_ROOT . '/administrator/components/com_templateck/backup/' . $this->item->id . '_bak'; if (JFolder::exists($path)) { $files = JFolder::files($path, '.tck3', false, false); if (count($files)) { natsort($files); $i = 0; foreach ($files as $file) { if (stristr($file, 'locked_')) { $backupdate = str_replace('locked_' . $this->item->id . '_', '', JFile::stripExt($file)); $isLocked = true; } else if (stristr($file, 'backup_' . $this->item->id)) { $backupdate = str_replace('backup_' . $this->item->id . '_', '', JFile::stripExt($file)); $isLocked = false; } else { continue; } $date = DateTime::createFromFormat('d-m-Y-G-i-s', $backupdate); $formattedDate = $date->format('d-M-Y H:i:s'); $lockedIcon = $isLocked ? '<span class="fa fa-lock"></span>' : '<span class="fa fa-unlock"></span>'; echo '<div class="restoreline restoreline' . $i . ' clearfix"> <div> <span class="label label-info">' . $formattedDate . '</span> </div> <div> <a class="btn" href="javascript:void(0)" onclick="ckDoRestoration(' . $this->item->id . ', \'' . $backupdate . '\', ' . $i . ')"> <span class="fa fa-reply"> </span>' . JText::_('CK_DO_RESTORATION') . ' </a> <span class="processing" style="width:16px;margin:0 3px;display:inline-block;"> </span> </div> </div>'; $i++; } } else { echo '<div class="alert">' . JText::_('CK_NO_RESTORE_FILE_FOUND') . '</div>'; } } else { echo '<div class="alert">' . JText::_('CK_NO_RESTORE_FILE_FOUND') . '</div>'; } } ?> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings