@@ 449-457 (lines=9) @@ | ||
446 | case XOBJ_DTYPE_TXTAREA: |
|
447 | switch (strtolower($format)) { |
|
448 | case 's': |
|
449 | case 'show': |
|
450 | $html = !empty($this->vars['dohtml']['value']) ? 1 : 0; |
|
451 | $xcode = (!isset($this->vars['doxcode']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; |
|
452 | $smiley = (!isset($this->vars['dosmiley']['value']) || $this->vars['dosmiley']['value'] == 1) ? 1 : 0; |
|
453 | $image = (!isset($this->vars['doimage']['value']) || $this->vars['doimage']['value'] == 1) ? 1 : 0; |
|
454 | $br = (!isset($this->vars['dobr']['value']) || $this->vars['dobr']['value'] == 1) ? 1 : 0; |
|
455 | ||
456 | return $ts->displayTarea($ret, $html, $smiley, $xcode, $image, $br); |
|
457 | break 1; |
|
458 | case 'e': |
|
459 | case 'edit': |
|
460 | return htmlspecialchars($ret, ENT_QUOTES); |
|
@@ 463-471 (lines=9) @@ | ||
460 | return htmlspecialchars($ret, ENT_QUOTES); |
|
461 | break 1; |
|
462 | case 'p': |
|
463 | case 'preview': |
|
464 | $html = !empty($this->vars['dohtml']['value']) ? 1 : 0; |
|
465 | $xcode = (!isset($this->vars['doxcode']['value']) || $this->vars['doxcode']['value'] == 1) ? 1 : 0; |
|
466 | $smiley = (!isset($this->vars['dosmiley']['value']) || $this->vars['dosmiley']['value'] == 1) ? 1 : 0; |
|
467 | $image = (!isset($this->vars['doimage']['value']) || $this->vars['doimage']['value'] == 1) ? 1 : 0; |
|
468 | $br = (!isset($this->vars['dobr']['value']) || $this->vars['dobr']['value'] == 1) ? 1 : 0; |
|
469 | ||
470 | return $ts->previewTarea($ret, $html, $smiley, $xcode, $image, $br); |
|
471 | break 1; |
|
472 | case 'f': |
|
473 | case 'formpreview': |
|
474 | return htmlspecialchars($ts->stripSlashesGPC($ret), ENT_QUOTES); |