One Hat Cyber Team
  • Dir : ~/usr/local/lsws/admin/html.6.3.1/classes/
  • Edit File: DAttrBase.php
    '; } elseif ($this->_type === 'sel' || $this->_type === 'sel1') { if ($this->_maxVal && array_key_exists($value, $this->_maxVal)) { $o .= $this->_maxVal[$value]; } else { $o .= $quoted_value; } } elseif ($this->_type === 'checkboxOr') { if ($this->_minVal !== null && ($value === '' || $value === null)) { // has default value, for "Not set", set default val $value = $this->_minVal; } foreach ($this->_maxVal as $val => $name) { if (($value === $val) || ($value === '0' && $val === 0) || ($value !== '' && $val !== '' && (intval($value) & intval($val)) > 0)) { $gif = 'checked.gif'; } else { $gif = 'unchecked.gif'; } $o .= ' '; $o .= $name . '   '; } } elseif ($this->_inputType === 'textarea1') { $o .= ''; } elseif ($this->_inputType === 'text') { $o .= '' . $quoted_value . ''; } elseif ($this->_type == 'ctxseq') { $o = $value . '   + '; $o .= '/ - '; } elseif ($this->_type == 'action') { $o .= $value; } elseif ($value) { $o .= htmlspecialchars($value); } if ($this->_href || $refUrl) { $o .= ''; } return $o; } protected function getNote() { if ($this->_note) { return $this->_note; } if ($this->_type == 'uint') { if ($this->_maxVal) { return 'number valid range: ' . $this->_minVal . ' - ' . $this->_maxVal; } if ($this->_minVal) { return 'number >= ' . $this->_minVal; } } elseif ($this->_type == 'parse' && $this->_maxVal) { return 'Syntax: ' . $this->_maxVal; // parsehelp } return null; } protected function genOptions($options, $selValue) { $o = ''; if ($options) { foreach ($options as $key => $value) { if ($key === 'forcesel') { $o .= '