Implemented "Logout to URL"

This commit is contained in:
2015-06-09 16:09:14 +02:00
parent 569ab71cf0
commit 94e7868c2e
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -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
<b>0</b>.
</li>
<li>
<b><code>Logout to URL = &lt;URL&gt;</code></b><br>
If this URL is set, the "<i>Logout</i>" operation takes you to
a specific web page specified in the URL.
</li>
<li>
<b><code>List after submit = 0|1</code></b><br>
If this flag is <b>1</b>, the list page is shown after the
+3
View File
@@ -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"));