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 /
blocks /
login /
[ HOME SHELL ]
Name
Size
Permission
Action
classes
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
block_login.php
5.64
KB
-rwxrwxrwx
version.php
1.15
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : block_login.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/>. /** * Login block * * @package block_login * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class block_login extends block_base { function init() { $this->title = get_string('pluginname', 'block_login'); } function applicable_formats() { return array('site' => true); } function get_content () { global $USER, $CFG, $SESSION, $OUTPUT; require_once($CFG->libdir . '/authlib.php'); $wwwroot = ''; $signup = ''; if ($this->content !== NULL) { return $this->content; } $wwwroot = $CFG->wwwroot; if (signup_is_enabled()) { $signup = $wwwroot . '/login/signup.php'; } // TODO: now that we have multiauth it is hard to find out if there is a way to change password $forgot = $wwwroot . '/login/forgot_password.php'; $username = get_moodle_cookie(); $this->content = new stdClass(); $this->content->footer = ''; $this->content->text = ''; if (!isloggedin() or isguestuser()) { // Show the block if (empty($CFG->authloginviaemail)) { $strusername = get_string('username'); } else { $strusername = get_string('usernameemail'); } $this->content->text .= "\n".'<form class="loginform" id="login" method="post" action="'.get_login_url().'">'; $this->content->text .= '<div class="form-group">'; $this->content->text .= '<label for="login_username">'.$strusername.'</label>'; $this->content->text .= '<input type="text" name="username" id="login_username" '; $this->content->text .= ' class="form-control" value="'.s($username).'" autocomplete="username"/></div>'; $this->content->text .= '<div class="form-group"><label for="login_password">'.get_string('password').'</label>'; $this->content->text .= '<input type="password" name="password" id="login_password" '; $this->content->text .= ' class="form-control" value="" autocomplete="current-password"/>'; $this->content->text .= '</div>'; if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) { $checked = $username ? 'checked="checked"' : ''; $this->content->text .= '<div class="form-check">'; $this->content->text .= '<label class="form-check-label">'; $this->content->text .= '<input type="checkbox" name="rememberusername" id="rememberusername" class="form-check-input" value="1" '.$checked.'/> '; $this->content->text .= get_string('rememberusername', 'admin').'</label>'; $this->content->text .= '</div>'; } $this->content->text .= '<div class="form-group">'; $this->content->text .= '<input type="submit" class="btn btn-primary btn-block" value="'.get_string('login').'" />'; $this->content->text .= '</div>'; $this->content->text .= '<input type="hidden" name="logintoken" value="'.s(\core\session\manager::get_login_token()).'" />'; $this->content->text .= "</form>\n"; if (!empty($signup)) { $this->content->text .= '<div><a href="'.$signup.'">'.get_string('startsignup').'</a></div>'; } if (!empty($forgot)) { $this->content->text .= '<div><a href="'.$forgot.'">'.get_string('forgotaccount').'</a></div>'; } $authsequence = get_enabled_auth_plugins(); // Get all auths, in sequence. $potentialidps = array(); foreach ($authsequence as $authname) { $authplugin = get_auth_plugin($authname); $potentialidps = array_merge($potentialidps, $authplugin->loginpage_idp_list($this->page->url->out(false))); } if (!empty($potentialidps)) { $this->content->text .= '<div class="potentialidps">'; $this->content->text .= '<h6>' . get_string('potentialidps', 'auth') . '</h6>'; $this->content->text .= '<div class="potentialidplist">'; foreach ($potentialidps as $idp) { $this->content->text .= '<div class="potentialidp">'; $this->content->text .= '<a class="btn btn-secondary btn-block" '; $this->content->text .= 'href="' . $idp['url']->out() . '" title="' . s($idp['name']) . '">'; if (!empty($idp['iconurl'])) { $this->content->text .= '<img src="' . s($idp['iconurl']) . '" width="24" height="24" class="mr-1"/>'; } $this->content->text .= s($idp['name']) . '</a></div>'; } $this->content->text .= '</div>'; $this->content->text .= '</div>'; } } return $this->content; } }
Close