/[gnuheter]/gnuheter/comments.php
ViewVC logotype

Diff of /gnuheter/comments.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by aron, Sat Nov 30 17:27:09 2002 UTC revision 1.17 by aron, Sat Nov 30 18:14:08 2002 UTC
# Line 462  function CreateTopic ($medsig, $postanon Line 462  function CreateTopic ($medsig, $postanon
462                  list($troll) = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM comments WHERE (score=-1) AND (host_name='$ip') AND (TO_DAYS(NOW()) - TO_DAYS(date) < 3)"));                  list($troll) = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM comments WHERE (score=-1) AND (host_name='$ip') AND (TO_DAYS(NOW()) - TO_DAYS(date) < 3)"));
463          }          }
464          if ((!$tia) && ($fake == 1) && ($troll < 6)) {          if ((!$tia) && ($fake == 1) && ($troll < 6)) {
465                  mysql_query("INSERT INTO comments VALUES (NULL, '$pid', '$sid', '$typ', now(), '$name', '$email', '$url', '$ip', '$subject', '$comment', '$score', '0')");                  mysql_query("INSERT INTO comments (pid, sid, typ, date, name, email, url, host_name, subject, comment, score, reason) VALUES ('$pid', '$sid', '$typ', now(), '$name', '$email', '$url', '$ip', '$subject', '$comment', '$score', '0')");
466          } else {          } else {
467                  mysql_query("UNLOCK TABLES");                  mysql_query("UNLOCK TABLES");
468                  include('header.php');                  include('header.php');

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26