⚝
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
/
mnemo
/
lib
/
Form
/
View File Name :
CreateNotepad.php
* @package Mnemo */ class Mnemo_Form_CreateNotepad extends Horde_Form { public function __construct(&$vars) { parent::__construct($vars, _("Create Notepad")); $this->addVariable(_("Name"), 'name', 'text', true); $this->addVariable(_("Description"), 'description', 'longtext', false, false, null, array(4, 60)); $this->setButtons(array(_("Create"))); } public function execute() { // Create new share. try { $notepad = $GLOBALS['mnemo_shares']->newShare($GLOBALS['registry']->getAuth(), strval(new Horde_Support_Uuid()), $this->_vars->get('name')); $notepad->set('desc', $this->_vars->get('description')); $GLOBALS['mnemo_shares']->addShare($notepad); $GLOBALS['display_notepads'][] = $notepad->getName(); $GLOBALS['prefs']->setValue('display_notepads', serialize($GLOBALS['display_notepads'])); } catch (Horde_Share_Exception $e) { Horde::log($e->getMessage(), 'ERR'); throw new Mnemo_Exception($e); } return $notepad; } }