diff options
author | deva <deva> | 2008-10-26 20:53:16 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-26 20:53:16 +0000 |
commit | 3b5656db543462ec1f126d0d97b1ee1ba25c782e (patch) | |
tree | e85f52b8a361dffa3712baebc08a4000effc3f5c /forum/htdocs | |
parent | d2b6d71dfc8f353d4b56f1b76552f6897493bb6d (diff) |
Added no-cache pragma. Fixed indentation in forum code.
Diffstat (limited to 'forum/htdocs')
-rw-r--r-- | forum/htdocs/index.php | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php index 163537c..23b9d36 100644 --- a/forum/htdocs/index.php +++ b/forum/htdocs/index.php @@ -1,5 +1,6 @@ <?php header("Content-Type: text/html; charset=UTF-8"); +session_cache_limiter('nocache'); include_once("config.php"); @@ -28,26 +29,25 @@ include_once($UTIL_DIR . "/clientinfo.php"); <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<title><?php echo $FORUM_TITLE; ?></title> -<meta name="MSSmartTagsPreventParsing" content="true"/> -<meta http-equiv="Content-Type" content="text/html"/> -<link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/> -<link rel="stylesheet" type="text/css" href="forum.css"/> -<?php if($mode == "editor") {?><script language="javascript" src="lib.js" type="text/javascript"></script><?php } ?> -</head> -<body> -<div class="menu"> - <a href="?mode=forum">Forum</a> - <a href="?mode=filehandler">Filehandler</a> - <a href="?mode=calendar">Calendar</a> - <a href="?mode=addressbook">Addressbook</a> - <a href="?mode=profile">Profile</a><?php - if($current_user->uid == 0) { -?> <a href="?mode=diagnostics">Diagnostics</a><?php - } -?></div> - + <head> + <title><?php echo $FORUM_TITLE; ?></title> + <meta name="MSSmartTagsPreventParsing" content="true"/> + <meta http-equiv="Content-Type" content="text/html"/> + <meta http-equiv="Pragma" content="no-cache"> + <meta http-equiv="Expires" content="-1"> + <link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/> + <link rel="stylesheet" type="text/css" href="forum.css"/> +<?php if($mode == "editor") {?> <script language="javascript" src="lib.js" type="text/javascript"></script><?php } ?> + </head> + <body> + <div class="menu"> + <a href="?mode=forum">Forum</a> + <a href="?mode=filehandler">Filehandler</a> + <a href="?mode=calendar">Calendar</a> + <a href="?mode=addressbook">Addressbook</a> + <a href="?mode=profile">Profile</a> +<?php if($current_user->uid == 0) {?> <a href="?mode=diagnostics">Diagnostics</a><?php } ?> + </div> <?php // Globals: @@ -57,7 +57,7 @@ include_once($UTIL_DIR . "/clientinfo.php"); // $task if($current_user) { - echo "<p>Logged in as: " . $current_user->name . " - <a href=\"?action=logout\">Logout</a></p>"; + echo " <p>Logged in as: " . $current_user->name . " - <a href=\"?action=logout\">Logout</a></p>\n"; switch($mode) { case "profile": @@ -95,13 +95,13 @@ if($current_user) { } } else { ?> -<form action="?action=login" method="post"> -<p>UserID: <input name="current_username"/></p> -<p>Password: <input name="current_password" type="password"/></p> -<p><button type="submit">Login</button></p> -</form> + <form action="?action=login" method="post"> + <p>UserID: <input name="current_username"/></p> + <p>Password: <input name="current_password" type="password"/></p> + <p><button type="submit">Login</button></p> + </form> <?php } ?> -</body> + </body> </html> |