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 /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
classes
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
filters
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
profile
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
selector
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
tests
[ DIR ]
drwxr-sr-x
2017-06-22 14:58
action_redir.php
1.46
KB
-rw-r--r--
2017-06-22 14:57
addnote.php
4.39
KB
-rw-r--r--
2017-06-22 14:57
calendar.php
4.15
KB
-rw-r--r--
2017-06-22 14:57
course.php
2.09
KB
-rw-r--r--
2017-06-22 14:57
edit.php
11.27
KB
-rw-r--r--
2017-06-22 14:57
edit_form.php
9.12
KB
-rw-r--r--
2017-06-22 14:57
editadvanced.php
13.15
KB
-rw-r--r--
2017-06-22 14:57
editadvanced_form.php
12.1
KB
-rw-r--r--
2017-06-22 14:57
editlib.php
18.44
KB
-rw-r--r--
2017-06-22 14:57
editor.php
2.42
KB
-rw-r--r--
2017-06-22 14:57
editor_form.php
2.51
KB
-rw-r--r--
2017-06-22 14:57
emailupdate.php
3.1
KB
-rw-r--r--
2017-06-22 14:57
externallib.php
77.78
KB
-rw-r--r--
2017-06-22 14:57
files.php
2.82
KB
-rw-r--r--
2017-06-22 14:57
files_form.php
2.44
KB
-rw-r--r--
2017-06-22 14:57
forum.php
3.07
KB
-rw-r--r--
2017-06-22 14:57
forum_form.php
3.63
KB
-rw-r--r--
2017-06-22 14:57
groupaddnote.php
4
KB
-rw-r--r--
2017-06-22 14:57
grouppix.php
1.77
KB
-rw-r--r--
2017-06-22 14:57
index.php
35.97
KB
-rw-r--r--
2017-06-22 14:57
language.php
2.65
KB
-rw-r--r--
2017-06-22 14:57
language_form.php
2.75
KB
-rw-r--r--
2017-06-22 14:57
lib.php
44.02
KB
-rw-r--r--
2017-06-22 14:57
managetoken.php
3.93
KB
-rw-r--r--
2017-06-22 14:57
message.html
2.3
KB
-rw-r--r--
2017-06-22 14:57
messageselect.php
7.12
KB
-rw-r--r--
2017-06-22 14:57
module.js
1.55
KB
-rw-r--r--
2017-06-22 14:57
pix.php
1.5
KB
-rw-r--r--
2017-06-22 14:57
pixgroup.php
1.06
KB
-rw-r--r--
2017-06-22 14:57
policy.php
2.99
KB
-rw-r--r--
2017-06-22 14:57
portfolio.php
4.44
KB
-rw-r--r--
2017-06-22 14:57
portfoliologs.php
5.67
KB
-rw-r--r--
2017-06-22 14:57
preferences.php
3.02
KB
-rw-r--r--
2017-06-22 14:57
profile.php
8.22
KB
-rw-r--r--
2017-06-22 14:57
profilesys.php
2.35
KB
-rw-r--r--
2017-06-22 14:57
renderer.php
8.49
KB
-rw-r--r--
2017-06-22 14:57
repository.php
2.78
KB
-rw-r--r--
2017-06-22 14:57
view.php
8.48
KB
-rw-r--r--
2017-06-22 14:58
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/>. /** * Provides user rendering functionality such as printing private files tree and displaying a search utility * * @package core_user * @copyright 2010 Dongsheng Cai <dongsheng@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Provides user rendering functionality such as printing private files tree and displaying a search utility * @copyright 2010 Dongsheng Cai <dongsheng@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class core_user_renderer extends plugin_renderer_base { /** * Prints user files tree view * @return string */ public function user_files_tree() { return $this->render(new user_files_tree); } /** * Render user files tree * * @param user_files_tree $tree * @return string HTML */ public function render_user_files_tree(user_files_tree $tree) { if (empty($tree->dir['subdirs']) && empty($tree->dir['files'])) { $html = $this->output->box(get_string('nofilesavailable', 'repository')); } else { $htmlid = 'user_files_tree_'.uniqid(); $module = array('name' => 'core_user', 'fullpath' => '/user/module.js'); $this->page->requires->js_init_call('M.core_user.init_tree', array(false, $htmlid), false, $module); $html = '<div id="'.$htmlid.'">'; $html .= $this->htmllize_tree($tree, $tree->dir); $html .= '</div>'; } return $html; } /** * Internal function - creates htmls structure suitable for YUI tree. * @param user_files_tree $tree * @param array $dir * @return string HTML */ protected function htmllize_tree($tree, $dir) { global $CFG; $yuiconfig = array(); $yuiconfig['type'] = 'html'; if (empty($dir['subdirs']) and empty($dir['files'])) { return ''; } $result = '<ul>'; foreach ($dir['subdirs'] as $subdir) { $image = $this->output->pix_icon(file_folder_icon(), $subdir['dirname'], 'moodle', array('class' => 'icon')); $result .= '<li yuiConfig=\''.json_encode($yuiconfig).'\'><div>'.$image.' '.s($subdir['dirname']).'</div> '. $this->htmllize_tree($tree, $subdir).'</li>'; } foreach ($dir['files'] as $file) { $url = file_encode_url("$CFG->wwwroot/pluginfile.php", '/'.$tree->context->id.'/user/private'. $file->get_filepath().$file->get_filename(), true); $filename = $file->get_filename(); $image = $this->output->pix_icon(file_file_icon($file), $filename, 'moodle', array('class' => 'icon')); $result .= '<li yuiConfig=\''.json_encode($yuiconfig).'\'><div>'.$image.' '.html_writer::link($url, $filename). '</div></li>'; } $result .= '</ul>'; return $result; } /** * Prints user search utility that can search user by first initial of firstname and/or first initial of lastname * Prints a header with a title and the number of users found within that subset * @param string $url the url to return to, complete with any parameters needed for the return * @param string $firstinitial the first initial of the firstname * @param string $lastinitial the first initial of the lastname * @param int $usercount the amount of users meeting the search criteria * @param int $totalcount the amount of users of the set/subset being searched * @param string $heading heading of the subset being searched, default is All Participants * @return string html output */ public function user_search($url, $firstinitial, $lastinitial, $usercount, $totalcount, $heading = null) { global $OUTPUT; $strall = get_string('all'); $alpha = explode(',', get_string('alphabet', 'langconfig')); if (!isset($heading)) { $heading = get_string('allparticipants'); } $content = html_writer::start_tag('form', array('action' => new moodle_url($url))); $content .= html_writer::start_tag('div'); // Search utility heading. $content .= $OUTPUT->heading($heading.get_string('labelsep', 'langconfig').$usercount.'/'.$totalcount, 3); // Bar of first initials. $content .= html_writer::start_tag('div', array('class' => 'initialbar firstinitial')); $content .= html_writer::label(get_string('firstname').' : ', null); if (!empty($firstinitial)) { $content .= html_writer::link($url.'&sifirst=', $strall); } else { $content .= html_writer::tag('strong', $strall); } foreach ($alpha as $letter) { if ($letter == $firstinitial) { $content .= html_writer::tag('strong', $letter); } else { $content .= html_writer::link($url.'&sifirst='.$letter, $letter); } } $content .= html_writer::end_tag('div'); // Bar of last initials. $content .= html_writer::start_tag('div', array('class' => 'initialbar lastinitial')); $content .= html_writer::label(get_string('lastname').' : ', null); if (!empty($lastinitial)) { $content .= html_writer::link($url.'&silast=', $strall); } else { $content .= html_writer::tag('strong', $strall); } foreach ($alpha as $letter) { if ($letter == $lastinitial) { $content .= html_writer::tag('strong', $letter); } else { $content .= html_writer::link($url.'&silast='.$letter, $letter); } } $content .= html_writer::end_tag('div'); $content .= html_writer::end_tag('div'); $content .= html_writer::tag('div', ' '); $content .= html_writer::end_tag('form'); return $content; } /** * Displays the list of tagged users * * @param array $userlist * @param bool $exclusivemode if set to true it means that no other entities tagged with this tag * are displayed on the page and the per-page limit may be bigger * @return string */ public function user_list($userlist, $exclusivemode) { $tagfeed = new core_tag\output\tagfeed(); foreach ($userlist as $user) { $userpicture = $this->output->user_picture($user, array('size' => $exclusivemode ? 100 : 35)); $fullname = fullname($user); if (user_can_view_profile($user)) { $profilelink = new moodle_url('/user/view.php', array('id' => $user->id)); $fullname = html_writer::link($profilelink, $fullname); } $tagfeed->add($userpicture, $fullname); } $items = $tagfeed->export_for_template($this->output); if ($exclusivemode) { $output = '<div><ul class="inline-list">'; foreach ($items['items'] as $item) { $output .= '<li><div class="user-box">'. $item['img'] . $item['heading'] ."</div></li>\n"; } $output .= "</ul></div>\n"; return $output; } return $this->output->render_from_template('core_tag/tagfeed', $items); } } /** * User files tree * @copyright 2010 Dongsheng Cai <dongsheng@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class user_files_tree implements renderable { /** * @var context_user $context */ public $context; /** * @var array $dir */ public $dir; /** * Create user files tree object */ public function __construct() { global $USER; $this->context = context_user::instance($USER->id); $fs = get_file_storage(); $this->dir = $fs->get_area_tree($this->context->id, 'user', 'private', 0); } }