[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: setup setup_demo.php,1.24.2.1,1.24.2.2
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: setup setup_demo.php,1.24.2.1,1.24.2.2 |
Date: |
Sun, 21 Apr 2002 13:32:23 -0400 |
Update of /cvsroot/phpgroupware/setup
In directory subversions:/tmp/cvs-serv15656/setup
Modified Files:
Tag: Version-0_9_14-branch
setup_demo.php
Log Message:
GNU Patch #246.
Index: setup_demo.php
===================================================================
RCS file: /cvsroot/phpgroupware/setup/setup_demo.php,v
retrieving revision 1.24.2.1
retrieving revision 1.24.2.2
diff -C2 -r1.24.2.1 -r1.24.2.2
*** setup_demo.php 18 Feb 2002 12:43:57 -0000 1.24.2.1
--- setup_demo.php 21 Apr 2002 17:32:20 -0000 1.24.2.2
***************
*** 155,193 ****
{
/* Create records for demo accounts */
! $accountid =
add_account('demo','Demo','Account','guest');
!
! $phpgw_setup->db->query("INSERT INTO phpgw_preferences
(preference_owner, preference_value) VALUES ('$accountid', '$defaultprefs')");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('preferences',
'changepassword', ".$accountid.", 0)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('addressbook',
'run', ".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('filemanager',
'run', ".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('calendar', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('email', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('todo', 'run',
".$accountid.", 1)");
!
! $accountid =
add_account('demo2','Demo2','Account','guest');
!
! $phpgw_setup->db->query("INSERT INTO phpgw_preferences
(preference_owner, preference_value) VALUES ('$accountid', '$defaultprefs')");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('preferences',
'changepassword', ".$accountid.", 0)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_account, acl_location, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('addressbook',
'run', ".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('filemanager',
'run', ".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('calendar', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('email', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('todo', 'run',
".$accountid.", 1)");
!
! $accountid =
add_account('demo3','Demo3','Account','guest');
!
! $phpgw_setup->db->query("INSERT INTO phpgw_preferences
(preference_owner, preference_value) VALUES ('$accountid', '$defaultprefs')");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('preferences',
'changepassword', ".$accountid.", 0)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('addressbook',
'run', ".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('filemanager',
'run', ".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('calendar', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('email', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('todo', 'run',
".$accountid.", 1)");
}
--- 155,187 ----
{
/* Create records for demo accounts */
! $demo_accounts = Array(
! 'demo' => 'Demo',
! 'demo2' => 'Demo2',
! 'demo3' => 'Demo3'
! );
!
! $demo_apps = Array(
! 'addressbook',
! 'calendar',
! 'email',
! 'notes',
! 'todo',
! 'phpwebhosting',
! 'manual'
! );
!
! while(list($accountname,$firstname) =
each($demo_accounts))
! {
! $accountid =
add_account($accountname,$firstname,'Account','guest');
!
! $phpgw_setup->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('preferences',
'changepassword', ".$accountid.", 0)",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)",__LINE__,__FILE__);
! @reset($demo_apps);
! while(list($key,$demo_app) = each($demo_apps))
! {
! $phpgw_setup->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('".$demo_app."', 'run', ".$accountid.", 1)",__LINE__,__FILE__);
! }
! }
}
***************
*** 195,211 ****
$accountid = add_account($username,$fname,$lname,$passwd);
! $phpgw_setup->db->query("INSERT INTO phpgw_preferences
(preference_owner, preference_value) VALUES ('$accountid', '$defaultprefs')");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$admingroupid."', $accountid, 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('preferences', 'changepassword',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('admin', 'run', ".$accountid.",
1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('addressbook', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('filemanager', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('calendar', 'run',
".$accountid.", 1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('email', 'run', ".$accountid.",
1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('notes', 'run', ".$accountid.",
1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('nntp', 'run', ".$accountid.",
1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('todo', 'run', ".$accountid.",
1)");
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('manual', 'run', ".$accountid.",
1)");
$phpgw_setup->db->transaction_commit();
--- 189,204 ----
$accountid = add_account($username,$fname,$lname,$passwd);
! $phpgw_setup->db->query("INSERT INTO phpgw_preferences
(preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$admingroupid."', $accountid, 1)",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('preferences', 'changepassword',
".$accountid.", 1)",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('admin', 'run', ".$accountid.",
1)",__LINE__,__FILE__);
! $phpgw_setup->db->query("INSERT INTO phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights) VALUES ('nntp', 'run', ".$accountid.",
1)",__LINE__,__FILE__);
!
! @reset($demo_apps);
! while(list($key,$demo_app) = each($demo_apps))
! {
! $phpgw_setup->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('".$demo_app."',
'run', ".$accountid.", 1)",__LINE__,__FILE__);
! }
$phpgw_setup->db->transaction_commit();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: setup setup_demo.php,1.24.2.1,1.24.2.2,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: phpgroupware header.inc.php.template,1.40,1.41
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_contacts.inc.php,1.10,1.10.2.1 class.accounts_ldap.inc.php,1.101.2.1,1.101.2.2 class.accounts_sql.inc.php,1.80.2.2,1.80.2.3
- Previous by thread:
[Phpgroupware-cvs] CVS: phpgroupware header.inc.php.template,1.40,1.41
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_contacts.inc.php,1.10,1.10.2.1 class.accounts_ldap.inc.php,1.101.2.1,1.101.2.2 class.accounts_sql.inc.php,1.80.2.2,1.80.2.3
- Index(es):