From 94e7868c2e28a07a4088425af54dc60b33ee5cd3 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 9 Jun 2015 16:09:14 +0200 Subject: [PATCH] Implemented "Logout to URL" --- doc/config.html | 5 +++++ src/elogd.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/doc/config.html b/doc/config.html index e94af5b8..48060644 100755 --- a/doc/config.html +++ b/doc/config.html @@ -2574,6 +2574,11 @@ Options Location = Main Building{a}, New Building{b}, Old Building{c} to the logbook selection page instead to the login page. The default is 0. +
  • + Logout to URL = <URL>
    + If this URL is set, the "Logout" operation takes you to + a specific web page specified in the URL. +
  • List after submit = 0|1
    If this flag is 1, the list page is shown after the diff --git a/src/elogd.c b/src/elogd.c index ee1bfaad..cb6735ad 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -28071,6 +28071,9 @@ void interprete(char *lbook, char *path) if (getcfg(lbs->name, "Logout to main", str, sizeof(str)) && atoi(str) == 1) { sprintf(str, "../"); setparam("redir", str); + } else { + if (getcfg(lbs->name, "Logout to URL", str, sizeof(str))) + setparam("redir", str); } set_sid_cookie(lbs, "", ""); sid_remove(getparam("sid"));