mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Clear the access log after all users are created - this gets rid of a really annoying FAQ.
This commit is contained in:
parent
fbe9b02400
commit
a1ed88dc38
@ -148,6 +148,9 @@
|
|||||||
$accountid = $GLOBALS['phpgw_setup']->add_account($username,$fname,$lname,$passwd,'Admins',True);
|
$accountid = $GLOBALS['phpgw_setup']->add_account($username,$fname,$lname,$passwd,'Admins',True);
|
||||||
$GLOBALS['phpgw_setup']->add_acl('phpgw_group',$admingroupid,$accountid);
|
$GLOBALS['phpgw_setup']->add_acl('phpgw_group',$admingroupid,$accountid);
|
||||||
|
|
||||||
|
/* Clear the access log, since these are all new users anyway */
|
||||||
|
$GLOBALS['phpgw_setup']->db->query('DELETE FROM phpgw_access_log');
|
||||||
|
|
||||||
$GLOBALS['phpgw_setup']->db->transaction_commit();
|
$GLOBALS['phpgw_setup']->db->transaction_commit();
|
||||||
|
|
||||||
Header('Location: index.php');
|
Header('Location: index.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user