Index: comments.php =================================================================== RCS file: /cvsroot/gnuheter/gnuheter/comments.php,v retrieving revision 1.6 diff -u -r1.6 comments.php --- comments.php 15 Aug 2002 19:44:45 -0000 1.6 +++ comments.php 20 Aug 2002 22:32:01 -0000 @@ -317,7 +317,10 @@ echo "Tillåten HTML:
\n"; while (list($key,)= each($AllowableHTML)) echo " <".$key.">"; echo "
\n"; - if ($user) { echo " Posta anonymt
\n"; } + if ($user) { echo " 
\n"; } + + echo " 
\n"; + echo "\n" ."\n" ."\n" @@ -327,7 +330,7 @@ include('footer.php'); } -function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order, $thold, $posttype) { +function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order, $thold, $posttype, $spell) { global $mainfile,$dbhost,$dbuname,$dbpass,$dbname,$REQUEST_URI; if(address@hidden) include('header.php'); @@ -352,8 +355,8 @@ else $viewcomment = $comment; - echo format_comment_header($name,$subject,$tid,$date,"","",0); - echo format_comment_body($viewcomment,$sid,$tid,$thold,$order,$cookie[10]); + echo format_comment_header($name,($spell) ? spellcheck($subject) : $subject,$tid,$date,"","",0); + echo format_comment_body(($spell) ? spellcheck($viewcomment) : $viewcomment,$sid,$tid,$thold,$order,$cookie[10]); echo "
\n"; @@ -369,7 +372,10 @@ echo "
\n"; if ($postanon) $postanon_check = " checked"; else $postanon_check = ""; if ($user) - echo " Posta anonymt
\n"; + echo " 
\n"; + + echo " 
\n"; + echo "" ."\n" ."\n" @@ -451,7 +457,7 @@ reply($pid, $sid, $mode, $order, $thold); break; case "Preview": - replyPreview($pid, $sid, $subject, $comment, $postanon, $mode, $order, $thold, $posttype); + replyPreview($pid, $sid, $subject, $comment, $postanon, $mode, $order, $thold, $posttype, $spell); break; case "Ok!": CreateTopic($postanon, $subject, $comment, $pid, $sid, $host_name, $mode, $order, $thold, $posttype); Index: pollcomments.php =================================================================== RCS file: /cvsroot/gnuheter/gnuheter/pollcomments.php,v retrieving revision 1.5 diff -u -r1.5 pollcomments.php --- pollcomments.php 15 Aug 2002 20:31:24 -0000 1.5 +++ pollcomments.php 20 Aug 2002 22:32:02 -0000 @@ -318,7 +318,10 @@ echo "Tillåten HTML:
\n"; while (list($key,)= each($AllowableHTML)) echo " <".$key.">"; echo "
\n"; - if ($user) { echo " Posta anonymt
\n"; } + if ($user) { echo " 
\n"; } + + echo " 
\n"; + echo "\n" ."\n" ."\n" @@ -328,7 +331,7 @@ include('footer.php'); } -function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order, $thold, $posttype) { +function replyPreview ($pid, $sid, $subject, $comment, $postanon, $mode, $order, $thold, $posttype, $spell) { global $mainfile,$dbhost,$dbuname,$dbpass,$dbname,$REQUEST_URI; if(address@hidden) include('header.php'); @@ -353,8 +356,9 @@ else $viewcomment = $comment; - echo format_comment_header($name,$subject,$tid,$date,"","",0); - echo format_comment_body($viewcomment,$sid,$tid,$thold,$order,$cookie[10]); + + echo format_comment_header($name,($spell) ? spellcheck($subject) : $subject, $tid,$date,"","",0); + echo format_comment_body(($spell) ? spellcheck($viewcomment) : $viewcomment, $sid,$tid,$thold,$order,$cookie[10]); echo "
\n"; @@ -370,7 +374,10 @@ echo "
\n"; if ($postanon) $postanon_check = " checked"; else $postanon_check = ""; if ($user) - echo " Posta anonymt
\n"; + echo " 
\n"; + + echo " 
\n"; + echo "" ."\n" ."\n" @@ -455,7 +462,7 @@ reply($pid, $pollID, $mode, $order, $thold); break; case "Preview": - replyPreview($pid, $pollID, $subject, $comment, $postanon, $mode, $order, $thold, $posttype); + replyPreview($pid, $pollID, $subject, $comment, $postanon, $mode, $order, $thold, $posttype, $spell); break; case "Ok!": CreateTopic($postanon, $subject, $comment, $pid, $pollID, $host_name, $mode, $order, $thold, $posttype);