⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
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
/
turba
/
lib
/
Form
/
View File Name :
CreateAddressBook.php
* @package Turba */ class Turba_Form_CreateAddressBook extends Horde_Form { public function __construct($vars) { parent::__construct($vars, _("Create Address Book")); $this->addVariable(_("Name"), 'name', 'text', true); $this->addVariable(_("Description"), 'description', 'longtext', false, false, null, array(4, 60)); $this->setButtons(array(_("Create"))); } /** * @return Horde_Share The new share object. * @throws Turba_Exception */ public function execute() { // Need a clean cfgSources array $cfgSources = Turba::availableSources(); $driver = $GLOBALS['injector'] ->getInstance('Turba_Factory_Driver') ->createFromConfig($cfgSources[$GLOBALS['conf']['shares']['source']]); $params = array( 'params' => array('source' => $GLOBALS['conf']['shares']['source']), 'name' => $this->_vars->get('name'), 'desc' => $this->_vars->get('description'), ); return $driver->createShare(strval(new Horde_Support_Randomid()), $params); } }