mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
update to automatic install the new home app
This commit is contained in:
parent
e97ccc5202
commit
61b954620e
@ -14,7 +14,7 @@
|
|||||||
/* Basic information about this app */
|
/* Basic information about this app */
|
||||||
$setup_info['phpgwapi']['name'] = 'phpgwapi';
|
$setup_info['phpgwapi']['name'] = 'phpgwapi';
|
||||||
$setup_info['phpgwapi']['title'] = 'phpgwapi';
|
$setup_info['phpgwapi']['title'] = 'phpgwapi';
|
||||||
$setup_info['phpgwapi']['version'] = '1.0.1.009';
|
$setup_info['phpgwapi']['version'] = '1.0.1.010';
|
||||||
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
|
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
|
||||||
$setup_info['phpgwapi']['enable'] = 3;
|
$setup_info['phpgwapi']['enable'] = 3;
|
||||||
$setup_info['phpgwapi']['app_order'] = 1;
|
$setup_info['phpgwapi']['app_order'] = 1;
|
||||||
|
@ -462,4 +462,47 @@
|
|||||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$test[] = '1.0.1.009';
|
||||||
|
function phpgwapi_upgrade1_0_1_009()
|
||||||
|
{
|
||||||
|
if (@file_exists(EGW_SERVER_ROOT . '/home/setup/setup.inc.php'))
|
||||||
|
{
|
||||||
|
// automatic install of the new home app
|
||||||
|
include(EGW_SERVER_ROOT . '/home/setup/setup.inc.php');
|
||||||
|
$home_version = $setup_info['home']['version'];
|
||||||
|
|
||||||
|
$GLOBALS['phpgw_setup']->db->insert('phpgw_applications',array(
|
||||||
|
'app_enabled' => $setup_info['home']['enable'],
|
||||||
|
'app_order' => $setup_info['home']['app_order'],
|
||||||
|
'app_version' => $setup_info['home']['version'],
|
||||||
|
'app_tables' => '',
|
||||||
|
),array(
|
||||||
|
'app_name' => 'home',
|
||||||
|
),__LINE__,__FILE__);
|
||||||
|
|
||||||
|
// give all users and groups with preferences rights, rights for the home app.
|
||||||
|
$GLOBALS['phpgw_setup']->db->select('phpgw_acl','acl_account',array(
|
||||||
|
'acl_appname' => 'preferences',
|
||||||
|
'acl_location' => 'run',
|
||||||
|
'acl_rights' => 1,
|
||||||
|
),__LINE__,__FILE__);
|
||||||
|
$accounts_with_preference_rights = array();
|
||||||
|
while (($row = $GLOBALS['phpgw_setup']->db->row(true)))
|
||||||
|
{
|
||||||
|
$accounts_with_preference_rights[] = $row['acl_account'];
|
||||||
|
}
|
||||||
|
foreach($accounts_with_preference_rights as $account)
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_setup']->db->insert('phpgw_acl',array(
|
||||||
|
'acl_rights' => 1,
|
||||||
|
),array(
|
||||||
|
'acl_appname' => 'home',
|
||||||
|
'acl_location' => 'run',
|
||||||
|
'acl_account' => $account,
|
||||||
|
),__LINE__,__FILE__);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.1.010';
|
||||||
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user