* added customFlags to infoBox
Misc:
 * moved no-cache header to separate utility function
 * pages may now require the user to be authed as he can be authed AND
   have no userGroups simultaneously
 * minor changes to announcements
This commit is contained in:
Sarjuuk
2014-11-09 19:04:59 +01:00
parent aeda3df39e
commit 9b281f45cb
6 changed files with 78 additions and 58 deletions

View File

@@ -1715,6 +1715,15 @@ class Util
return [$result, $jsGlobals];
}
public static function sendNoCacheHeader()
{
header('Expires: Sat, 01 Jan 2000 01:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
}
}
?>