home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / wiki / lib / headers.php < prev    next >
Encoding:
PHP Script  |  2004-03-08  |  988 b   |  25 lines

  1. <?php
  2. // $Id: headers.php,v 1.1 2004/01/12 22:14:05 comsubvie Exp $
  3.  
  4. // Generate headers saying not to assume this page won't change.
  5. // The page's last-edited time stamp is currently not used.  This caused
  6. //   problems with certain browser settings; especially with pages containing
  7. //   category lists, like RecentChanges.  Although the page itself didn't
  8. //   change, the category list did.
  9. function gen_headers($timestamp)
  10. {
  11. //  $time = mktime(substr($timestamp, 8, 2),  substr($timestamp, 10, 2),
  12. //                 substr($timestamp, 12, 2), substr($timestamp, 4, 2),
  13. //                 substr($timestamp, 6, 2),  substr($timestamp, 0, 4));
  14. //  $mod = gmdate("D, d M Y H:i:s", $time);
  15.  
  16. // Next three lines are commented out since headers are written from Group-Office framework
  17. //  $now = gmdate("D, d M Y H:i:s");
  18. //  header("Expires: $now GMT");
  19. //  header("Last-Modified: $now GMT");
  20.  
  21. //  header("Cache-Control: no-cache, must-revalidate");
  22. //  header("Pragma: no-cache");
  23. }
  24. ?>
  25.