Implemented "Logout to URL"
This commit is contained in:
@@ -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 = <URL></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
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user