delete history-log-entries if an app gets de-installed

This commit is contained in:
Ralf Becker 2003-09-22 23:48:28 +00:00
parent 63d7cc09a3
commit db58171660
3 changed files with 13 additions and 1 deletions

View File

@ -128,6 +128,9 @@
if(!empty($remove) && is_array($remove))
{
$historylog = CreateObject('phpgwapi.historylog');
$historylog->db = $GLOBALS['phpgw_setup']->db;
foreach($remove as $appname => $key)
{
$terror = array();
@ -150,6 +153,11 @@
$terror = $GLOBALS['phpgw_setup']->process->drop_langs($terror,$DEBUG);
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('Translations removed') . '.';
if ($historylog->delete($appname))
{
echo '<br>' . $setup_info[$appname]['title'] . ' ' . lang('Historylog removed') . '.';
}
}
}
@ -393,7 +401,7 @@
if(@$value['name'])
{
$i = ($i ? 0 : 1);
$setup_tpl->set_var('apptitle',$value['title']);
$setup_tpl->set_var('apptitle',$value['title']?$value['title']:lang($value['name']));
$setup_tpl->set_var('currentver',@$value['currentver']);
$setup_tpl->set_var('version',$value['version']);
$setup_tpl->set_var('bg_color',$bgcolor[$i]);

View File

@ -106,6 +106,7 @@ edit current configuration setup de Gegenw
edit your existing header.inc.php setup de Bearbeiten ihrer existierenden header.inc.php
edit your header.inc.php setup de Bearbeiten ihrer header.inc.php
enable for extra debug-messages setup de ankreutzen für zusätzliche Diagnosemeldungen
enable ldap version 3 setup de LDAP Version 3 verwenden
enable mcrypt setup de MCrypt einschalten
enter some random text for app session encryption setup de Zufallstext zur Verschlüssellung der app session
enter some random text for app_session <br>encryption (requires mcrypt) setup de Zufallstext zur Verschlüssellung der app session<br>(benötigt mcrypt)
@ -131,6 +132,7 @@ go back setup de Zur
go to setup de Gehen zu
grant access setup de Zugriff gewähren
has a version mismatch setup de hat eine falsche Versionsanpassung
historylog removed setup de Historylog gelöscht
hooks deregistered setup de Haken nicht mehr aktiv
hooks registered setup de Haken registriert
host information setup de Host Informationen

View File

@ -104,6 +104,7 @@ edit current configuration setup en Edit Current Configuration
edit your existing header.inc.php setup en Edit your existing header.inc.php
edit your header.inc.php setup en Edit your header.inc.php
enable for extra debug-messages setup en enable for extra debug-messages
enable ldap version 3 setup en Enable LDAP Version 3
enable mcrypt setup en Enable MCrypt
enter some random text for app session encryption setup en Enter some random text for app session encryption
enter some random text for app_session <br>encryption (requires mcrypt) setup en Enter some random text for app_session <br>encryption (requires mcrypt)
@ -129,6 +130,7 @@ go back setup en Go back
go to setup en Go to
grant access setup en Grant Access
has a version mismatch setup en has a version mismatch
historylog removed setup en Historylog removed
hooks deregistered setup en hooks deregistered
hooks registered setup en hooks registered
host information setup en Host information