Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
admin /
[ HOME SHELL ]
Name
Size
Permission
Action
cli
[ DIR ]
drwxrwxrwx
mnet
[ DIR ]
drwxrwxrwx
registration
[ DIR ]
drwxrwxrwx
roles
[ DIR ]
drwxrwxrwx
settings
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
tool
[ DIR ]
drwxrwxrwx
user
[ DIR ]
drwxrwxrwx
webservice
[ DIR ]
drwxrwxrwx
auth.php
2.8
KB
-rwxrwxrwx
auth_config.php
6.79
KB
-rwxrwxrwx
block.php
2.21
KB
-rwxrwxrwx
blocks.php
10.69
KB
-rwxrwxrwx
category.php
5.82
KB
-rwxrwxrwx
courseformats.php
4.91
KB
-rwxrwxrwx
cron.php
3.05
KB
-rwxrwxrwx
editors.php
4.08
KB
-rwxrwxrwx
enrol.php
5.74
KB
-rwxrwxrwx
environment.php
4.15
KB
-rwxrwxrwx
environment.xml
32.61
KB
-rwxrwxrwx
filters.php
10.66
KB
-rwxrwxrwx
handlevirus.php
4.83
KB
-rwxrwxrwx
index.php
20.25
KB
-rwxrwxrwx
lib.php
1.31
KB
-rwxrwxrwx
licenses.php
1.53
KB
-rwxrwxrwx
localplugins.php
3.77
KB
-rwxrwxrwx
mailout-debugger.php
2.21
KB
-rwxrwxrwx
message.php
3.48
KB
-rwxrwxrwx
modules.php
7.52
KB
-rwxrwxrwx
oacleanup.php
6.7
KB
-rwxrwxrwx
oauth2callback.php
1.66
KB
-rwxrwxrwx
phpinfo.php
0
B
-rwxrwxrwx
plagiarism.php
4.28
KB
-rwxrwxrwx
plugins.php
6.43
KB
-rwxrwxrwx
portfolio.php
8.6
KB
-rwxrwxrwx
process_email.php
1.74
KB
-rwxrwxrwx
purgecaches.php
2.27
KB
-rwxrwxrwx
qbehaviours.php
10.9
KB
-rwxrwxrwx
qtypes.php
11.31
KB
-rwxrwxrwx
renderer.php
63.01
KB
-rwxrwxrwx
reports.php
4.67
KB
-rwxrwxrwx
repository.php
16.12
KB
-rwxrwxrwx
repositoryinstance.php
5.67
KB
-rwxrwxrwx
resetemoticons.php
1.65
KB
-rwxrwxrwx
search.php
1.82
KB
-rwxrwxrwx
settings.php
4.66
KB
-rwxrwxrwx
timezone.php
1.65
KB
-rwxrwxrwx
tools.php
4.68
KB
-rwxrwxrwx
upgradesettings.php
2.34
KB
-rwxrwxrwx
user.php
17.31
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : filters.php
<?php /////////////////////////////////////////////////////////////////////////// // // // NOTICE OF COPYRIGHT // // // // Moodle - Modular Object-Oriented Dynamic Learning Environment // // http://moodle.org // // // // Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // // // // This program 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 2 of the License, or // // (at your option) any later version. // // // // This program 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: // // // // http://www.gnu.org/copyleft/gpl.html // // // /////////////////////////////////////////////////////////////////////////// /** * Processes actions from the admin_setting_managefilters object (defined in * adminlib.php). * * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @package administration *//** */ require_once(dirname(__FILE__) . '/../config.php'); require_once($CFG->libdir . '/adminlib.php'); $action = optional_param('action', '', PARAM_ALPHANUMEXT); $filterpath = optional_param('filterpath', '', PARAM_SAFEDIR); require_login(); $systemcontext = context_system::instance(); require_capability('moodle/site:config', $systemcontext); $returnurl = "$CFG->wwwroot/$CFG->admin/filters.php"; admin_externalpage_setup('managefilters'); // Purge all caches related to filter administration. cache::make('core', 'plugininfo_filter')->purge(); $filters = filter_get_global_states(); // In case any new filters have been installed, but not put in the table yet. $fitlernames = filter_get_all_installed(); $newfilters = $fitlernames; foreach ($filters as $filter => $notused) { unset($newfilters[$filter]); } /// Process actions ============================================================ if ($action) { if (!isset($filters[$filterpath]) && !isset($newfilters[$filterpath])) { throw new moodle_exception('filternotinstalled', 'error', $returnurl, $filterpath); } if (!confirm_sesskey()) { redirect($returnurl); } } switch ($action) { case 'setstate': if ($newstate = optional_param('newstate', '', PARAM_INT)) { filter_set_global_state($filterpath, $newstate); if ($newstate == TEXTFILTER_DISABLED) { filter_set_applies_to_strings($filterpath, false); } unset($newfilters[$filterpath]); } break; case 'setapplyto': $applytostrings = optional_param('stringstoo', false, PARAM_BOOL); filter_set_applies_to_strings($filterpath, $applytostrings); break; case 'down': if (isset($filters[$filterpath])) { filter_set_global_state($filterpath, $filters[$filterpath]->active, 1); } break; case 'up': if (isset($filters[$filterpath])) { $oldpos = $filters[$filterpath]->sortorder; filter_set_global_state($filterpath, $filters[$filterpath]->active, -1); } break; case 'delete': // If not yet confirmed, display a confirmation message. if (!optional_param('confirm', '', PARAM_BOOL)) { $filtername = filter_get_name($filterpath); $title = get_string('deletefilterareyousure', 'admin', $filtername); echo $OUTPUT->header(); echo $OUTPUT->heading($title); $linkcontinue = new moodle_url($returnurl, array('action' => 'delete', 'filterpath' => $filterpath, 'confirm' => 1)); $formcancel = new single_button(new moodle_url($returnurl), get_string('no'), 'get'); echo $OUTPUT->confirm(get_string('deletefilterareyousuremessage', 'admin', $filtername), $linkcontinue, $formcancel); echo $OUTPUT->footer(); exit; } // Do the deletion. $title = get_string('deletingfilter', 'admin', $filterpath); echo $OUTPUT->header(); echo $OUTPUT->heading($title); // Delete all data for this plugin. filter_delete_all_for_filter($filterpath); $a = new stdClass; $a->filter = $filterpath; $a->directory = "$CFG->dirroot/filter/$filterpath"; echo $OUTPUT->box(get_string('deletefilterfiles', 'admin', $a), 'generalbox', 'notice'); echo $OUTPUT->continue_button($returnurl); echo $OUTPUT->footer(); exit; } // Add any missing filters to the DB table. foreach ($newfilters as $filter => $notused) { filter_set_global_state($filter, TEXTFILTER_DISABLED); } // Reset caches and return if ($action) { reset_text_filters_cache(); redirect($returnurl); } /// End of process actions ===================================================== /// Print the page heading. echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('filtersettings', 'admin')); $activechoices = array( TEXTFILTER_DISABLED => get_string('disabled', 'filters'), TEXTFILTER_OFF => get_string('offbutavailable', 'filters'), TEXTFILTER_ON => get_string('on', 'filters'), ); $applytochoices = array( 0 => get_string('content', 'filters'), 1 => get_string('contentandheadings', 'filters'), ); $filters = filter_get_global_states(); // In case any new filters have been installed, but not put in the table yet. $filternames = filter_get_all_installed(); $newfilters = $filternames; foreach ($filters as $filter => $notused) { unset($newfilters[$filter]); } $stringfilters = filter_get_string_filters(); $table = new html_table(); $table->head = array(get_string('filter'), get_string('isactive', 'filters'), get_string('order'), get_string('applyto', 'filters'), get_string('settings'), get_string('delete')); $table->colclasses = array ('leftalign', 'leftalign', 'centeralign', 'leftalign', 'leftalign', 'leftalign'); $table->attributes['class'] = 'admintable generaltable'; $table->id = 'filterssetting'; $table->data = array(); $lastactive = null; foreach ($filters as $filter => $filterinfo) { if ($filterinfo->active != TEXTFILTER_DISABLED) { $lastactive = $filter; } } // iterate through filters adding to display table $firstrow = true; foreach ($filters as $filter => $filterinfo) { $applytostrings = isset($stringfilters[$filter]) && $filterinfo->active != TEXTFILTER_DISABLED; $row = get_table_row($filterinfo, $firstrow, $filter == $lastactive, $applytostrings); $table->data[] = $row; if ($filterinfo->active == TEXTFILTER_DISABLED) { $table->rowclasses[] = 'dimmed_text'; } else { $table->rowclasses[] = ''; } $firstrow = false; } foreach ($newfilters as $filter => $filtername) { $filterinfo = new stdClass; $filterinfo->filter = $filter; $filterinfo->active = TEXTFILTER_DISABLED; $row = get_table_row($filterinfo, false, false, false); $table->data[] = $row; $table->rowclasses[] = 'dimmed_text'; } echo html_writer::table($table); echo '<p class="filtersettingnote">' . get_string('filterallwarning', 'filters') . '</p>'; echo $OUTPUT->footer(); /// Display helper functions =================================================== function filters_action_url($filterpath, $action) { return new moodle_url('/admin/filters.php', array('sesskey'=>sesskey(), 'filterpath'=>$filterpath, 'action'=>$action)); } function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings) { global $CFG, $OUTPUT, $activechoices, $applytochoices, $filternames; //TODO: this is sloppy coding style!! $row = array(); $filter = $filterinfo->filter; // Filter name if (!empty($filternames[$filter])) { $row[] = $filternames[$filter]; } else { $row[] = '<span class="error">' . get_string('filemissing', '', $filter) . '</span>'; } // Disable/off/on $select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . $filter); $select->set_label(get_string('isactive', 'filters'), array('class' => 'accesshide')); $row[] = $OUTPUT->render($select); // Re-order $updown = ''; $spacer = '<img src="' . $OUTPUT->pix_url('spacer') . '" class="iconsmall" alt="" />'; if ($filterinfo->active != TEXTFILTER_DISABLED) { if (!$isfirstrow) { $updown .= $OUTPUT->action_icon(filters_action_url($filter, 'up'), new pix_icon('t/up', get_string('up'), '', array('class' => 'iconsmall'))); } else { $updown .= $spacer; } if (!$islastactive) { $updown .= $OUTPUT->action_icon(filters_action_url($filter, 'down'), new pix_icon('t/down', get_string('down'), '', array('class' => 'iconsmall'))); } else { $updown .= $spacer; } } $row[] = $updown; // Apply to strings. $select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . $filter); $select->set_label(get_string('applyto', 'filters'), array('class' => 'accesshide')); $select->disabled = $filterinfo->active == TEXTFILTER_DISABLED; $row[] = $OUTPUT->render($select); // Settings link, if required if (filter_has_global_settings($filter)) { $row[] = '<a href="' . $CFG->wwwroot . '/' . $CFG->admin . '/settings.php?section=filtersetting' . $filter . '">' . get_string('settings') . '</a>'; } else { $row[] = ''; } // Delete $row[] = '<a href="' . filters_action_url($filter, 'delete') . '">' . get_string('delete') . '</a>'; return $row; }
Close