20 if (!defined(
'XOOPS_ROOT_PATH') || !is_object(
$xoopsModule)) {
21 die(
'Restricted access');
31 include_once
$GLOBALS[
'xoops']->path(
'include/comment_constants.php');
58 $icons_radio->addOption($iconfile,
'<img src="' . XOOPS_URL .
'/images/subject/' . $iconfile .
'" alt="" />');
63 if ( class_exists(
'XoopsFormEditor' ) ) {
83 $noname = !empty($noname) ? 1 : 0;
85 $noname_checkbox->addOption(1,
_POSTANON);
92 include_once
$GLOBALS[
'xoops']->path(
'include/comment_constants.php');
94 $status_select->addOptionArray(array(
98 $cform->addElement($status_select);
101 if ( isset(
$editor ) && in_array(
$editor, array(
'textarea',
'dhtmltextarea' ) ) ) {
108 if ( isset(
$editor ) && in_array(
$editor, array(
'textarea',
'dhtmltextarea' ) ) ) {
117 if ( isset(
$editor ) && in_array(
$editor, array(
'textarea',
'dhtmltextarea' ) ) ) {
122 $cform->addElement(
new xoopsFormHidden(
'dohtml', 1 ) );
123 $cform->addElement(
new xoopsFormHidden(
'dobr', 0 ) );
143 if (isset(
$_POST[$extra_param])) {
144 $hidden_value =
$myts->stripSlashesGPC(
$_POST[$extra_param]);
145 }
else if (isset(
$_GET[$extra_param])) {
146 $hidden_value =
$myts->stripSlashesGPC(
$_GET[$extra_param]);