⚝
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
/
ingo
/
lib
/
Storage
/
Edit File: Vacation.php
<?php /** * Copyright 2012-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (ASL). If you * did not receive this file, see http://www.horde.org/licenses/apache. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ /** * Ingo_Storage_Vacation is the object used to hold vacation rule * information. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ class Ingo_Storage_Vacation extends Ingo_Storage_Rule { /** */ protected $_addr = array(); /** */ protected $_days = 7; /** */ protected $_excludes = array(); /** */ protected $_ignorelist = true; /** */ protected $_reason = ''; /** */ protected $_subject = ''; /** */ protected $_start; /** */ protected $_end; /** */ protected $_obtype = Ingo_Storage::ACTION_VACATION; /** */ public function setVacationAddresses($data) { $this->_addr = $this->_addressList($data); } /** */ public function setVacationDays($data) { $this->_days = $data; } /** */ public function setVacationExcludes($data) { $this->_excludes = $this->_addressList($data); } /** */ public function setVacationIgnorelist($data) { $this->_ignorelist = $data; } /** */ public function setVacationReason($data) { $this->_reason = $data; } /** */ public function setVacationSubject($data) { $this->_subject = $data; } /** */ public function setVacationStart($data) { $this->_start = $data; } /** */ public function setVacationEnd($data) { $this->_end = $data; } /** */ public function getVacationAddresses() { try { return $GLOBALS['injector']->getInstance('Horde_Core_Hooks') ->callHook('vacation_addresses', 'ingo', array(Ingo::getUser(), $this->_addr)); } catch (Horde_Exception_HookNotSet $e) { return $this->_addr; } } /** */ public function getVacationDays() { return $this->_days; } /** */ public function getVacationExcludes() { return $this->_excludes; } /** */ public function getVacationIgnorelist() { return $this->_ignorelist; } /** */ public function getVacationReason() { return $this->_reason; } /** */ public function getVacationSubject() { return $this->_subject; } /** */ public function getVacationStart() { return $this->_start; } /** */ public function getVacationStartYear() { return date('Y', $this->_start); } /** */ public function getVacationStartMonth() { return date('n', $this->_start); } /** */ public function getVacationStartDay() { return date('j', $this->_start); } /** */ public function getVacationEnd() { return $this->_end; } /** */ public function getVacationEndYear() { return date('Y', $this->_end); } /** */ public function getVacationEndMonth() { return date('n', $this->_end); } /** */ public function getVacationEndDay() { return date('j', $this->_end); } /** * Return the properties of this object as a hash. * * @return array The property hash */ public function toHash() { return array( 'start' => $this->getVacationStart(), 'end' => $this->getVacationEnd(), 'subject' => $this->getVacationSubject(), 'reason' => $this->getVacationReason(), 'ignorelist' => $this->getVacationIgnorelist(), 'excludes' => $this->getVacationExcludes(), 'days' => $this->getVacationDays(), 'addresses' => $this->getVacationAddresses() ); } }
Simpan