From: <on...@us...> - 2002-09-26 17:30:25
|
Update of /cvsroot/xoops/xoops-current/html/modules/news In directory usw-pr-cvs1:/tmp/cvs-serv31588 Modified Files: postcomment.php Log Message: no message Index: postcomment.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/news/postcomment.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** postcomment.php 15 Jul 2002 08:13:36 -0000 1.1.1.1 --- postcomment.php 26 Sep 2002 17:30:23 -0000 1.2 *************** *** 8,24 **** $myts =& MyTextSanitizer::getInstance(); $p_subject = $myts->makeTboxData4Preview($HTTP_POST_VARS['subject']); ! if ( $HTTP_POST_VARS['nosmiley'] == 1 && $HTTP_POST_VARS['nohtml'] == 1 ) { $p_comment = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'],0,0,1); - } elseif ( $HTTP_POST_VARS['nohtml'] == 1 ) { - $p_comment = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'],0,1,1); - } elseif ( $HTTP_POST_VARS['nosmiley'] == 1 ) { - $p_comment = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'],1,0,1); } else { ! $p_comment = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'],1,1,1); } themecenterposts($p_subject,$p_comment); $icon = $HTTP_POST_VARS['icon']; $noname = $HTTP_POST_VARS['noname']; ! $nohtml = $HTTP_POST_VARS['nohtml']; $nosmiley = $HTTP_POST_VARS['nosmiley']; $pid = $HTTP_POST_VARS['pid']; --- 8,20 ---- $myts =& MyTextSanitizer::getInstance(); $p_subject = $myts->makeTboxData4Preview($HTTP_POST_VARS['subject']); ! if ( $HTTP_POST_VARS['nosmiley'] == 1 ) { $p_comment = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'],0,0,1); } else { ! $p_comment = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'],0,1,1); } themecenterposts($p_subject,$p_comment); $icon = $HTTP_POST_VARS['icon']; $noname = $HTTP_POST_VARS['noname']; ! $nohtml = 1; $nosmiley = $HTTP_POST_VARS['nosmiley']; $pid = $HTTP_POST_VARS['pid']; *************** *** 68,72 **** $artcomment->setVar("subject", $HTTP_POST_VARS['subject']); $artcomment->setVar("comment", $HTTP_POST_VARS['message']); ! $artcomment->setVar("nohtml", $HTTP_POST_VARS['nohtml']); $artcomment->setVar("nosmiley", $HTTP_POST_VARS['nosmiley']); $artcomment->setVar("icon", $HTTP_POST_VARS['icon']); --- 64,68 ---- $artcomment->setVar("subject", $HTTP_POST_VARS['subject']); $artcomment->setVar("comment", $HTTP_POST_VARS['message']); ! $artcomment->setVar("nohtml", 1); $artcomment->setVar("nosmiley", $HTTP_POST_VARS['nosmiley']); $artcomment->setVar("icon", $HTTP_POST_VARS['icon']); |