⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.37
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
ingo
/
lib
/
Form
/
View File Name :
Base.php
* @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ /** * The base class for all Ingo rule forms. * * @author Jan Schneider
* @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ class Ingo_Form_Base extends Horde_Form { /** * List of the supported form fields. If empty, all features are supported. * * @var array */ protected $_features; public function __construct($vars, $title = '', $name = null, $features = array()) { parent::__construct($vars, $title, $name); $this->_features = $features; } public function hasFeature($what) { // either we support the feature or (if _features is empty) we support all return in_array($what, $this->_features) || empty($this->_features); } /** * Sets the form buttons. * * @param boolean $disabled Whether the rule is currently disabled. */ public function setCustomButtons($disabled) { $this->setButtons(_("Save")); if ($disabled) { $this->appendButtons(_("Save and Enable")); } else { $this->appendButtons(_("Save and Disable")); } $this->appendButtons(_("Return to Rules List")); } }