Commit b260b2bc authored by natrak's avatar natrak
Browse files

Fixed some old cookiedecode() remainders.

parent 48141624
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
dbconnect(); dbconnect();
if ($save) { if ($save) {
cookiedecode($user);
mysql_query("UPDATE testusers SET umode='$mode', uorder='$order', thold='$thold' where id='$user->id'"); mysql_query("UPDATE testusers SET umode='$mode', uorder='$order', thold='$thold' where id='$user->id'");
$user->update(); $user->update();
} }
...@@ -24,7 +23,6 @@ ...@@ -24,7 +23,6 @@
$theme->article($aid, $informant, $time, stripslashes($subject), $department, stripslashes($abstract), stripslashes($comments), stripslashes($article), $reply); $theme->article($aid, $informant, $time, stripslashes($subject), $department, stripslashes($abstract), stripslashes($comments), stripslashes($article), $reply);
cookiedecode($user);
if ($mode != "nocomments") include "comments.php"; if ($mode != "nocomments") include "comments.php";
$theme->footer(); $theme->footer();
......
...@@ -24,7 +24,6 @@ function displayKids ($tid, $mode, $order = 0, $thold = 0, $level = 0, $dummy = ...@@ -24,7 +24,6 @@ function displayKids ($tid, $mode, $order = 0, $thold = 0, $level = 0, $dummy =
global $user, $theme; global $user, $theme;
include "config.inc"; include "config.inc";
$comments = 0; $comments = 0;
cookiedecode($user);
$result = mysql_query("SELECT tid, pid, sid, date, name, email, url, host_name, subject, comment, score, reason FROM comments WHERE pid = $tid ORDER BY date, tid"); $result = mysql_query("SELECT tid, pid, sid, date, name, email, url, host_name, subject, comment, score, reason FROM comments WHERE pid = $tid ORDER BY date, tid");
...@@ -125,7 +124,6 @@ function displayTopic ($sid, $pid = 0, $tid = 0, $mode = "threaded", $order = 0, ...@@ -125,7 +124,6 @@ function displayTopic ($sid, $pid = 0, $tid = 0, $mode = "threaded", $order = 0,
dbconnect(); dbconnect();
$count_times = 0; $count_times = 0;
cookiedecode($user);
$q = "SELECT tid, pid, sid, date, name, email, url, host_name, subject, comment, score, reason FROM comments WHERE sid = $sid AND pid = $pid"; $q = "SELECT tid, pid, sid, date, name, email, url, host_name, subject, comment, score, reason FROM comments WHERE sid = $sid AND pid = $pid";
...@@ -227,7 +225,6 @@ function reply($pid, $sid, $mode, $order, $thold) { ...@@ -227,7 +225,6 @@ function reply($pid, $sid, $mode, $order, $thold) {
echo "<B>Your name:</B><BR> "; echo "<B>Your name:</B><BR> ";
if ($user) { if ($user) {
cookiedecode($user);
echo "<A HREF=\"account.php\">$user->userid</A> &nbsp; &nbsp; <FONT SIZE=\"2\">[ <A HREF=\"account.php?op=logout\">logout</A> ]</FONT>"; echo "<A HREF=\"account.php\">$user->userid</A> &nbsp; &nbsp; <FONT SIZE=\"2\">[ <A HREF=\"account.php?op=logout\">logout</A> ]</FONT>";
} }
else { else {
...@@ -272,7 +269,6 @@ function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order, ...@@ -272,7 +269,6 @@ function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order,
global $user, $bgcolor1, $bgcolor2; global $user, $bgcolor1, $bgcolor2;
cookiedecode($user);
$subject = stripslashes($subject); $subject = stripslashes($subject);
$comment = stripslashes($comment); $comment = stripslashes($comment);
...@@ -303,7 +299,6 @@ function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order, ...@@ -303,7 +299,6 @@ function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order,
echo "<B>Your name:</B><BR> "; echo "<B>Your name:</B><BR> ";
if ($user) { if ($user) {
cookiedecode($user);
echo "<A HREF=\"account.php\">$user->userid</A> &nbsp; &nbsp; <FONT SIZE=\"2\">[ <A HREF=\"account.php?op=logout\">logout</A> ]</FONT>"; echo "<A HREF=\"account.php\">$user->userid</A> &nbsp; &nbsp; <FONT SIZE=\"2\">[ <A HREF=\"account.php?op=logout\">logout</A> ]</FONT>";
} else { } else {
echo "$anonymous"; echo "$anonymous";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment