⚝
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
/
nag
/
lib
/
Form
/
Type
/
View File Name :
NagMethod.php
* @package Nag */ class Nag_Form_Type_NagMethod extends Horde_Form_Type { public function getInfo(&$vars, &$var, &$info) { $info = $var->getValue($vars); if (empty($info['on'])) { $info = array(); return; } $types = $vars->get('task_alarms'); $info = array(); if (!empty($types)) { foreach ($types as $type) { $info[$type] = array(); switch ($type){ case 'notify': $info[$type]['sound'] = $vars->get('task_alarms_sound'); break; case 'mail': $info[$type]['email'] = $vars->get('task_alarms_email'); break; case 'popup': break; } } } } public function isValid(&$var, &$vars, $value, &$message) { $alarm = $vars->get('alarm'); if ($value['on'] && !$alarm['on']){ $message = _("An alarm must be set to specify a notification method"); return false; } return true; } public function getTypeName() { return 'NagMethod'; } }