| 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 : /inetpub/wwwroot/icd/administrator/components/com_akeeba/views/dbef/ |
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 415 2011-01-26 15:15:41Z nikosdion $
* @since 1.3
*/
// Protect from unauthorized access
defined('_JEXEC') or die('Restricted Access');
// Load framework base classes
jimport('joomla.application.component.view');
/**
* MVC View for Database Table filters
*
*/
class AkeebaViewDbef extends JView
{
function display()
{
$task = JRequest::getCmd('task','normal');
// Add toolbar buttons
JToolBarHelper::title(JText::_('AKEEBA').': <small>'.JText::_('DBEF').'</small>','akeeba');
if(AKEEBA_JVERSION == '15') {
JToolBarHelper::back('Back', 'index.php?option='.JRequest::getCmd('option'));
} else {
JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option='.JRequest::getCmd('option'));
}
// Add custom submenus
JSubMenuHelper::addEntry(
JText::_('FILTERS_LABEL_NORMALVIEW'),
JURI::base().'index.php?option=com_akeeba&view='.JRequest::getCmd('view').'&task=normal',
($task == 'normal')
);
JSubMenuHelper::addEntry(
JText::_('FILTERS_LABEL_TABULARVIEW'),
JURI::base().'index.php?option=com_akeeba&view='.JRequest::getCmd('view').'&task=tabular',
($task == 'tabular')
);
// Add references to scripts and CSS
AkeebaHelperIncludes::includeMedia(false);
$media_folder = JURI::base().'../media/com_akeeba/';
// Get the root URI for media files
$this->assign( 'mediadir', AkeebaHelperEscape::escapeJS($media_folder.'theme/') );
// Get a JSON representation of the available roots
$model = $this->getModel();
$root_info = $model->get_roots();
$roots = array();
if(!empty($root_info))
{
// Loop all dir definitions
foreach($root_info as $def)
{
$roots[] = $def->value;
$options[] = JHTML::_('select.option', $def->value, $def->text );
}
}
$site_root = '[SITEDB]';
$attribs = 'onchange="akeeba_active_root_changed();"';
$this->assign('root_select', JHTML::_('select.genericlist', $options, 'root', $attribs, 'value', 'text', $site_root, 'active_root') );
$this->assign('roots', $roots);
switch($task)
{
case 'normal':
default:
$tpl = null;
// Get a JSON representation of the database data
$model = $this->getModel();
$json = json_encode($model->make_listing($site_root));
$this->assignRef( 'json', $json );
break;
case 'tabular':
$tpl = 'tab';
// Get a JSON representation of the tabular filter data
$model = $this->getModel();
$json = json_encode( $model->get_filters($site_root) );
$this->assignRef( 'json', $json );
break;
}
// Add live help
AkeebaHelperIncludes::addHelp();
// 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);
parent::display($tpl);
}
}