mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
*** empty log message ***
This commit is contained in:
parent
1edd9f4331
commit
80edef2307
@ -165,7 +165,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ui = createobject('admin.uiaccounts');
|
$ui = createobject('admin.uiaccounts');
|
||||||
$ui->list_users();
|
$ui->list_users();
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,8 +56,15 @@
|
|||||||
|
|
||||||
function add($data)
|
function add($data)
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO phpgw_applications (app_name,app_title,app_enabled,app_order) VALUES('"
|
/* Yes, the sequence should work, but after a mass import in setup (new install)
|
||||||
. addslashes($data['n_app_name']) . "','" . addslashes($data['n_app_title']) . "','"
|
it does not work on pg
|
||||||
|
*/
|
||||||
|
$sql = "SELECT MAX(app_id) from phpgw_applications";
|
||||||
|
$this->db->query($sql,__LINE__,__FILE__);
|
||||||
|
$this->db->next_record();
|
||||||
|
$app_id = $this->db->f(0) + 1;
|
||||||
|
$sql = "INSERT INTO phpgw_applications (app_id,app_name,app_title,app_enabled,app_order) VALUES("
|
||||||
|
. $app_id . ",'" . addslashes($data['n_app_name']) . "','" . addslashes($data['n_app_title']) . "','"
|
||||||
. $data['n_app_status'] . "','" . $data['app_order'] . "')";
|
. $data['n_app_status'] . "','" . $data['app_order'] . "')";
|
||||||
|
|
||||||
$this->db->query($sql,__LINE__,__FILE__);
|
$this->db->query($sql,__LINE__,__FILE__);
|
||||||
@ -76,7 +83,7 @@
|
|||||||
|
|
||||||
function exists($app_name)
|
function exists($app_name)
|
||||||
{
|
{
|
||||||
$this->db->query("select count(*) from phpgw_applications where app_name='" . addslashes($app_name) . "'",__LINE__,__FILE__);
|
$this->db->query("SELECT COUNT(app_name) FROM phpgw_applications WHERE app_name='" . addslashes($app_name) . "'",__LINE__,__FILE__);
|
||||||
$this->db->next_record();
|
$this->db->next_record();
|
||||||
|
|
||||||
if ($this->db->f(0) != 0)
|
if ($this->db->f(0) != 0)
|
||||||
@ -88,7 +95,7 @@
|
|||||||
|
|
||||||
function app_order()
|
function app_order()
|
||||||
{
|
{
|
||||||
$this->db->query("SELECT (max(app_order)+1) as max from phpgw_applications");
|
$this->db->query("SELECT (MAX(app_order)+1) AS max FROM phpgw_applications");
|
||||||
$this->db->next_record();
|
$this->db->next_record();
|
||||||
return $this->db->f('max');
|
return $this->db->f('max');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user