⚝
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
/
Ajax
/
Application
/
Edit File: Smartmobile.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 */ /** * Defines AJAX actions used in the Ingo smartmobile view. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/licenses/apache ASL * @package Ingo */ class Ingo_Ajax_Application_Smartmobile extends Horde_Core_Ajax_Application_Handler { /** * AJAX action: Get rule data. * * Variables used: * - rule: (integer) Rule number of the rule * * @return object An object with the following properties: * - descrip: (string) Rule description. * - error: (integer) True if error was encountered. * - label: (string) The rule label. */ public function smartmobileRule() { global $injector, $notification; $out = new stdClass; $ingo_script = $injector->getInstance('Ingo_Factory_Script') ->create(Ingo::RULE_FILTER); if (!$ingo_script->availableActions()) { $notification->push(_("Individual rules are not supported in the current filtering driver."), 'horde.error'); $out->error = 1; } else { $storage = $injector->getInstance('Ingo_Factory_Storage')->create(); $rule = $storage->retrieve(Ingo_Storage::ACTION_FILTERS) ->getRule($this->vars->rule); if (!$rule) { $notification->push(_("Rule not found."), 'horde.error'); $out->error = 1; } else { $out->descrip = trim($storage->ruleDescription($rule)); $out->label = $rule['name']; } } return $out; } }
Simpan