From 5747ba18fe789adfdd9848ca766e1dcd0a3f71a3 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 11 Jul 2006 08:23:04 +0000 Subject: [PATCH] Release 2.6.2-1 SVN revision: 1699 --- doc/ChangeLog | 38 +++++++++++++++++++++++++++++++++ doc/index.html | 2 +- resources/eloglang.brazilian | 14 +++++------- resources/eloglang.bulgarian | 1 + resources/eloglang.danish | 1 + resources/eloglang.dutch | 1 + resources/eloglang.french | 1 + resources/eloglang.german | 17 ++++++--------- resources/eloglang.italian | 1 + resources/eloglang.japanese | 1 + resources/eloglang.spanish | 8 ++++--- resources/eloglang.turkish | 1 + resources/eloglang.zh_CN-GB2312 | 1 + resources/eloglang.zh_CN-UTF8 | 1 + src/elogd.c | 32 +++++++++++++-------------- 15 files changed, 80 insertions(+), 40 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index f9282b18..7d53779e 100755 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,41 @@ +Version 2.6.2, released July 11th, 2006 +======================================= + +- Fixed crash on email notification for edits +- Implemented 'list conditions' +- Fixed problem with broken navigation links (strencode2 got wrong 'size' parameter) +- Fixed wrong focus switching to text box for conditional attributes +- Implemented "bottom text login" +- Fixed crash on mirroring with write password +- Do $shell() substitution after attribute substitution +- Fixed problem with using locks and changing encoding +- Implemented "Anonymous" substitution if no user is logged int +- Write email text to logfile +- Show attachments by default in full list mode +- Changed "cool" icon from 8) to 8-) in order to avoid misinterpretations +- Implemented $version and $revision in bottom text +- Implemented "Hidden attributes = ..." +- Fixed invalid link if searched in all logbooks +- Fixed broken 'protect selection page' +- Added tooltip display in normal list mode and entry view +- Replaced forkpty() with shell redirection to temporary file +- Fixed illegal submit from curl() +- Fixed problem with closing / +- Strip ANY logbook in new redirection method +- Do not allow empty passwords or passwords with blanks +- Added user name check for blanks +- Fixed calender month selection bug +- Implemented 'allow password change' +- Added new redirection code without using 'URL =' statement +- Added heading to ELCode tags +- Added IP address to log file +- Fixed potential buffer overflows +- Fixed problem with MOptions and reedit +- Fixed problem with MOptions inside submit_elog() +- Don't show ELCode buttons if "show text = 0" +- Applied patch from Mike Pittelkow to compile under FreeBSD +- Fixed broken inline images + Version 2.6.1, released Jan 19th, 2006 ====================================== diff --git a/doc/index.html b/doc/index.html index 42464c69..442a00d1 100755 --- a/doc/index.html +++ b/doc/index.html @@ -25,7 +25,7 @@  [Links]  * 

Home of the Electronic Logbook package by Stefan Ritt

-
Current version is : 2.6.1
+
Current version is : 2.6.2

  What is ELOG ?  
diff --git a/resources/eloglang.brazilian b/resources/eloglang.brazilian index a4dfe779..8a699d77 100755 --- a/resources/eloglang.brazilian +++ b/resources/eloglang.brazilian @@ -204,18 +204,12 @@ All = Todos Select = Selecionar New entry cannot be written to directory "%s" = Nova entrada não pode ser gravada no diretório "%s" Entry %s cannot be read from logbook "%s" = A entrada %s não pode ser lida do logbook "%s" -No entry selected = Nenhuma entrada selecionada -One entry = Uma entrada -moved successfully from "%s" to "%s" = Movidos com sucesso de "%s" para "%s" -copied successfully from "%s" to "%s" = Copiados com sucesso de "%s" para "%s" This entry has been deleted = Essa entrada foi removida Login = Login by = por Cannot connect to remote server "%s" = Não é possível conectar no server remoto "%s" Remote server is not an ELOG server = Servidor remoto não é um servidor de ELOG Incorrect remote ELOG server version %s = Versão incorreta do servidor remoto de ELOG -User "%s" has no access to remote logbook = Usuário "%s" não tem acesso ao logbook remoto -Passwords for user "%s" do not match locally and remotely = Senhas para o usuário "%s" não são compatíveis localmente e remotamente Error accessing remote logbook = Erro ao acessar o logbook remoto Invalid HTTP header = Cabeçalho de HTTP inválido No user name supplied to access remote logbook = Nome de usuário não fornecido para acessar o logbook remoto @@ -337,7 +331,6 @@ Subscribe to logbooks = Inscrever-se nos logbooks enable automatic email notifications = permite notificações automáticas por email Set all = Selecionar todos Set none = Não selecionar nenhum -Set current time = Ajustar hora corrente Please enter hour for attribute '%s' = Por favor, entre com a hora para o atributo '%s' Please enter minute for attribute '%s' = Por favor, entre com o minuto para o atributo '%s' Please enter second for attribute '%s' = Por favor, entre com o segundo par ao atributo '%s' @@ -403,9 +396,7 @@ Enter URL of hyperlink = Entre com a URL do hyperlink astonished = surpreso Error in regular expression "%s" = Erro na expressão regular "%s" File not found at URL "%s" = Arquivo não encontrado na URL "%s" -Copy To = Copiar para Copy to = Copiar para -Move To = Mover para Move to = Mover para Select = Selecionar Entry size too large for email notification = O tamanho da entrada é muito grande para notificação via email @@ -418,3 +409,8 @@ insert heading = inserir t User name may not contain blanks = O nome do usuário não pode conter brancos Empty password not allowed = Não é permitida senha vazia Password may not contain blanks = A senha não pode conter brancos + +# +#---- please translate following items and then remove this comment ----# +# +Anonymous = diff --git a/resources/eloglang.bulgarian b/resources/eloglang.bulgarian index 3c9f5533..29c23a6b 100755 --- a/resources/eloglang.bulgarian +++ b/resources/eloglang.bulgarian @@ -413,3 +413,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.danish b/resources/eloglang.danish index b7932bad..dbe3c93f 100755 --- a/resources/eloglang.danish +++ b/resources/eloglang.danish @@ -411,3 +411,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.dutch b/resources/eloglang.dutch index 3dbc5da3..76bb6b96 100755 --- a/resources/eloglang.dutch +++ b/resources/eloglang.dutch @@ -414,3 +414,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.french b/resources/eloglang.french index 5f6852a5..0b911424 100755 --- a/resources/eloglang.french +++ b/resources/eloglang.french @@ -411,3 +411,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.german b/resources/eloglang.german index 1d829d9f..a52f070b 100755 --- a/resources/eloglang.german +++ b/resources/eloglang.german @@ -400,13 +400,10 @@ Entry size too large for email notification = Eintrag zu gro Please specify a valid email address = Bitte eine gültige Email-Adresse eingeben Cannot send email notification to "%s" = Kann Email-Benachrichtigung nicht an "%s" senden Error: Command "%s" is not allowed for user "%s" = Fehler: Kommando "%s" ist nicht erlaubt für Benutzer "%s" - -# -#---- please translate following items and then remove this comment ----# -# -Shell execution not enabled via -x flag = -Enter heading level (1, 2 or 3) = -insert heading = -User name may not contain blanks = -Empty password not allowed = -Password may not contain blanks = +Shell execution not enabled via -x flag = Kommando-Ausführung ist nicht mit -x Kommandozeilenoption eingeschalten +Enter heading level (1, 2 or 3) = Bitte Überschrift-Stufe eingeben (1, 2 oder 3) +insert heading = Überschrift eingeben +User name may not contain blanks = Benutzername darf keine Leerzeichen enthalten +Empty password not allowed = Leeres Passwort ist nicht erlaubt +Password may not contain blanks = Passwort darf keine Leerzeichen enthalten +Anonymous = Anonym diff --git a/resources/eloglang.italian b/resources/eloglang.italian index 87078723..be4b49d2 100755 --- a/resources/eloglang.italian +++ b/resources/eloglang.italian @@ -409,3 +409,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.japanese b/resources/eloglang.japanese index 9233eb1b..fb4da5e2 100755 --- a/resources/eloglang.japanese +++ b/resources/eloglang.japanese @@ -409,3 +409,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.spanish b/resources/eloglang.spanish index 2cc0ffcc..b0d8d984 100755 --- a/resources/eloglang.spanish +++ b/resources/eloglang.spanish @@ -398,7 +398,6 @@ astonished = Asombrado Error in regular expression "%s" = Error en la expresion regular "%s" File not found at URL "%s" = Archivo no encontrado en la URL "%s" Entry size too large for email notification = Entrada demasiado grande -para notificacion por email Please specify a valid email address = Por favor especifique una direccion de email valida Cannot send email notification to "%s" = No se puede enviar una notificacion por email a "%s" Error: Command "%s" is not allowed for user "%s" = Error: El comando "%s" no esta permitido para el usuario "%s" @@ -406,6 +405,9 @@ Shell execution not enabled via -x flag = La ejecuci Enter heading level (1, 2 or 3) = Ingrese nivel de encabezado (1, 2 o 3) insert heading = inserte encabezado User name may not contain blanks = El nombre de usuario no puede -contener espacios en blancos Empty password not allowed = No se permite clave vacía -Password may not contain blanks = La clave no puede contener espacios en blancos \ No newline at end of file +Password may not contain blanks = La clave no puede contener espacios en blancos +# +#---- please translate following items and then remove this comment ----# +# +Anonymous = diff --git a/resources/eloglang.turkish b/resources/eloglang.turkish index c31df045..d44c274a 100755 --- a/resources/eloglang.turkish +++ b/resources/eloglang.turkish @@ -413,3 +413,4 @@ name may not contain blanks = isim bo User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.zh_CN-GB2312 b/resources/eloglang.zh_CN-GB2312 index 21398578..61d39c9a 100644 --- a/resources/eloglang.zh_CN-GB2312 +++ b/resources/eloglang.zh_CN-GB2312 @@ -411,3 +411,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/resources/eloglang.zh_CN-UTF8 b/resources/eloglang.zh_CN-UTF8 index 0354b53e..603a5734 100644 --- a/resources/eloglang.zh_CN-UTF8 +++ b/resources/eloglang.zh_CN-UTF8 @@ -411,3 +411,4 @@ insert heading = User name may not contain blanks = Empty password not allowed = Password may not contain blanks = +Anonymous = diff --git a/src/elogd.c b/src/elogd.c index 9ccb54c3..d6b67ef0 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -560,7 +560,7 @@ int my_read(int fh, void *buffer, unsigned int bytes) int i, n = 0; do { - i = read(fh, buffer+n, bytes-n); + i = read(fh, buffer + n, bytes - n); /* don't return if an alarm signal was cought */ if (i == -1 && errno == EINTR) @@ -574,7 +574,7 @@ int my_read(int fh, void *buffer, unsigned int bytes) n += i; - } while (n < (int)bytes); + } while (n < (int) bytes); return n; #else @@ -1193,7 +1193,7 @@ void strsubst_list(char *string, int size, char name[][NAME_LENGTH], char value[ pt = tmp; ps = string; p = strchr(ps, '$'); - if (p != NULL) { + if (p != NULL) { /* copy leading characters */ j = (int) (p - ps); @@ -6255,8 +6255,7 @@ void set_location(LOGBOOK * lbs, char *rel_path) char str[NAME_LENGTH], group[NAME_LENGTH], list[NAME_LENGTH], *p; int i; - if (getcfg(lbs->name, "Relative redirect", str, sizeof(str)) && - atoi(str) == 1) { + if (getcfg(lbs->name, "Relative redirect", str, sizeof(str)) && atoi(str) == 1) { if (rel_path[0]) strlcpy(str, rel_path, sizeof(str)); @@ -7319,7 +7318,7 @@ void show_top_text(LOGBOOK * lbs) void show_bottom_text(LOGBOOK * lbs) { char str[NAME_LENGTH], slist[20][NAME_LENGTH], svalue[20][NAME_LENGTH]; - int i, size; + int i, size; if (getcfg(lbs->name, "bottom text", str, sizeof(str))) { FILE *f; @@ -7346,7 +7345,7 @@ void show_bottom_text(LOGBOOK * lbs) fclose(f); i = build_subst_list(lbs, slist, svalue, NULL, TRUE); - strsubst_list(buf, size+100, slist, svalue, i); + strsubst_list(buf, size + 100, slist, svalue, i); rsputs(buf); xfree(buf); @@ -7369,7 +7368,7 @@ void show_bottom_text(LOGBOOK * lbs) void show_bottom_text_login(LOGBOOK * lbs) { char str[NAME_LENGTH], slist[20][NAME_LENGTH], svalue[20][NAME_LENGTH]; - int i, size; + int i, size; if (getcfg(lbs->name, "bottom text login", str, sizeof(str))) { FILE *f; @@ -7396,7 +7395,7 @@ void show_bottom_text_login(LOGBOOK * lbs) fclose(f); i = build_subst_list(lbs, slist, svalue, NULL, TRUE); - strsubst_list(buf, size+100, slist, svalue, i); + strsubst_list(buf, size + 100, slist, svalue, i); rsputs(buf); xfree(buf); @@ -7703,32 +7702,32 @@ void strencode2(char *b, char *text, int size) for (i = 0; i < (int) strlen(text); i++) { switch (text[i]) { case '\n': - if (strlen(b)+5 >= (unsigned int)size) + if (strlen(b) + 5 >= (unsigned int) size) return; strcat(b, "
\n"); break; case '<': - if (strlen(b)+4 >= (unsigned int)size) + if (strlen(b) + 4 >= (unsigned int) size) return; strcat(b, "<"); break; case '>': - if (strlen(b)+4 >= (unsigned int)size) + if (strlen(b) + 4 >= (unsigned int) size) return; strcat(b, ">"); break; case '&': - if (strlen(b)+5 >= (unsigned int)size) + if (strlen(b) + 5 >= (unsigned int) size) return; strcat(b, "&"); break; case '\"': - if (strlen(b)+6 >= (unsigned int)size) + if (strlen(b) + 6 >= (unsigned int) size) return; strcat(b, """); break; default: - if (strlen(b)+1 >= (unsigned int)size) + if (strlen(b) + 1 >= (unsigned int) size) return; sprintf(b + strlen(b), "%c", text[i]); } @@ -14731,8 +14730,7 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, nowrap = printable ? "" : "nowrap"; skip_comma = FALSE; - if (getcfg(lbs->name, "List conditions", str, sizeof(str)) && - atoi(str) == 1) + if (getcfg(lbs->name, "List conditions", str, sizeof(str)) && atoi(str) == 1) evaluate_conditions(lbs, attrib); if (strieq(mode, "Threaded")