⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.127
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
/
kronolith
/
lib
/
Form
/
View File Name :
CreateResourceGroup.php
* @author Michael J. Rubinsky
* @package Kronolith */ class Kronolith_Form_CreateResourceGroup extends Horde_Form { /** * @throws Kronolith_Exception */ public function __construct($vars) { parent::__construct($vars, _("Create Resource Group")); $resources = Kronolith::getDriver('Resource')->listResources(Horde_Perms::READ, array('type' => Kronolith_Resource::TYPE_SINGLE)); $enum = array(); foreach ($resources as $resource) { $enum[$resource->getId()] = htmlspecialchars($resource->get('name')); } $this->addVariable(_("Name"), 'name', 'text', true); $this->addVariable(_("Description"), 'description', 'longtext', false, false, null, array(4, 60)); $this->addVariable(_("Resources"), 'members', 'multienum', false, false, null, array('enum' => $enum)); $this->setButtons(array(_("Create"))); } public function execute() { $new = array('name' => $this->_vars->get('name'), 'description' => $this->_vars->get('description'), 'members' => $this->_vars->get('members')); Kronolith_Resource::addResource(new Kronolith_Resource_Group($new)); } }