| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 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/components/com_akeeba/models/ |
Upload File : |
<?php
/**
* @package AkeebaBackup
* @copyright Copyright (c)2006-2011 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
* @version $Id: light.php 409 2011-01-24 09:30:22Z nikosdion $
* @since 2.1
*/
// Protect from unauthorized access
defined('_JEXEC') or die('Restricted Access');
// Load framework base classes
jimport('joomla.application.component.model');
class AkeebaModelLight extends JModel
{
/**
* Returns a list of all configured profiles
* @return unknown_type
*/
function &getProfiles()
{
$db =& $this->getDBO();
$query = "SELECT ".$db->nameQuote('id').", ".$db->nameQuote('description').
" FROM ".$db->nameQuote('#__ak_profiles');
$db->setQuery($query);
$rawList = $db->loadAssocList();
$options = array();
if(!is_array($rawList)) return $options;
foreach($rawList as $row)
{
$options[] = JHTML::_('select.option', $row['id'], $row['description']);
}
return $options;
}
}