| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/moke/modules/mod_sigplus/fields/ |
Upload File : |
<?php
/**
* @file
* @brief sigplus Image Gallery Plus save and restore settings control
* @author Levente Hunyadi
* @version 1.4.2
* @remarks Copyright (C) 2009-2011 Levente Hunyadi
* @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
* @see http://hunyadi.info.hu/projects/sigplus
*/
/*
* sigplus Image Gallery Plus plug-in for Joomla
* Copyright 2009-2011 Levente Hunyadi
*
* sigplus is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sigplus is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();
jimport('joomla.form.formfield');
/**
* Renders a control for saving and restoring parameters.
* This class implements a user-defined control in the administration backend.
*/
class JFormFieldBackup extends JFormField {
protected $type = 'Backup';
public function getInput() {
$class = ( $this->element->getAttribute('class') ? $this->element->getAttribute('class') : 'inputbox' );
// add script declaration to header and control to page
if (file_exists(JPATH_ROOT.DS.'plugins'.DS.'content'.DS.'sigplus'.DS.'fields'.DS.'backup.js')) {
// sigplus plug-in is installed, use backup.js found in plug-in folder
$document =& JFactory::getDocument();
$document->addScript(JURI::root(true).'/plugins/content/sigplus/fields/backup.js');
return
'<button type="button" id="extension-settings-backup">'.JText::_('SIGPLUS_SETTINGS_BACKUP').'</button>'.
'<button type="button" id="extension-settings-restore">'.JText::_('SIGPLUS_SETTINGS_RESTORE').'</button>'.
'<br /><textarea id="extension-settings-list" rows="10" cols="40"></textarea>';
} else {
// sigplus plug-in is not installed, service not available
return '';
}
}
}