[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: setup setup_demo.php,1.26,1.27
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: setup setup_demo.php,1.26,1.27 |
Date: |
Sun, 14 Apr 2002 18:13:02 -0400 |
Update of /cvsroot/phpgroupware/setup
In directory subversions:/tmp/cvs-serv9012
Modified Files:
setup_demo.php
Log Message:
Alter demo accounts to better demonstrate group/user perms
Index: setup_demo.php
===================================================================
RCS file: /cvsroot/phpgroupware/setup/setup_demo.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** setup_demo.php 3 Mar 2002 21:52:52 -0000 1.26
--- setup_demo.php 14 Apr 2002 22:12:59 -0000 1.27
***************
*** 151,155 ****
$admingroupid = add_account('Admins','Admin',
'Group',$passwd,'g');
! /* Creation of the demo accounts is now optional - the checkbox
is on by default. */
if($HTTP_POST_VARS['create_demo'])
{
--- 151,164 ----
$admingroupid = add_account('Admins','Admin',
'Group',$passwd,'g');
! /* Group perms for the default group */
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('addressbook','run'," . $defaultgroupid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('phpwebhosting','run'," . $defaultgroupid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('calendar','run'," . $defaultgroupid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('email','run'," . $defaultgroupid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('notes','run'," . $defaultgroupid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('todo','run'," . $defaultgroupid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('manual','run'," . $defaultgroupid . ", 1)");
!
! /* Creation of the demo accounts is optional - the checkbox is
on by default. */
if($HTTP_POST_VARS['create_demo'])
{
***************
*** 157,193 ****
$accountid =
add_account('demo','Demo','Account','guest');
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('preferences', 'changepassword', ".$accountid.", 0)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('phpgw_group', '".$defaultgroupid."', $accountid, 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('addressbook', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('filemanager', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('calendar', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('email',
'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes',
'run', ".$accountid.", 1)");
! $GLOBALS['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');
$GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('preferences', 'changepassword', ".$accountid.", 0)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_account, acl_location, acl_rights) VALUES
('phpgw_group', '".$defaultgroupid."', $accountid, 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('addressbook', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('filemanager', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('calendar', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('email',
'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes',
'run', ".$accountid.", 1)");
! $GLOBALS['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');
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('preferences', 'changepassword', ".$accountid.", 0)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('phpgw_group', '".$defaultgroupid."', $accountid, 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('addressbook', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('filemanager', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES
('calendar', 'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('email',
'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes',
'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('todo',
'run', ".$accountid.", 1)");
}
--- 166,192 ----
$accountid =
add_account('demo','Demo','Account','guest');
! /* User permissions based on group membership with
additional user perms for the messenger and infolog apps */
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences(preference_owner,preference_value) VALUES('" . $accountid .
"','" . $defaultprefs . "')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('preferences','changepassword', " . $accountid . ",0)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('phpgw_group', '" . $defaultgroupid."'," . $accountid . ",1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('messenger','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('infolog','run'," . $accountid . ", 1)");
$accountid =
add_account('demo2','Demo2','Account','guest');
+ /* User permissions based solely on group membership */
$GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('preferences','changepassword', ".$accountid.", 0)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('phpgw_group','" . $defaultgroupid . "'," . $accountid . ",1)");
$accountid =
add_account('demo3','Demo3','Account','guest');
! /* User-specific perms, no group membership */
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences(preference_owner,preference_value) VALUES('" . $accountid .
"','" . $defaultprefs . "')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('preferences','changepassword', " . $accountid . ",0)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('addressbook','run', " . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('calendar','run', " . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('notes','run', " . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights) VALUES('todo','run',
" . $accountid . ", 1)");
}
***************
*** 195,211 ****
$accountid = add_account($username,$fname,$lname,$passwd);
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES ('$accountid',
'$defaultprefs')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$defaultgroupid."', $accountid, 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('phpgw_group',
'".$admingroupid."', $accountid, 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('preferences',
'changepassword', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('admin', 'run',
".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('addressbook',
'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('filemanager',
'run', ".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('calendar', 'run',
".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('email', 'run',
".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('notes', 'run',
".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('nntp', 'run',
".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('todo', 'run',
".$accountid.", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_acl
(acl_appname, acl_location, acl_account, acl_rights) VALUES ('manual', 'run',
".$accountid.", 1)");
$GLOBALS['phpgw_setup']->db->transaction_commit();
--- 194,210 ----
$accountid = add_account($username,$fname,$lname,$passwd);
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_preferences (preference_owner, preference_value) VALUES('" . $accountid .
"','" . $defaultprefs . "')");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('phpgw_group','" . $defaultgroupid."'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('phpgw_group','" . $admingroupid."'," . $accountid . ",1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('preferences','changepassword', " . $accountid . ",1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('admin','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('addressbook','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('phpwebhosting','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('calendar','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('email','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('notes','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('nntp','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('todo','run'," . $accountid . ", 1)");
! $GLOBALS['phpgw_setup']->db->query("INSERT INTO
phpgw_acl(acl_appname,acl_location,acl_account,acl_rights)
VALUES('manual','run'," . $accountid . ", 1)");
$GLOBALS['phpgw_setup']->db->transaction_commit();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: setup setup_demo.php,1.26,1.27,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: felamimail/templates/idsociety/images read_small.png,NONE,1.1.2.1 unread_deleted_small.gif,NONE,1.1.2.1 unread_deleted_small.png,NONE,1.1.2.1 unread_flagged_small.png,NONE,1.1.2.1 unread_small.png,NONE,1.1.2.1 sm_delete.gif,1.1.1.1,NONE sm_delete.png,1.1.2.1,NONE sm_important.png,1.1.1.1,NONE sm_read.png,1.1.1.1,NONE
- Next by Date:
[Phpgroupware-cvs] CVS: inv addressbook.php,1.21,NONE listdist.php,1.23,NONE
- Previous by thread:
[Phpgroupware-cvs] CVS: felamimail/templates/idsociety/images read_small.png,NONE,1.1.2.1 unread_deleted_small.gif,NONE,1.1.2.1 unread_deleted_small.png,NONE,1.1.2.1 unread_flagged_small.png,NONE,1.1.2.1 unread_small.png,NONE,1.1.2.1 sm_delete.gif,1.1.1.1,NONE sm_delete.png,1.1.2.1,NONE sm_important.png,1.1.1.1,NONE sm_read.png,1.1.1.1,NONE
- Next by thread:
[Phpgroupware-cvs] CVS: inv addressbook.php,1.21,NONE listdist.php,1.23,NONE
- Index(es):