39 $value = $obj->vars[$key][
'value'];
40 switch (strtolower($format)) {
43 $html = !empty($obj->vars[
'dohtml'][
'value']) ? 1 : 0;
44 $xcode = (!isset($obj->vars[
'doxcode'][
'value']) || $obj->vars[
'doxcode'][
'value'] == 1) ? 1 : 0;
45 $smiley = (!isset($obj->vars[
'dosmiley'][
'value']) || $obj->vars[
'dosmiley'][
'value'] == 1) ? 1 : 0;
46 $image = (!isset($obj->vars[
'doimage'][
'value']) || $obj->vars[
'doimage'][
'value'] == 1) ? 1 : 0;
47 $br = (!isset($obj->vars[
'dobr'][
'value']) || $obj->vars[
'dobr'][
'value'] == 1) ? 1 : 0;
48 return $this->ts->displayTarea($value,
$html, $smiley, $xcode,
$image, $br);
52 return htmlspecialchars($value, ENT_QUOTES);
55 $html = !empty($obj->vars[
'dohtml'][
'value']) ? 1 : 0;
56 $xcode = (!isset($obj->vars[
'doxcode'][
'value']) || $obj->vars[
'doxcode'][
'value'] == 1) ? 1 : 0;
57 $smiley = (!isset($obj->vars[
'dosmiley'][
'value']) || $obj->vars[
'dosmiley'][
'value'] == 1) ? 1 : 0;
58 $image = (!isset($obj->vars[
'doimage'][
'value']) || $obj->vars[
'doimage'][
'value'] == 1) ? 1 : 0;
59 $br = (!isset($obj->vars[
'dobr'][
'value']) || $obj->vars[
'dobr'][
'value'] == 1) ? 1 : 0;
60 return $this->ts->previewTarea($value,
$html, $smiley, $xcode,
$image, $br);
63 return htmlspecialchars($this->ts->stripSlashesGPC($value), ENT_QUOTES);
80 $value = $obj->vars[$key][
'value'];
81 if ($obj->vars[$key][
'required'] && $value !=
'0' && $value ==
'') {
85 if (!$obj->vars[$key][
'not_gpc']) {
86 $value = $this->ts->stripSlashesGPC($this->ts->censorString($value));
88 $value = $this->ts->censorString($value);
91 $value = str_replace(
'\\"',
'"', $this->
db->quote($value));
cleanVar(XoopsObject $obj, $key, $quote=true)
if(empty($image_id)) $image
if(!$xoops->security() ->validateToken(@$_POST['token'], false)) $html
getVar(XoopsObject $obj, $key, $format)