functions.inc.php - db_log():

- allow log actions create_admin and edit_admin
- add edit_admin_state and delete_admin as comment/reminder that they 
  should also be logged

*.lang:
- add text for the new "create admin" and "edit admin" log actions


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1298 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent 23c08bc02e
commit b335abf02e

@ -1758,6 +1758,7 @@ function db_log ($domain,$action,$data) {
'create_mailbox', 'edit_mailbox', 'edit_mailbox_state', 'delete_mailbox',
'create_domain', 'edit_domain', 'delete_domain',
'create_alias_domain', 'edit_alias_domain', 'edit_alias_domain_state', 'delete_alias_domain',
'create_admin', 'edit_admin', /* 'edit_admin_state', 'delete_admin', */
'edit_password',
);

@ -213,6 +213,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Напред';
$PALANG['pViewlog_result_error'] = 'Не мога да открия логовете!';

@ -211,6 +211,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Ves';
$PALANG['pViewlog_result_error'] = 'Imposible trobar els logs!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = '执行';
$PALANG['pViewlog_result_error'] = '未找到相关的日志!';

@ -220,6 +220,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'úprava přesměrování';
$PALANG['pViewlog_action_edit_alias_state'] = 'změna stavu přesměrování';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'změna hesla';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Jít';
$PALANG['pViewlog_result_error'] = 'Nepodařilo se najít záznamy!';

@ -218,6 +218,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'rediger alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'ændre alias aktiv';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'ændre adgangskode';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Vis';
$PALANG['pViewlog_result_error'] = 'Kan ikke finde loggen!';

@ -217,6 +217,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'Alias bearbeiten';
$PALANG['pViewlog_action_edit_alias_state'] = 'Alias Aktiv bearbeiten';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'Alias-Domain Aktiv bearbeiten';
$PALANG['pViewlog_action_edit_password'] = 'Passwort ändern';
$PALANG['pViewlog_action_create_admin'] = 'Admin erstellen';
$PALANG['pViewlog_action_edit_admin'] = 'Admin ändern';
$PALANG['pViewlog_button'] = 'Los';
$PALANG['pViewlog_result_error'] = 'Kann keine Einträge finden!';

@ -218,6 +218,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active';
$PALANG['pViewlog_action_edit_password'] = 'change password';
$PALANG['pViewlog_action_create_admin'] = 'create admin';
$PALANG['pViewlog_action_edit_admin'] = 'edit admin';
$PALANG['pViewlog_button'] = 'Go';
$PALANG['pViewlog_result_error'] = 'Unable to find the logs!';

@ -213,6 +213,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'editar alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'editar alias activo';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'editar alias de dominio activo';
$PALANG['pViewlog_action_edit_password'] = 'cambiar contraseña';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Ir';
$PALANG['pViewlog_result_error'] = '¡Imposible encontrar los logs!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Mine';
$PALANG['pViewlog_result_error'] = 'Logi ei leitud!';

@ -210,6 +210,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Joan';
$PALANG['pViewlog_result_error'] = 'Ezinezkoa logak aurkitzea!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'muokkaa aliasta';
$PALANG['pViewlog_action_edit_alias_state'] = 'muokkaa aktiivista aliasta';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'muokkaa aktiivista alias domainia';
$PALANG['pViewlog_action_edit_password'] = 'vaihda salasana';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Siirry';
$PALANG['pViewlog_result_error'] = 'Lokeja ei löydy!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Vel';
$PALANG['pViewlog_result_error'] = 'Finni ikki loggarnar!';

@ -213,6 +213,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'éditer un alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'activer un alias';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'editer alias de domaine actif';
$PALANG['pViewlog_action_edit_password'] = 'changer le mot de passe';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Aller';
$PALANG['pViewlog_result_error'] = 'Impossible de trouver le journal des événements!';

@ -211,6 +211,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Idi';
$PALANG['pViewlog_result_error'] = 'Zapise nije bilo moguče naći!';

@ -217,6 +217,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'alias módosítása';
$PALANG['pViewlog_action_edit_alias_state'] = 'alias aktivitás módosítása';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'jelszó módosítása';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Gyerünk';
$PALANG['pViewlog_result_error'] = 'Nemsikerült megtalálni a napló fájlokat!';

@ -211,6 +211,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Áfram';
$PALANG['pViewlog_result_error'] = 'Get ekki fundið log skráningu!';

@ -213,6 +213,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'modifica alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'cambia stato alias';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'cambia password';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Vai';
$PALANG['pViewlog_result_error'] = 'Impossibile trovare i file di log!';

@ -217,6 +217,8 @@ $PALANG['pViewlog_action_edit_alias'] = '転送先編集';
$PALANG['pViewlog_action_edit_alias_state'] = '転送先状態編集';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'パスワード変更';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = '表示';
$PALANG['pViewlog_result_error'] = 'ログが見つかりません!';

@ -211,6 +211,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Eiti';
$PALANG['pViewlog_result_error'] = 'Įvykių žurnalas nerastas!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Оди';
$PALANG['pViewlog_result_error'] = 'Не можам да ги пронајдам записите!';

@ -213,6 +213,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'rediger alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'rediger aliasstatus';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'endre aktiv-status på aliasdomene';
$PALANG['pViewlog_action_edit_password'] = 'endre passord';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Vis';
$PALANG['pViewlog_result_error'] = 'Finner ikke den aktuelle loggen!';

@ -214,6 +214,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'alias bewerkt';
$PALANG['pViewlog_action_edit_alias_state'] = 'status actieve alias bewerkt';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'status actieve domein alias bewerkt';
$PALANG['pViewlog_action_edit_password'] = 'wachtwoord aangepast';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Ga';
$PALANG['pViewlog_result_error'] = 'Mislukt om de logs te vinden!';

@ -210,6 +210,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Vis';
$PALANG['pViewlog_result_error'] = 'Fant ikke loggen!';

@ -215,6 +215,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edycja aliasu';
$PALANG['pViewlog_action_edit_alias_state'] = 'edycja statusu aliasu';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edycja statusu aliasu domeny';
$PALANG['pViewlog_action_edit_password'] = 'zmień hasło';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Idź';
$PALANG['pViewlog_result_error'] = 'Nie można odszukać logów!';

@ -219,6 +219,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'editar alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'habilitar/desabilitar alias';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'habilitar/desabilitar alias de domínio';
$PALANG['pViewlog_action_edit_password'] = 'alterar senha';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Acessar';
$PALANG['pViewlog_result_error'] = 'Não foi possível encontrar o histórico!';

@ -219,6 +219,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'редактирование алиас
$PALANG['pViewlog_action_edit_alias_state'] = 'изменение активности алиаса';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'изменение активности домена-алиаса';
$PALANG['pViewlog_action_edit_password'] = 'изменение пароля';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Выбрать';
$PALANG['pViewlog_result_error'] = 'Невозможно найти журнал!';

@ -213,6 +213,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'zmena aliasu';
$PALANG['pViewlog_action_edit_alias_state'] = 'zmena aktivity aliasu';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'zmena aktivity aliasu domény';
$PALANG['pViewlog_action_edit_password'] = 'zmena hesla';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Prejsť';
$PALANG['pViewlog_result_error'] = 'Nepodarilo sa nájsť záznamy!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Pojdi';
$PALANG['pViewlog_result_error'] = 'Dnevnikov ni bilo mogoče najti!';

@ -214,6 +214,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'ändra alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'ändra alias status';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'ändra lösenord';
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Kör';
$PALANG['pViewlog_result_error'] = 'Kan inte hitta loggarna!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = 'Git';
$PALANG['pViewlog_result_error'] = 'Loglar bulunamýyor!';

@ -212,6 +212,8 @@ $PALANG['pViewlog_action_edit_alias'] = 'edit alias'; # XXX
$PALANG['pViewlog_action_edit_alias_state'] = 'edit alias active'; # XXX
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'edit alias domain active'; # XXX
$PALANG['pViewlog_action_edit_password'] = 'change password'; # XXX
$PALANG['pViewlog_action_create_admin'] = 'create admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'edit admin'; # XXX
$PALANG['pViewlog_button'] = '執行';
$PALANG['pViewlog_result_error'] = '未找到相關的日誌!';

Loading…
Cancel
Save