[or-cvs] r16008: (ticket:108) clearing session when logo clicked (torstatus/trunk/web)
kasimir at seul.org
kasimir at seul.org
Thu Jul 17 05:07:28 UTC 2008
Author: kasimir
Date: 2008-07-17 01:07:27 -0400 (Thu, 17 Jul 2008)
New Revision: 16008
Modified:
torstatus/trunk/web/index.php
Log:
(ticket:108) clearing session when logo clicked
Modified: torstatus/trunk/web/index.php
===================================================================
--- torstatus/trunk/web/index.php 2008-07-17 04:49:10 UTC (rev 16007)
+++ torstatus/trunk/web/index.php 2008-07-17 05:07:27 UTC (rev 16008)
@@ -36,6 +36,13 @@
$CurrentResultSet = 0;
$RowCounter = 0;
+// Clear the session if requested
+if ($_REQUEST['clear'])
+{
+ session_destroy();
+ session_start();
+}
+
// Determine whether or not SSL is being used
if ($DetermineUsingSSL == 1)
{
@@ -2161,7 +2168,7 @@
<body>
<div class="topbar" id="topbar"><br/>
<table width="100%"><tr><td style="vertical-align: bottom;">
-<a href="/?CSInput=" class="logoimage"><img src="img/logo.png" alt="TorStatus" class="topbarlogo"/></a>
+<a href="/?clear=clear" class="logoimage"><img src="img/logo.png" alt="TorStatus" class="topbarlogo"/></a>
<span class="logotext"><?php echo $TorNetworkStatus_Version; ?><?php if ($UsingSSL == 1) { ?> - Encrypted connection<?php } elseif ($AllowSSL) { ?> - <a href="<?php echo $SSLLink ?>" class="plain">Use an encrypted connection <b>(recommended)</b></a><?php } ?></span>
</td><td style="vertical-align: bottom; text-align: right;">
<form action="<?php echo $Self; ?>" method="post" name="search">
More information about the tor-commits
mailing list