From 3b21c05889717411e44101f4ccadb13740f29066 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Fri, 16 Apr 2021 18:23:13 -0700 Subject: [PATCH] Change link on page after posting to return to previous location --- Rocksolid_Light/rocksolid/article-flat.php | 5 +++++ Rocksolid_Light/rocksolid/article.php | 4 ++++ Rocksolid_Light/rocksolid/post.php | 4 ++-- Rocksolid_Light/rocksolid/thread.php | 2 ++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rocksolid/article-flat.php b/Rocksolid_Light/rocksolid/article-flat.php index d094349..3a1b14a 100644 --- a/Rocksolid_Light/rocksolid/article-flat.php +++ b/Rocksolid_Light/rocksolid/article-flat.php @@ -40,6 +40,11 @@ exit(0); } + $location = $_SERVER['REQUEST_URI'].$_SERVER['REQUEST_STRING']; + preg_match('/id=(.*)&/', $location, $hash); + $_SESSION['return_page'] = $location.'#'.$hash[1]; + + if(isset($frames_on) && $frames_on === true) { ?>