mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Restructured demo logbook
This commit is contained in:
parent
a6ae126a44
commit
f73cdf9887
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,7 +7,7 @@ elog
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Logbook generated files
|
# Logbook generated files
|
||||||
logbooks/*
|
NT/Debug/
|
||||||
locext
|
locext
|
||||||
git-revision.h
|
git-revision.h
|
||||||
*.tlog
|
*.tlog
|
||||||
@ -16,5 +16,4 @@ git-revision.h
|
|||||||
*.obj
|
*.obj
|
||||||
*.sdf
|
*.sdf
|
||||||
*.suo
|
*.suo
|
||||||
NT/Debug/
|
|
||||||
*.user
|
*.user
|
||||||
|
|||||||
0
logbooks/demo/011108a.log → logbooks/demo/2001/011108a.log
Executable file → Normal file
0
logbooks/demo/011108a.log → logbooks/demo/2001/011108a.log
Executable file → Normal file
@ -26577,7 +26577,7 @@ void show_uploader_json(LOGBOOK *lbs)
|
|||||||
{
|
{
|
||||||
char charset[256];
|
char charset[256];
|
||||||
char filename[256], thumbname[256], attchname[256], subdir[256];
|
char filename[256], thumbname[256], attchname[256], subdir[256];
|
||||||
int i, j;
|
int i, j, attch_count;
|
||||||
|
|
||||||
// maximum number of files that can be uploaded this way (drag and drop into the editor)
|
// maximum number of files that can be uploaded this way (drag and drop into the editor)
|
||||||
const long MAX_FILE_COUNT = 100;
|
const long MAX_FILE_COUNT = 100;
|
||||||
@ -26595,7 +26595,7 @@ void show_uploader_json(LOGBOOK *lbs)
|
|||||||
strcpy(charset, DEFAULT_HTTP_CHARSET);
|
strcpy(charset, DEFAULT_HTTP_CHARSET);
|
||||||
rsprintf("Content-Type: application/json;charset=%s\r\n\r\n", charset);
|
rsprintf("Content-Type: application/json;charset=%s\r\n\r\n", charset);
|
||||||
|
|
||||||
long attch_count = strtol(getparam("drop-count"), NULL, 10);
|
attch_count = strtol(getparam("drop-count"), NULL, 10);
|
||||||
|
|
||||||
// limit the number of files that can be uploaded
|
// limit the number of files that can be uploaded
|
||||||
if(attch_count > MAX_FILE_COUNT) {
|
if(attch_count > MAX_FILE_COUNT) {
|
||||||
@ -26673,7 +26673,7 @@ void interprete(char *lbook, char *path)
|
|||||||
edit_id[80], file_name[256], command[256], enc_path[256], dec_path[256], uname[80],
|
edit_id[80], file_name[256], command[256], enc_path[256], dec_path[256], uname[80],
|
||||||
full_name[256], user_email[256], logbook[256], logbook_enc[256], *experiment,
|
full_name[256], user_email[256], logbook[256], logbook_enc[256], *experiment,
|
||||||
group[256], css[256], *pfile, attachment[MAX_PATH_LENGTH], str3[NAME_LENGTH],
|
group[256], css[256], *pfile, attachment[MAX_PATH_LENGTH], str3[NAME_LENGTH],
|
||||||
thumb_name[256], sid[32], error_str[256], subdir[256];
|
thumb_name[256], sid[32], error_str[256], subdir[256], *s;
|
||||||
LOGBOOK *lbs;
|
LOGBOOK *lbs;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
@ -26703,7 +26703,7 @@ void interprete(char *lbook, char *path)
|
|||||||
rsputs(loc(getparam("value")));
|
rsputs(loc(getparam("value")));
|
||||||
|
|
||||||
/* dummy strings for JS-only translations */
|
/* dummy strings for JS-only translations */
|
||||||
char *s = loc("Drop attachments here...");
|
s = loc("Drop attachments here...");
|
||||||
s = loc("Insert Timestamp");
|
s = loc("Insert Timestamp");
|
||||||
if (s)
|
if (s)
|
||||||
s = NULL; // avoid compiler warning
|
s = NULL; // avoid compiler warning
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user