summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index a7a17f9b5..18546ca18 100644
--- a/functions.php
+++ b/functions.php
@@ -839,6 +839,17 @@
return true;
}
+ function basic_nosid_redirect_check() {
+ if (!SINGLE_USER_MODE) {
+ if (!$_COOKIE["ttrss_sid"]) {
+ $redirect_uri = get_login_redirect();
+ $return_to = preg_replace('/.*?\//', '', $_SERVER["REQUEST_URI"]);
+ header("Location: $redirect_uri?rt=$return_to");
+ exit;
+ }
+ }
+ }
+
function login_sequence($link) {
if (!SINGLE_USER_MODE) {