diff --git a/Rocksolid_Light/rocksolid/article-flat.php b/Rocksolid_Light/rocksolid/article-flat.php index 70aa81e..52633a1 100644 --- a/Rocksolid_Light/rocksolid/article-flat.php +++ b/Rocksolid_Light/rocksolid/article-flat.php @@ -1,5 +1,9 @@ 60) { + $_SESSION['last_access'] = time(); +} + header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT"); header("Cache-Control: max-age=100"); header("Pragma: cache"); diff --git a/Rocksolid_Light/rocksolid/index.php b/Rocksolid_Light/rocksolid/index.php index 24a139d..8b40840 100644 --- a/Rocksolid_Light/rocksolid/index.php +++ b/Rocksolid_Light/rocksolid/index.php @@ -1,5 +1,8 @@ 60) { + $_SESSION['last_access'] = time(); +} $_SESSION['isframed'] = 1; diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php index 3c9d561..f7cb5c0 100644 --- a/Rocksolid_Light/rocksolid/overboard.php +++ b/Rocksolid_Light/rocksolid/overboard.php @@ -1,5 +1,9 @@ 60) { + $_SESSION['last_access'] = time(); +} + header("Expires: " . gmdate("D, d M Y H:i:s", time() + (120)) . " GMT"); header("Cache-Control: max-age=120"); header("Pragma: cache"); diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index b024845..a66eb93 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -23,6 +23,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ session_start(); +if (! isset($_SESSION['last_access']) || (time() - $_SESSION['last_access']) > 60) { + $_SESSION['last_access'] = time(); +} + include "config.inc.php"; $CONFIG = include ($config_file); $logfile = $logdir . '/post.log'; @@ -44,7 +48,7 @@ if ($ip_pass && $_SESSION['pass']) { } else { $logged_in = false; } -if($CONFIG['anonuser'] == '1') { +if ($CONFIG['anonuser'] == '1') { $logged_in = false; } // This will log user post info (group and username) @@ -394,9 +398,9 @@ if ($show == 1) { 60) { + $_SESSION['last_access'] = time(); +} + header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT"); header("Cache-Control: max-age=100"); header("Pragma: cache");