Browse code

Filtered page number link to prevent further maniuplation. Also, provided a way to have the upload user log out, clearing the session cookie.

Clarissa Walker authored on 2015/09/14 07:49:45
Showing 1 changed files
... ...
@@ -109,6 +109,12 @@ if ($hiddentracker == true)
109 109
 	echo "Hello, <i>" . $_SESSION["username"] . "</i><br>";
110 110
 	echo "<a href=\"authenticate.php?status=logout\"><img src=\"images/logout.png\" border=\"0\" class=\"icon\" alt=\"Logout\" title=\"Logout\" /></a><a href=\"authenticate.php?status=logout\">Logout</a>";
111 111
 }
112
+
113
+session_start();
114
+if ($_SESSION['upload_logged_in'])
115
+{
116
+	echo "<a href=\"authenticate.php?status=logout\"><img src=\"images/logout.png\" border=\"0\" class=\"icon\" alt=\"Logout\" title=\"Logout\" /></a><a href=\"authenticate.php?status=logout\">Logout</a>";
117
+}
112 118
 ?>
113 119
 </td>
114 120
 <td align="center">