From a1ed88dc387c09d1f749d7fa35dd1a004b7f9f7f Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 17 Jan 2004 16:39:40 +0000 Subject: [PATCH] Clear the access log after all users are created - this gets rid of a really annoying FAQ. --- setup/setup_demo.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/setup_demo.php b/setup/setup_demo.php index 5d4436c9fb..3abe421402 100644 --- a/setup/setup_demo.php +++ b/setup/setup_demo.php @@ -148,6 +148,9 @@ $accountid = $GLOBALS['phpgw_setup']->add_account($username,$fname,$lname,$passwd,'Admins',True); $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(); Header('Location: index.php');