⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
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
/
imp
/
lib
/
Basic
/
View File Name :
Saveimage.php
* @category Horde * @copyright 2005-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Basic_Saveimage extends IMP_Basic_Base { /** */ protected function _init() { global $injector, $notification, $page_output, $registry; if (!$registry->hasMethod('images/selectGalleries') || !$registry->hasMethod('images/saveImage')) { $e = new IMP_Exception('Image saving is not available.'); $e->logged = true; throw $e; } /* Run through the action handlers. */ switch ($this->vars->actionID) { case 'save_image': $contents = $injector->getInstance('IMP_Factory_Contents')->create($this->indices); $mime_part = $contents->getMIMEPart($this->vars->id); $image_data = array( 'data' => $mime_part->getContents(), 'description' => $mime_part->getDescription(true), 'filename' => $mime_part->getName(true), 'type' => $mime_part->getType() ); try { $registry->images->saveImage($this->vars->gallery, $image_data); } catch (Horde_Exception $e) { $notification->push($e); break; } echo Horde::wrapInlineScript(array('window.close();')); exit; } /* Build the view. */ $view = new Horde_View(array( 'templatePath' => IMP_TEMPLATES . '/saveimage' )); $view->addHelper('Horde_Core_View_Helper_Image'); $view->addHelper('Text'); $view->action = self::url(); $view->gallerylist = $registry->images->selectGalleries(array( 'perm' => Horde_Perms::EDIT )); $view->id = $this->vars->id; $view->muid = strval($this->indices); $page_output->topbar = $page_output->sidebar = false; $page_output->addInlineScript(array( '$$("INPUT.horde-cancel").first().observe("click", function() { window.close(); })' ), true); $this->title = _("Save Image"); $this->output = $view->render('saveimage'); } /** */ static public function url(array $opts = array()) { return Horde::url('basic.php')->add('page', 'saveimage'); } }