Update of /cvsroot/xoops/xoops-current/html/modules/xoopspoll
In directory usw-pr-cvs1:/tmp/cvs-serv31961
Modified Files:
postcomment.php
Log Message:
no message
Index: postcomment.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/modules/xoopspoll/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:14:01 -0000 1.1.1.1
--- postcomment.php 26 Sep 2002 17:31:08 -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 ****
$pollcomment->setVar("subject", $HTTP_POST_VARS['subject']);
$pollcomment->setVar("comment", $HTTP_POST_VARS['message']);
! $pollcomment->setVar("nohtml", $HTTP_POST_VARS['nohtml']);
$pollcomment->setVar("nosmiley", $HTTP_POST_VARS['nosmiley']);
$pollcomment->setVar("icon", $HTTP_POST_VARS['icon']);
--- 64,68 ----
$pollcomment->setVar("subject", $HTTP_POST_VARS['subject']);
$pollcomment->setVar("comment", $HTTP_POST_VARS['message']);
! $pollcomment->setVar("nohtml", 1);
$pollcomment->setVar("nosmiley", $HTTP_POST_VARS['nosmiley']);
$pollcomment->setVar("icon", $HTTP_POST_VARS['icon']);
|