[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/setup default_records.inc.php,1.4,1.5
From: |
Michael Totschnig <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/setup default_records.inc.php,1.4,1.5 |
Date: |
Thu, 22 May 2003 23:37:27 -0400 |
Update of /cvsroot/phpgroupware/sitemgr/setup
In directory subversions:/tmp/cvs-serv7770/setup
Modified Files:
default_records.inc.php
Log Message:
numerous bugs and improved ACL
Index: default_records.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/setup/default_records.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** default_records.inc.php 22 May 2003 02:36:54 -0000 1.4
--- default_records.inc.php 23 May 2003 03:37:25 -0000 1.5
***************
*** 1,10 ****
<?php
- foreach (array('html','index','toc') as $module)
- {
- $oProc->query("INSERT INTO phpgw_sitemgr_modules (module_name)
VALUES ('$module')",__LINE__,__FILE__);
- $module_id =
$oProc->m_odb->get_last_insert_id('phpgw_sitemgr_modules','module_id');
- $oProc->query("INSERT INTO phpgw_sitemgr_active_modules
(area,cat_id,module_id) VALUES ('__PAGE__',0,$module_id)",__LINE__,__FILE__);
- }
-
$oProc->query("INSERT INTO phpgw_categories
(cat_parent,cat_owner,cat_access,cat_appname,cat_name,cat_description) VALUES
(0,-1,'public','sitemgr','Default Website','This website has been add by
setup')");
$site_id =
$oProc->m_odb->get_last_insert_id('phpgw_categories','cat_id');
--- 1,3 ----
***************
*** 16,17 ****
--- 9,18 ----
$sitedir = PHPGW_INCLUDE_ROOT . SEP . 'sitemgr' . SEP . 'sitemgr-site';
$oProc->query("INSERT INTO phpgw_sitemgr_sites
(site_id,site_name,site_url,site_dir,themesel,site_languages,home_page_id,anonymous_user,anonymous_passwd)
VALUES ($site_id,'Default
Website','$siteurl','$sitedir','phpgroupware','en',0,'anonymous','anonymous')");
+
+ foreach (array('html','index','toc') as $module)
+ {
+ $oProc->query("INSERT INTO phpgw_sitemgr_modules (module_name)
VALUES ('$module')",__LINE__,__FILE__);
+ $module_id =
$oProc->m_odb->get_last_insert_id('phpgw_sitemgr_modules','module_id');
+ $oProc->query("INSERT INTO phpgw_sitemgr_active_modules
(area,cat_id,module_id) VALUES
('__PAGE__',$site_id,$module_id)",__LINE__,__FILE__);
+ }
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/setup default_records.inc.php,1.4,1.5,
Michael Totschnig <address@hidden> <=