⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
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
/
Ajax
/
Imple
/
Edit File: EditNote.php
<?php /** * Imple for performing Ajax note editing. * * Copyright 2008-2017 Horde LLC (http://www.horde.org/) * * @author Michael J Rubinsky <mrubinsk@horde.org> * @category Horde * @package Mnemo */ class Mnemo_Ajax_Imple_EditNote extends Horde_Core_Ajax_Imple_InPlaceEditor { /** */ protected function _handleEdit(Horde_Variables $vars) { $storage = $GLOBALS['injector']->getInstance('Mnemo_Factory_Driver')->create(); $memo = $storage->getByUID($vars->id); /* Are we requesting the unformatted text? */ if ($vars->action == 'load') { return $memo['body']; } $share = $GLOBALS['mnemo_shares']->getShare($memo['memolist_id']); if (!$share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT)) { throw new Horde_Exception_PermissionDenied(_("You do not have permission to edit this note.")); } $storage->modify($memo['memo_id'], $memo['desc'], $vars->{$vars->input}); return $GLOBALS['injector']->getInstance('Horde_Core_Factory_TextFilter')->filter( $vars->{$vars->input}, 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO) ); } }
Simpan