From: <ok...@us...> - 2003-01-07 21:33:12
|
Update of /cvsroot/xoops/xoops2/kernel/object/object In directory sc8-pr-cvs1:/tmp/cvs-serv14503/kernel/object/object Modified Files: object.php Log Message: added global comments feature Index: object.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/object/object/object.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** object.php 5 Jan 2003 19:56:13 -0000 1.6 --- object.php 7 Jan 2003 21:32:07 -0000 1.7 *************** *** 207,215 **** case 1: $ts =& MyTextSanitizer::getInstance(); ! $html = (!isset($this->vars['nohtml']['value']) || intval($this->vars['nohtml']['value']) > 0) ? 0 : 1; ! $xcode = (!empty($this->vars['noxcode']['value'])) ? 0 : 1; ! $smiley = (!empty($this->vars['nosmiley']['value'])) ? 0 : 1; ! $image = (!empty($this->vars['noimage']['value'])) ? 0 : 1; ! $ret =& $ts->displayTarea($ret, $html, $smiley, $xcode, $image); break 1; case 2: --- 207,216 ---- case 1: $ts =& MyTextSanitizer::getInstance(); ! $html = !empty($this->vars['dohtml']['value']) ? 1 : 0; ! $xcode = (!isset($this->vars['doxcode']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; ! $smiley = (!isset($this->vars['dosmiley']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; ! $image = (!isset($this->vars['doimage']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; ! $br = (!isset($this->vars['dobr']['value']) || $this->vars['dobr']['value'] == 1) ? 1 : 0; ! $ret =& $ts->displayTarea($ret, $html, $smiley, $xcode, $image, $br); break 1; case 2: *************** *** 218,226 **** case 3: $ts =& MyTextSanitizer::getInstance(); ! $html = (!isset($this->vars['nohtml']['value']) || intval($this->vars['nohtml']['value']) > 0) ? 0 : 1; ! $xcode = (!empty($this->vars['noxcode']['value'])) ? 0 : 1; ! $smiley = (!empty($this->vars['nosmiley']['value'])) ? 0 : 1; ! $image = (!empty($this->vars['noimage']['value'])) ? 0 : 1; ! $ret =& $ts->previewTarea($ret, $html, $smiley, $xcode, $image); break 1; case 4: --- 219,228 ---- case 3: $ts =& MyTextSanitizer::getInstance(); ! $html = !empty($this->vars['dohtml']['value']) ? 1 : 0; ! $xcode = (!isset($this->vars['doxcode']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; ! $smiley = (!isset($this->vars['dosmiley']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; ! $image = (!isset($this->vars['doimage']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; ! $br = (!isset($this->vars['dobr']['value']) || $this->vars['dobr']['value'] == 1) ? 1 : 0; ! $ret =& $ts->previewTarea($ret, $html, $smiley, $xcode, $image, $br); break 1; case 4: |