Clear the access log after all users are created - this gets rid of a really annoying FAQ.

This commit is contained in:
Miles Lott 2004-01-17 16:39:40 +00:00
parent fbe9b02400
commit a1ed88dc38

View File

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