mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Release 2.6.4-1
SVN revision: 1795
This commit is contained in:
parent
e382f6c37f
commit
32f2f9858c
@ -99,7 +99,8 @@
|
|||||||
ProgramDataBaseFileName=".\Release/"
|
ProgramDataBaseFileName=".\Release/"
|
||||||
BrowseInformation="1"
|
BrowseInformation="1"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
SuppressStartupBanner="TRUE"/>
|
SuppressStartupBanner="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
@ -108,9 +109,10 @@
|
|||||||
OutputFile=".\Release/elogd.exe"
|
OutputFile=".\Release/elogd.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile=".\Release/elogd.pdb"
|
ProgramDatabaseFile=".\Release/elogd.pdb"
|
||||||
SubSystem="1"
|
SubSystem="1"
|
||||||
StackReserveSize="1048576"
|
StackReserveSize="4000000"
|
||||||
TargetMachine="1"/>
|
TargetMachine="1"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
|
|||||||
@ -1,3 +1,30 @@
|
|||||||
|
Version 2.6.4, released Feb. 17th, 2007
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
- Fixed problem with preset string containing '%'
|
||||||
|
- Fixed bug with tooltips in radio buttons
|
||||||
|
- Implemented 'Default email from'
|
||||||
|
- Use 'use email from' only if no user email is available (as written in the documentation)
|
||||||
|
- Implemented tooltips for ROptions
|
||||||
|
- Fixed bug in help file redirection
|
||||||
|
- Implemented [code1] ELCode tag
|
||||||
|
- Increased 'email all' to 200 entries
|
||||||
|
- Fixed crash in allocation of mail_to
|
||||||
|
- Implemented separate Cascading Style Sheets for different output media
|
||||||
|
- Fixed problem with "Update" command when "new" (not "New") is in "Menu Commands"
|
||||||
|
- Implemented proper sorting of numeric attributes
|
||||||
|
- Fixed "Preset <date-attr> = 0"
|
||||||
|
- Fixed bug with quick filters and attributes with blanks
|
||||||
|
- Show only subscribe options for logbooks which email notification turned on
|
||||||
|
- Made quick filter improvements work with subtext
|
||||||
|
- Improved quick filters without all the buttons
|
||||||
|
- Fixed signed/unsiged bug
|
||||||
|
- Exclude UTF-8 characters > 128 from substitution in XML export
|
||||||
|
- Use charset from config file for XML export
|
||||||
|
- Added debug output for shell execution
|
||||||
|
- Applied additional patch from Ulf Harnhammar
|
||||||
|
- Increased tooltip size to 10kChar
|
||||||
|
|
||||||
Version 2.6.3, released Nov. 28th, 2006
|
Version 2.6.3, released Nov. 28th, 2006
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
[<a class="nav" href="#links">Links</a>] * </div>
|
[<a class="nav" href="#links">Links</a>] * </div>
|
||||||
<P class="Sub">Home of the <i>Electronic Logbook</i> package by <a href="mailto:Stefan.Ritt@psi.ch">
|
<P class="Sub">Home of the <i>Electronic Logbook</i> package by <a href="mailto:Stefan.Ritt@psi.ch">
|
||||||
Stefan Ritt</a></P>
|
Stefan Ritt</a></P>
|
||||||
<div class="version">Current version is : 2.6.3</div>
|
<div class="version">Current version is : 2.6.4</div>
|
||||||
<hr>
|
<hr>
|
||||||
<a name="whatis">
|
<a name="whatis">
|
||||||
<div class="section"> What is ELOG ? </div>
|
<div class="section"> What is ELOG ? </div>
|
||||||
|
|||||||
@ -416,3 +416,11 @@ Anonymous = An
|
|||||||
Activation notice has been sent to %s =
|
Activation notice has been sent to %s =
|
||||||
Your request has been forwarded to the administrator =
|
Your request has been forwarded to the administrator =
|
||||||
You will be notified by email upon activation of your new account =
|
You will be notified by email upon activation of your new account =
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -416,3 +416,11 @@ Anonymous =
|
|||||||
Activation notice has been sent to %s =
|
Activation notice has been sent to %s =
|
||||||
Your request has been forwarded to the administrator =
|
Your request has been forwarded to the administrator =
|
||||||
You will be notified by email upon activation of your new account =
|
You will be notified by email upon activation of your new account =
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -131,7 +131,6 @@ Display = Zobraz
|
|||||||
entries per page = položek na stránku
|
entries per page = položek na stránku
|
||||||
Toggle all = Odeber vše
|
Toggle all = Odeber vše
|
||||||
Selected entries = Označené položky
|
Selected entries = Označené položky
|
||||||
Enable email notifications = Povol oznámení příchodu Emailu
|
|
||||||
A old entry has been updated on %s = Položka %s byla obnovena
|
A old entry has been updated on %s = Položka %s byla obnovena
|
||||||
Collapse = Sbalit
|
Collapse = Sbalit
|
||||||
Expand = Rozbalit
|
Expand = Rozbalit
|
||||||
@ -411,3 +410,15 @@ Activation notice has been sent to %s = Oznámení o aktivaci bylo zasláno na %
|
|||||||
Your request has been forwarded to the administrator = Váš požadavek byl odeslán na administrátora
|
Your request has been forwarded to the administrator = Váš požadavek byl odeslán na administrátora
|
||||||
You will be notified by email upon activation of your new account = O aktivaci vašeho nového účtu budete informován emailem
|
You will be notified by email upon activation of your new account = O aktivaci vašeho nového účtu budete informován emailem
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -414,3 +414,11 @@ Anonymous =
|
|||||||
Activation notice has been sent to %s =
|
Activation notice has been sent to %s =
|
||||||
Your request has been forwarded to the administrator =
|
Your request has been forwarded to the administrator =
|
||||||
You will be notified by email upon activation of your new account =
|
You will be notified by email upon activation of your new account =
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -132,7 +132,6 @@ Display = Toon
|
|||||||
entries per page = berichten per pagina
|
entries per page = berichten per pagina
|
||||||
Toggle all = Toon alles
|
Toggle all = Toon alles
|
||||||
Selected entries = Geselecteerde berichten
|
Selected entries = Geselecteerde berichten
|
||||||
Enable email notifications=Automatisch e-mail aankondiging
|
|
||||||
A old entry has been updated on %s = Een ouder bericht is op %s gewijzigd
|
A old entry has been updated on %s = Een ouder bericht is op %s gewijzigd
|
||||||
Collapse = Samenvatten
|
Collapse = Samenvatten
|
||||||
Expand = Uitbreiden
|
Expand = Uitbreiden
|
||||||
@ -413,3 +412,15 @@ Anonymous = Anoniem
|
|||||||
Activation notice has been sent to %s = Activeringsbericht is gestuurd naar %s
|
Activation notice has been sent to %s = Activeringsbericht is gestuurd naar %s
|
||||||
Your request has been forwarded to the administrator = Uw verzoek is doorgestuurd naar de beheerder
|
Your request has been forwarded to the administrator = Uw verzoek is doorgestuurd naar de beheerder
|
||||||
You will be notified by email upon activation of your new account = U krijgt via email een bericht als uw account is geactiveerd.
|
You will be notified by email upon activation of your new account = U krijgt via email een bericht als uw account is geactiveerd.
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -410,3 +410,15 @@ Anonymous = Anonyme
|
|||||||
Activation notice has been sent to %s = L'avis d'activation a été envoyé à %s
|
Activation notice has been sent to %s = L'avis d'activation a été envoyé à %s
|
||||||
Your request has been forwarded to the administrator = Votre demande a été transmise à l'administrateur
|
Your request has been forwarded to the administrator = Votre demande a été transmise à l'administrateur
|
||||||
You will be notified by email upon activation of your new account = Vous serez averti(e) par courriel de l'activation de votre nouveau compte
|
You will be notified by email upon activation of your new account = Vous serez averti(e) par courriel de l'activation de votre nouveau compte
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -409,3 +409,11 @@ Anonymous = Anonym
|
|||||||
Activation notice has been sent to %s = Aktivierungsbenachrichtigung wurde an %s geschickt
|
Activation notice has been sent to %s = Aktivierungsbenachrichtigung wurde an %s geschickt
|
||||||
Your request has been forwarded to the administrator = Der Antrag wurde an den Administrator geschickt
|
Your request has been forwarded to the administrator = Der Antrag wurde an den Administrator geschickt
|
||||||
You will be notified by email upon activation of your new account = Sie werden benachrichtigt, wenn Ihr Benutzerkonto aktiviert wurde
|
You will be notified by email upon activation of your new account = Sie werden benachrichtigt, wenn Ihr Benutzerkonto aktiviert wurde
|
||||||
|
Select period = Zeitraum auswählen
|
||||||
|
Last week = Letzte Woche
|
||||||
|
Last month = Letzter Monat
|
||||||
|
Last 3 Months = Letzte 3 Monate
|
||||||
|
Last 6 Months = Letzte 6 Monate
|
||||||
|
Last Year = Letztes Jahr
|
||||||
|
Enter %s = %s eingeben
|
||||||
|
Select %s = %s auswählen
|
||||||
|
|||||||
@ -412,3 +412,11 @@ Anonymous =
|
|||||||
Activation notice has been sent to %s =
|
Activation notice has been sent to %s =
|
||||||
Your request has been forwarded to the administrator =
|
Your request has been forwarded to the administrator =
|
||||||
You will be notified by email upon activation of your new account =
|
You will be notified by email upon activation of your new account =
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -412,3 +412,11 @@ Anonymous =
|
|||||||
Activation notice has been sent to %s =
|
Activation notice has been sent to %s =
|
||||||
Your request has been forwarded to the administrator =
|
Your request has been forwarded to the administrator =
|
||||||
You will be notified by email upon activation of your new account =
|
You will be notified by email upon activation of your new account =
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -411,3 +411,15 @@ Activation notice has been sent to %s = Notificacion de activacion enviada a %s
|
|||||||
Your request has been forwarded to the administrator = Su solicitud fue enviada al administrador
|
Your request has been forwarded to the administrator = Su solicitud fue enviada al administrador
|
||||||
You will be notified by email upon activation of your new account = Sera notificado por email cuando su cuenta sea activada
|
You will be notified by email upon activation of your new account = Sera notificado por email cuando su cuenta sea activada
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -409,3 +409,15 @@ Entry %s cannot be read from logbook "%s" = Posten %s kan inte l
|
|||||||
Your request has been forwarded to the administrator = Din registrering har vidarebefordrats till ELOG administratören
|
Your request has been forwarded to the administrator = Din registrering har vidarebefordrats till ELOG administratören
|
||||||
You will be notified by email upon activation of your new account = Du kommer att få en bekräftelse per email när ditt nya användarkonto är aktiverat
|
You will be notified by email upon activation of your new account = Du kommer att få en bekräftelse per email när ditt nya användarkonto är aktiverat
|
||||||
Error: Command "<b>%s</b>" not allowed = Kommandot "<b>%s</b>" är inte tillåtet
|
Error: Command "<b>%s</b>" not allowed = Kommandot "<b>%s</b>" är inte tillåtet
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -416,3 +416,11 @@ Anonymous =
|
|||||||
Activation notice has been sent to %s =
|
Activation notice has been sent to %s =
|
||||||
Your request has been forwarded to the administrator =
|
Your request has been forwarded to the administrator =
|
||||||
You will be notified by email upon activation of your new account =
|
You will be notified by email upon activation of your new account =
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -411,3 +411,15 @@ Activation notice has been sent to %s =
|
|||||||
Your request has been forwarded to the administrator = 您的请求已经发送给管理员
|
Your request has been forwarded to the administrator = 您的请求已经发送给管理员
|
||||||
You will be notified by email upon activation of your new account = 您在新帐号激活后将会得到电子邮件通知
|
You will be notified by email upon activation of your new account = 您在新帐号激活后将会得到电子邮件通知
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
@ -411,3 +411,15 @@ Activation notice has been sent to %s = 激活通知已经送达 %s
|
|||||||
Your request has been forwarded to the administrator = 您的请求已经发送给管理员
|
Your request has been forwarded to the administrator = 您的请求已经发送给管理员
|
||||||
You will be notified by email upon activation of your new account = 您在新帐号激活后将会得到电子邮件通知
|
You will be notified by email upon activation of your new account = 您在新帐号激活后将会得到电子邮件通知
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#---- please translate following items and then remove this comment ----#
|
||||||
|
#
|
||||||
|
Select period =
|
||||||
|
Last week =
|
||||||
|
Last month =
|
||||||
|
Last 3 Months =
|
||||||
|
Last 6 Months =
|
||||||
|
Last Year =
|
||||||
|
Enter %s =
|
||||||
|
Select %s =
|
||||||
|
|||||||
54
src/elogd.c
54
src/elogd.c
@ -10,7 +10,7 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
/* Version of ELOG */
|
/* Version of ELOG */
|
||||||
#define VERSION "2.6.3"
|
#define VERSION "2.6.4"
|
||||||
char svn_revision[] = "$Id$";
|
char svn_revision[] = "$Id$";
|
||||||
|
|
||||||
/* ELOG identification */
|
/* ELOG identification */
|
||||||
@ -5714,8 +5714,7 @@ char *email_quote_table =
|
|||||||
|
|
||||||
void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
|
void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
|
||||||
{
|
{
|
||||||
int i, j, k, l, m, elcode_disabled, elcode_disabled1, escape_char, ordered_list,
|
int i, j, k, l, m, elcode_disabled, elcode_disabled1, escape_char, ordered_list, substituted;
|
||||||
substituted;
|
|
||||||
char *p, *pd, link[1000], link_text[1000], tmp[1000], attrib[1000], hattrib[1000],
|
char *p, *pd, link[1000], link_text[1000], tmp[1000], attrib[1000], hattrib[1000],
|
||||||
value[1000], subst[1000], base_url[256], param[256], *lstr;
|
value[1000], subst[1000], base_url[256], param[256], *lstr;
|
||||||
|
|
||||||
@ -6026,12 +6025,12 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
|
|||||||
j += strlen(link);
|
j += strlen(link);
|
||||||
i += strlen(pattern_list[l].pattern) - 1; // 1 gets added in for loop...
|
i += strlen(pattern_list[l].pattern) - 1; // 1 gets added in for loop...
|
||||||
}
|
}
|
||||||
} // !elcode_disabled && !elcode_disabled1
|
} // !elcode_disabled && !elcode_disabled1
|
||||||
|
|
||||||
else if (!elcode_disabled) {
|
else if (!elcode_disabled) {
|
||||||
|
|
||||||
substituted = TRUE;
|
substituted = TRUE;
|
||||||
|
|
||||||
/* simple substitution */
|
/* simple substitution */
|
||||||
strcpy(link, pattern_list[l].subst);
|
strcpy(link, pattern_list[l].subst);
|
||||||
if (strstr(link, "%s")) {
|
if (strstr(link, "%s")) {
|
||||||
@ -6045,7 +6044,7 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
|
|||||||
|
|
||||||
strcpy(return_buffer + j, link);
|
strcpy(return_buffer + j, link);
|
||||||
j += strlen(link);
|
j += strlen(link);
|
||||||
i += strlen(pattern_list[l].pattern) - 1; // 1 gets added in for loop...
|
i += strlen(pattern_list[l].pattern) - 1; // 1 gets added in for loop...
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stristr(pattern_list[l].pattern, "[code]"))
|
if (stristr(pattern_list[l].pattern, "[code]"))
|
||||||
@ -6911,7 +6910,7 @@ void show_plain_header(int size, char *file_name)
|
|||||||
void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head, BOOL rss_feed, char *cookie,
|
void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head, BOOL rss_feed, char *cookie,
|
||||||
int absolute_link)
|
int absolute_link)
|
||||||
{
|
{
|
||||||
int i, n;
|
int i, n;
|
||||||
char css[1000], str[1000], media[1000];
|
char css[1000], str[1000], media[1000];
|
||||||
char css_list[MAX_N_LIST][NAME_LENGTH];
|
char css_list[MAX_N_LIST][NAME_LENGTH];
|
||||||
|
|
||||||
@ -6939,15 +6938,15 @@ void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head,
|
|||||||
strlcat(css, "default.css", sizeof(css));
|
strlcat(css, "default.css", sizeof(css));
|
||||||
|
|
||||||
if (strchr(css, ',')) {
|
if (strchr(css, ',')) {
|
||||||
n = strbreak(css, css_list, MAX_N_LIST, ",");
|
n = strbreak(css, css_list, MAX_N_LIST, ",");
|
||||||
for (i=0 ; i<n ; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
strlcpy(str, css_list[i], sizeof(str));
|
strlcpy(str, css_list[i], sizeof(str));
|
||||||
if (strchr(str, '&')) {
|
if (strchr(str, '&')) {
|
||||||
strlcpy(media, strchr(str, '&')+1, sizeof(media));
|
strlcpy(media, strchr(str, '&') + 1, sizeof(media));
|
||||||
*strchr(str, '&') = 0;
|
*strchr(str, '&') = 0;
|
||||||
rsprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" media=\"%s\">\n", str, media);
|
rsprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" media=\"%s\">\n", str, media);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
rsprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", css);
|
rsprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", css);
|
||||||
rsprintf("<link rel=\"shortcut icon\" href=\"favicon.ico\">\n");
|
rsprintf("<link rel=\"shortcut icon\" href=\"favicon.ico\">\n");
|
||||||
@ -12000,8 +11999,7 @@ void show_config_page(LOGBOOK * lbs)
|
|||||||
if (!isparam("unm") || check_login_user(&lb_list[i], getparam("unm"))) {
|
if (!isparam("unm") || check_login_user(&lb_list[i], getparam("unm"))) {
|
||||||
|
|
||||||
/* check if emails are enabled for this logbook */
|
/* check if emails are enabled for this logbook */
|
||||||
if (!getcfg(lb_list[i].name, "Suppress email to users", str, sizeof(str)) ||
|
if (!getcfg(lb_list[i].name, "Suppress email to users", str, sizeof(str)) || atoi(str) == 0) {
|
||||||
atoi(str) == 0) {
|
|
||||||
if (email_notify[i])
|
if (email_notify[i])
|
||||||
rsprintf("<input type=checkbox checked id=\"lb%d\" name=\"sub_lb%d\" value=\"1\">\n", i, i);
|
rsprintf("<input type=checkbox checked id=\"lb%d\" name=\"sub_lb%d\" value=\"1\">\n", i, i);
|
||||||
else
|
else
|
||||||
@ -16374,7 +16372,8 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
if (strieq(list[index], loc("Date"))) {
|
if (strieq(list[index], loc("Date"))) {
|
||||||
i = isparam("last") ? atoi(getparam("last")) : 0;
|
i = isparam("last") ? atoi(getparam("last")) : 0;
|
||||||
|
|
||||||
rsprintf("<select title=\"%s\" name=last onChange=\"document.form1.submit()\">\n", loc("Select period"));
|
rsprintf("<select title=\"%s\" name=last onChange=\"document.form1.submit()\">\n",
|
||||||
|
loc("Select period"));
|
||||||
|
|
||||||
rsprintf("<option value=\"_all_\">-- %s --\n", loc("All entries"));
|
rsprintf("<option value=\"_all_\">-- %s --\n", loc("All entries"));
|
||||||
|
|
||||||
@ -16433,7 +16432,9 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
|
|
||||||
else {
|
else {
|
||||||
sprintf(str, loc("Enter %s"), list[index]);
|
sprintf(str, loc("Enter %s"), list[index]);
|
||||||
rsprintf("<input onClick=\"this.value='';\" title=\"%s\" type=text onChange=\"document.form1.submit()\"", str);
|
rsprintf
|
||||||
|
("<input onClick=\"this.value='';\" title=\"%s\" type=text onChange=\"document.form1.submit()\"",
|
||||||
|
str);
|
||||||
sprintf(str, "-- %s --", list[index]);
|
sprintf(str, "-- %s --", list[index]);
|
||||||
rsprintf(" name=\"%s\" value=\"%s\">\n", list[index],
|
rsprintf(" name=\"%s\" value=\"%s\">\n", list[index],
|
||||||
isparam(list[index]) && *getparam(list[index]) ? getparam(list[index]) : str);
|
isparam(list[index]) && *getparam(list[index]) ? getparam(list[index]) : str);
|
||||||
@ -16441,7 +16442,8 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
sprintf(str, loc("Select %s"), list[index]);
|
sprintf(str, loc("Select %s"), list[index]);
|
||||||
rsprintf("<select title=\"%s\" name=\"%s\" onChange=\"document.form1.submit()\">\n", str, list[index]);
|
rsprintf("<select title=\"%s\" name=\"%s\" onChange=\"document.form1.submit()\">\n", str,
|
||||||
|
list[index]);
|
||||||
|
|
||||||
rsprintf("<option value=\"_all_\">-- %s --\n", list[index]);
|
rsprintf("<option value=\"_all_\">-- %s --\n", list[index]);
|
||||||
|
|
||||||
@ -16979,7 +16981,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
{
|
{
|
||||||
int i, j, n, index, size, status, d1, m1, y1, d2, m2, y2, n_line, flags,
|
int i, j, n, index, size, status, d1, m1, y1, d2, m2, y2, n_line, flags,
|
||||||
current_year, current_month, current_day, printable, n_logbook,
|
current_year, current_month, current_day, printable, n_logbook,
|
||||||
n_display, reverse, numeric, n_attr_disp, total_n_msg, n_msg, search_all,
|
n_display, reverse, numeric, n_attr_disp, total_n_msg, n_msg, search_all,
|
||||||
message_id, n_page, i_start, i_stop, in_reply_to_id, page_mid, page_mid_head;
|
message_id, n_page, i_start, i_stop, in_reply_to_id, page_mid, page_mid_head;
|
||||||
char date[80], attrib[MAX_N_ATTR][NAME_LENGTH], disp_attr[MAX_N_ATTR + 4][NAME_LENGTH],
|
char date[80], attrib[MAX_N_ATTR][NAME_LENGTH], disp_attr[MAX_N_ATTR + 4][NAME_LENGTH],
|
||||||
*list, *text, *text1, in_reply_to[80], reply_to[MAX_REPLY_TO * 10],
|
*list, *text, *text1, in_reply_to[80], reply_to[MAX_REPLY_TO * 10],
|
||||||
@ -17091,7 +17093,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
|
|
||||||
/* remove remaining "_all_" or empty or "--+<attrib>+--" parameters */
|
/* remove remaining "_all_" or empty or "--+<attrib>+--" parameters */
|
||||||
strlcpy(str, _cmdline, sizeof(str));
|
strlcpy(str, _cmdline, sizeof(str));
|
||||||
found = 0;
|
found = 0;
|
||||||
for (i = 0; i < MAX_N_ATTR; i++) {
|
for (i = 0; i < MAX_N_ATTR; i++) {
|
||||||
if (isparam(attr_list[i])) {
|
if (isparam(attr_list[i])) {
|
||||||
if (strieq(getparam(attr_list[i]), "_all_")) {
|
if (strieq(getparam(attr_list[i]), "_all_")) {
|
||||||
@ -18493,7 +18495,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
strcpy(iattr, attr_list[i]);
|
strcpy(iattr, attr_list[i]);
|
||||||
for (j = 0; j < (int) strlen(iattr); j++)
|
for (j = 0; j < (int) strlen(iattr); j++)
|
||||||
/* replace special characters with "_", exclude any UTF-8 */
|
/* replace special characters with "_", exclude any UTF-8 */
|
||||||
if (!isalnum(iattr[j]) && ((unsigned char)iattr[j] < 128))
|
if (!isalnum(iattr[j]) && ((unsigned char) iattr[j] < 128))
|
||||||
iattr[j] = '_';
|
iattr[j] = '_';
|
||||||
rsprintf("\t\t<%s>", iattr);
|
rsprintf("\t\t<%s>", iattr);
|
||||||
|
|
||||||
@ -19445,7 +19447,7 @@ int add_attribute_option(LOGBOOK * lbs, char *attrname, char *attrvalue, char *c
|
|||||||
|
|
||||||
/* do not allow HTML code in value */
|
/* do not allow HTML code in value */
|
||||||
strencode2(av_encoded, attrvalue, sizeof(av_encoded));
|
strencode2(av_encoded, attrvalue, sizeof(av_encoded));
|
||||||
|
|
||||||
/* read previous contents */
|
/* read previous contents */
|
||||||
length = lseek(fh, 0, SEEK_END);
|
length = lseek(fh, 0, SEEK_END);
|
||||||
lseek(fh, 0, SEEK_SET);
|
lseek(fh, 0, SEEK_SET);
|
||||||
@ -23365,7 +23367,7 @@ void interprete(char *lbook, char *path)
|
|||||||
|
|
||||||
if (strieq(command, loc("Help"))) {
|
if (strieq(command, loc("Help"))) {
|
||||||
if (getcfg(lbs->name, "Help URL", str, sizeof(str))) {
|
if (getcfg(lbs->name, "Help URL", str, sizeof(str))) {
|
||||||
|
|
||||||
/* if URL is given, redirect */
|
/* if URL is given, redirect */
|
||||||
if (strstr(str, "http://")) {
|
if (strstr(str, "http://")) {
|
||||||
redirect(lbs, str);
|
redirect(lbs, str);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user