| 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:/inetpub/wwwroot/icd/administrator/components/com_akeeba/views/config/ |
Upload File : |
<?php
/**
* @package AkeebaBackup
* @copyright Copyright (c)2006-2011 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
* @version $Id: view.html.php 409 2011-01-24 09:30:22Z nikosdion $
* @since 1.3
*/
// Protect from unauthorized access
defined('_JEXEC') or die('Restricted Access');
// Load framework base classes
jimport('joomla.application.component.view');
/**
* Akeeba Backup Configuration view class
*
*/
class AkeebaViewConfig extends JView
{
function display()
{
// Toolbar buttons
JToolBarHelper::title(JText::_('AKEEBA').':: <small>'.JText::_('CONFIGURATION').'</small>','akeeba');
JToolBarHelper::preferences('com_akeeba', '500', '660');
JToolBarHelper::spacer();
JToolBarHelper::apply();
JToolBarHelper::save();
JToolBarHelper::cancel();
JToolBarHelper::spacer();
// Add references to scripts and CSS
AkeebaHelperIncludes::includeMedia(false);
$media_folder = JURI::base().'../media/com_akeeba/';
// Get a JSON representation of GUI data
$json = AkeebaHelperEscape::escapeJS(AEUtilInihelper::getJsonGuiDefinition(),'"\\');
$this->assignRef( 'json', $json );
// Get profile ID
$profileid = AEPlatform::get_active_profile();
$this->assign('profileid', $profileid);
// Get profile name
akimport('models.profiles',true);
$model = new AkeebaModelProfiles();
$model->setId($profileid);
$profile_data = $model->getProfile();
$this->assign('profilename', $profile_data->description);
// Get the root URI for media files
$this->assign( 'mediadir', AkeebaHelperEscape::escapeJS($media_folder.'theme/') );
// Are the settings secured?
if( AEPlatform::get_platform_configuration_option('useencryption', -1) == 0 ) {
$this->assign('securesettings', -1);
} elseif( !AEUtilSecuresettings::supportsEncryption() ) {
$this->assign('securesettings', 0);
} else {
jimport('joomla.filesystem.file');
$filename = JPATH_COMPONENT_ADMINISTRATOR.'/akeeba/serverkey.php';
if(JFile::exists($filename)) {
$this->assign('securesettings', 1);
} else {
$this->assign('securesettings', 0);
}
}
// Add live help
AkeebaHelperIncludes::addHelp();
parent::display();
}
}