forked from extern/egroupware
one more before I passout. I have yanked conversion of id, so now you need to pass account_id only
This commit is contained in:
parent
f6430b723b
commit
7483d5a8f9
@ -34,9 +34,7 @@
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
$this->db = $phpgw->db;
|
||||
if ($account_id == ""){ $account_id = $phpgw_info["user"]["account_id"]; }
|
||||
elseif (gettype($account_id) == "string") { $account_id = $this->name2id($account_id); }
|
||||
$this->account_id = $account_id;
|
||||
if ($account_id == False){ $this->account_id = $account_id; }
|
||||
}
|
||||
|
||||
function read()
|
||||
|
@ -38,10 +38,7 @@
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
$this->db = $phpgw->db;
|
||||
// if ($account_id == False) { $this->account_id = $phpgw_info["user"]["account_id"];
|
||||
// }elseif (gettype($account_id) == "string") { $account_id = $phpgw->accounts->name2id($account_id); }
|
||||
|
||||
$this->account_id = $account_id;
|
||||
if ($account_id != False){ $this->account_id = $account_id; }
|
||||
}
|
||||
|
||||
/**************************************************************************\
|
||||
|
@ -31,13 +31,11 @@
|
||||
/**************************************************************************\
|
||||
* Standard constructor for setting $this->account_id *
|
||||
\**************************************************************************/
|
||||
function applications($account_id = "")
|
||||
function applications($account_id = False)
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
$this->db = $phpgw->db;
|
||||
if ($account_id == ""){ $account_id = $phpgw_info["user"]["account_id"]; }
|
||||
elseif (gettype($account_id) == "string") { $account_id = $phpgw->accounts->name2id($account_id); }
|
||||
$this->account_id = $account_id;
|
||||
if ($account_id == False){ $this->account_id = $account_id; }
|
||||
}
|
||||
|
||||
/**************************************************************************\
|
||||
|
@ -108,7 +108,7 @@
|
||||
if ($phpgw_info["flags"]["currentapp"] == "login") {
|
||||
if ($login != ""){
|
||||
$login_array = explode("@",$login);
|
||||
$login_id = $phpgw->accounts->name2id($login_array[0]);
|
||||
$login_id = $this->accounts->name2id($login_array[0]);
|
||||
$this->accounts->accounts($login_id);
|
||||
$this->preferences->preferences($login_id);
|
||||
}
|
||||
|
@ -39,9 +39,7 @@
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
$this->db = $phpgw->db;
|
||||
// if ($account_id == ""){ $account_id = $phpgw_info["user"]["account_id"]; }
|
||||
// elseif (gettype($account_id) == "string") { $account_id = $phpgw->accounts->name2id($account_id); }
|
||||
$this->account_id = $account_id;
|
||||
if ($account_id != False){ $this->account_id = $account_id; }
|
||||
}
|
||||
|
||||
/**************************************************************************\
|
||||
|
@ -105,9 +105,7 @@
|
||||
}
|
||||
|
||||
$this->update_dla();
|
||||
echo "account_lid: ".$this->account_lid."<br>";
|
||||
$this->account_id = $phpgw->accounts->name2id($this->account_lid);
|
||||
echo "account_id: ".$this->account_id."<br>";
|
||||
$phpgw->acl->acl($this->account_id);
|
||||
$phpgw->accounts->accounts($this->account_id);
|
||||
$phpgw->preferences->preferences($this->account_id);
|
||||
@ -137,9 +135,6 @@ echo "account_id: ".$this->account_id."<br>";
|
||||
function read_repositories()
|
||||
{
|
||||
global $phpgw_info, $phpgw;
|
||||
// if (gettype($account_id) == "string") { $account_id = $phpgw->accounts->name2id($account_id); }
|
||||
// $this->account_id = $account_id;
|
||||
echo "step 1<br>";
|
||||
$phpgw->acl->acl($this->account_id);
|
||||
$phpgw->accounts->accounts($this->account_id);
|
||||
$phpgw->preferences->preferences($this->account_id);
|
||||
|
Loading…
Reference in New Issue
Block a user