I broke a few things durring last commit, tring it again ...

This commit is contained in:
jengo 2001-06-03 18:20:05 +00:00
parent 37bd9763fa
commit cf9686e512
4 changed files with 21 additions and 13 deletions

View File

@ -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()

View File

@ -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();

View File

@ -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()

View File

@ -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()