Mercurial > hg > fapweb
comparison index.php @ 5:76c3b89d7b11
Improve voting, clean up the code, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 05 Dec 2012 08:08:58 +0200 |
parents | 934ab7d8c244 |
children | 4c5f651aa107 |
comparison
equal
deleted
inserted
replaced
4:934ab7d8c244 | 5:76c3b89d7b11 |
---|---|
10 exit; | 10 exit; |
11 } | 11 } |
12 | 12 |
13 if (isset($_SERVER["REQUEST_URI"]) && | 13 if (isset($_SERVER["REQUEST_URI"]) && |
14 array_key_exists($_SERVER["REQUEST_URI"], $securePages)) | 14 array_key_exists($_SERVER["REQUEST_URI"], $securePages)) |
15 { | 15 stSetupCacheControl(); |
16 header("Cache-Control: private"); | |
17 header("Cache-Control: must-revalidate"); | |
18 header("Cache-Control: ".($securePages[$_SERVER["REQUEST_URI"]] ? "no-store" : "no-cache")); | |
19 } | |
20 | 16 |
21 printPageHeader($pageTitle, | 17 printPageHeader($pageTitle, |
22 " <meta http-equiv=\"Pragma\" content=\"no-cache\" />"); | 18 " <meta http-equiv=\"Pragma\" content=\"no-cache\" />"); |
23 | 19 |
24 if (!stConnectSQLDB()) | 20 if (!stConnectSQLDB()) |