mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
I broke a few things durring last commit, tring it again ...
This commit is contained in:
parent
37bd9763fa
commit
cf9686e512
@ -26,18 +26,24 @@
|
||||
|
||||
class auth
|
||||
{
|
||||
var $previous_login = -1;
|
||||
|
||||
function authenticate($username, $passwd)
|
||||
{
|
||||
global $phpgw_info, $phpgw, $PHP_AUTH_USER;
|
||||
|
||||
if (isset($PHP_AUTH_USER)) {
|
||||
if (isset($PHP_AUTH_USER))
|
||||
{
|
||||
return True;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return False;
|
||||
}
|
||||
}
|
||||
|
||||
function change_password($old_passwd, $new_passwd) {
|
||||
function change_password($old_passwd, $new_passwd)
|
||||
{
|
||||
global $phpgw_info, $phpgw;
|
||||
return False;
|
||||
}
|
||||
@ -47,7 +53,9 @@
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$account_id = get_account_id($account_id);
|
||||
$phpgw->db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$phpgw->db->next_record();
|
||||
$this->previous_login = $phpgw->db->f('account_lastlogin');
|
||||
|
||||
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
|
||||
. "$ip', account_lastlogin='" . time()
|
||||
|
@ -90,9 +90,9 @@
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$db->next_record();
|
||||
$this->previous_login = $db->f('account_lastlogin');
|
||||
$phpgw->db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$phpgw->db->next_record();
|
||||
$this->previous_login = $phpgw->db->f('account_lastlogin');
|
||||
|
||||
$now = time();
|
||||
|
||||
|
@ -75,9 +75,9 @@
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$db->next_record();
|
||||
$this->previous_login = $db->f('account_lastlogin');
|
||||
$phpgw->db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$phpgw->db->next_record();
|
||||
$this->previous_login = $phpgw->db->f('account_lastlogin');
|
||||
|
||||
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
|
||||
. "$ip', account_lastlogin='" . time()
|
||||
|
@ -90,9 +90,9 @@
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$db->next_record();
|
||||
$this->previous_login = $db->f('account_lastlogin');
|
||||
$phpgw->db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
||||
$phpgw->db->next_record();
|
||||
$this->previous_login = $phpgw->db->f('account_lastlogin');
|
||||
|
||||
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
|
||||
. "$ip', account_lastlogin='" . time()
|
||||
|
Loading…
Reference in New Issue
Block a user