| 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_jlogonalert/models/ |
Upload File : |
<?php
/*
* @package Joomla 1.5
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component jLogonAlert, version 1.3, 2010-05-11
* @copyright Copyright (C) Carlo Di Giuseppe - www.applejuice.it
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined ('_JEXEC') or die ('Restricted Access');
jimport ('joomla.application.component.model');
class LogonalertModelAll extends JModel
{
var $data = null;
var $_pagination = null;
var $_total = null;
function getData()
{
$pagination =& $this->getPagination();
if (empty($this->data))
{
$query = $this->buildSearch();
$this->data = $this->_getList($query,$pagination->limitstart,$pagination->limit);
}
return $this->data;
}
function buildSearch()
{
return "SELECT a.name,a.username,a.email,b.* FROM #__users a, #__ajlaemails b where a.id = b.id_utente";
}
function getTotal()
{
if (!$this->_total)
{
$query = $this->buildSearch();
$this->_total = $this->_getListCount($query);
}
return $this->_total;
}
function &getPagination()
{
if (!$this->_pagination)
{
jimport('joomla.html.pagination');
global $mainframe;
$this->_pagination = new JPagination($this->getTotal(),JRequest::getVar('limitstart',0),JRequest::getVar('limit',$mainframe->getCfg('list_limit')));
}
return $this->_pagination;
}
}
?>