blocks/login_reg_history.php
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program 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.
*/
/**
* userlog module
*
* @copyright XOOPS Project (https://xoops.org)
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package userlog blocks
* @since 1.11
* @author irmtfan (irmtfan@yahoo.com)
* @author XOOPS Project <www.xoops.org> <www.xoops.ir>
*/
defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
require_once __DIR__ . '/../include/common.php';
if (defined('USERLOG_BLOCK_LOGIN_REG_HISTORY_DEFINED')) {
return;
}
define('USERLOG_BLOCK_LOGIN_REG_HISTORY_DEFINED', true);
xoops_loadLanguage('admin', USERLOG_DIRNAME);
// options[0] - number of items to show in block. the default is 10
// options[1] - login or register or both radio select
// options[2] - failed or successful or both radio select
// options[3] - inactive or active or both
// options[4] - never login before or login before or both
// options[5] - Order - DESC, ASC default: DESC
/**
* @param $options
*
* @return array
*/
function userlog_login_reg_history_show($options)
{
$queryObj = UserlogQuery::getInstance();
return $queryObj->loginregHistoryShow($options);
}
/**
* @param $options
*
* @return string
*/
function userlog_login_reg_history_edit($options)
{
$queryObj = UserlogQuery::getInstance();
return $queryObj->loginregHistoryForm($options);
}