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 /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
cli
[ DIR ]
drwxr-sr-x
2017-06-22 14:51
mnet
[ DIR ]
drwxr-sr-x
2017-06-22 14:51
registration
[ DIR ]
drwxr-sr-x
2017-06-22 14:51
roles
[ DIR ]
drwxr-sr-x
2017-06-22 14:51
settings
[ DIR ]
drwxr-sr-x
2017-06-22 14:52
templates
[ DIR ]
drwxr-sr-x
2017-06-22 14:52
tests
[ DIR ]
drwxr-sr-x
2017-06-22 14:51
tool
[ DIR ]
drwxr-sr-x
2017-06-22 14:55
user
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
webservice
[ DIR ]
drwxr-sr-x
2017-06-22 14:57
admin_settings_search_form.php
1.64
KB
-rw-r--r--
2017-06-22 14:51
antiviruses.php
3.38
KB
-rw-r--r--
2017-06-22 14:51
auth.php
2.92
KB
-rw-r--r--
2017-06-22 14:51
auth_config.php
7.39
KB
-rw-r--r--
2017-06-22 14:51
blocks.php
9.71
KB
-rw-r--r--
2017-06-22 14:51
category.php
5.9
KB
-rw-r--r--
2017-06-22 14:51
courseformats.php
2.93
KB
-rw-r--r--
2017-06-22 14:51
cron.php
2.71
KB
-rw-r--r--
2017-06-22 14:51
dataformats.php
2.71
KB
-rw-r--r--
2017-06-22 14:51
editors.php
2.65
KB
-rw-r--r--
2017-06-22 14:51
enrol.php
4.26
KB
-rw-r--r--
2017-06-22 14:51
environment.php
4.17
KB
-rw-r--r--
2017-06-22 14:51
environment.xml
62.38
KB
-rw-r--r--
2017-06-22 14:51
filters.php
8.76
KB
-rw-r--r--
2017-06-22 14:51
index.php
36.11
KB
-rw-r--r--
2017-06-22 14:51
lib.php
4.49
KB
-rw-r--r--
2017-06-22 14:51
licenses.php
1.53
KB
-rw-r--r--
2017-06-22 14:51
localplugins.php
2.66
KB
-rw-r--r--
2017-06-22 14:51
mailout-debugger.php
2.2
KB
-rw-r--r--
2017-06-22 14:51
media.php
2.45
KB
-rw-r--r--
2017-06-22 14:51
message.php
2.52
KB
-rw-r--r--
2017-06-22 14:51
modules.php
6.49
KB
-rw-r--r--
2017-06-22 14:51
oauth2callback.php
1.65
KB
-rw-r--r--
2017-06-22 14:51
phpinfo.php
968
B
-rw-r--r--
2017-06-22 14:51
plagiarism.php
3.17
KB
-rw-r--r--
2017-06-22 14:51
plugins.php
8.89
KB
-rw-r--r--
2017-06-22 14:51
portfolio.php
8.57
KB
-rw-r--r--
2017-06-22 14:51
process_email.php
1.72
KB
-rw-r--r--
2017-06-22 14:51
purgecaches.php
2.24
KB
-rw-r--r--
2017-06-22 14:51
qbehaviours.php
8.47
KB
-rw-r--r--
2017-06-22 14:51
qtypes.php
9.17
KB
-rw-r--r--
2017-06-22 14:51
renderer.php
83.56
KB
-rw-r--r--
2017-06-22 14:51
reports.php
4.11
KB
-rw-r--r--
2017-06-22 14:51
repository.php
16.85
KB
-rw-r--r--
2017-06-22 14:51
repositoryinstance.php
5.79
KB
-rw-r--r--
2017-06-22 14:51
resetemoticons.php
1.63
KB
-rw-r--r--
2017-06-22 14:51
search.php
2.09
KB
-rw-r--r--
2017-06-22 14:51
searchareas.php
6.83
KB
-rw-r--r--
2017-06-22 14:51
settings.php
4.85
KB
-rw-r--r--
2017-06-22 14:52
thirdpartylibs.php
2.56
KB
-rw-r--r--
2017-06-22 14:52
timezone.php
1.62
KB
-rw-r--r--
2017-06-22 14:52
tools.php
3.55
KB
-rw-r--r--
2017-06-22 14:56
upgrade.txt
425
B
-rw-r--r--
2017-06-22 14:56
upgradesettings.php
2.48
KB
-rw-r--r--
2017-06-22 14:56
user.php
17.63
KB
-rw-r--r--
2017-06-22 14:57
Save
Rename
<?php // Allows the admin to configure blocks (hide/show, uninstall and configure) require_once('../config.php'); require_once($CFG->libdir.'/adminlib.php'); require_once($CFG->libdir.'/blocklib.php'); require_once($CFG->libdir.'/tablelib.php'); admin_externalpage_setup('manageblocks'); $confirm = optional_param('confirm', 0, PARAM_BOOL); $hide = optional_param('hide', 0, PARAM_INT); $show = optional_param('show', 0, PARAM_INT); $unprotect = optional_param('unprotect', 0, PARAM_INT); $protect = optional_param('protect', 0, PARAM_INT); /// Print headings $strmanageblocks = get_string('manageblocks'); $struninstall = get_string('uninstallplugin', 'core_admin'); $strversion = get_string('version'); $strhide = get_string('hide'); $strshow = get_string('show'); $strsettings = get_string('settings'); $strcourses = get_string('blockinstances', 'admin'); $strname = get_string('name'); $strshowblockcourse = get_string('showblockcourse'); $strprotecthdr = get_string('blockprotect', 'admin'). $OUTPUT->help_icon('blockprotect','admin'); $strprotect = get_string('blockprotect', 'admin'); $strunprotect = get_string('blockunprotect', 'admin'); /// If data submitted, then process and store. if (!empty($hide) && confirm_sesskey()) { if (!$block = $DB->get_record('block', array('id'=>$hide))) { print_error('blockdoesnotexist', 'error'); } $DB->set_field('block', 'visible', '0', array('id'=>$block->id)); // Hide block add_to_config_log('block_visibility', $block->visible, '0', $block->name); core_plugin_manager::reset_caches(); admin_get_root(true, false); // settings not required - only pages } if (!empty($show) && confirm_sesskey() ) { if (!$block = $DB->get_record('block', array('id'=>$show))) { print_error('blockdoesnotexist', 'error'); } $DB->set_field('block', 'visible', '1', array('id'=>$block->id)); // Show block add_to_config_log('block_visibility', $block->visible, '1', $block->name); core_plugin_manager::reset_caches(); admin_get_root(true, false); // settings not required - only pages } if (!empty($protect) && confirm_sesskey()) { block_manager::protect_block((int)$protect); admin_get_root(true, false); // settings not required - only pages } if (!empty($unprotect) && confirm_sesskey()) { block_manager::unprotect_block((int)$unprotect); admin_get_root(true, false); // settings not required - only pages } $undeletableblocktypes = block_manager::get_undeletable_block_types(); echo $OUTPUT->header(); echo $OUTPUT->heading($strmanageblocks); /// Main display starts here /// Get and sort the existing blocks if (!$blocks = $DB->get_records('block', array(), 'name ASC')) { print_error('noblocks', 'error'); // Should never happen } $incompatible = array(); /// Print the table of all blocks $table = new flexible_table('admin-blocks-compatible'); $table->define_columns(array('name', 'instances', 'version', 'hideshow', 'undeletable', 'settings', 'uninstall')); $table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strprotecthdr, $strsettings, $struninstall)); $table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php'); $table->set_attribute('class', 'admintable blockstable generaltable'); $table->set_attribute('id', 'compatibleblockstable'); $table->setup(); $tablerows = array(); // Sort blocks using current locale. $blocknames = array(); foreach ($blocks as $blockid=>$block) { $blockname = $block->name; if (file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) { $blocknames[$blockid] = get_string('pluginname', 'block_'.$blockname); } else { $blocknames[$blockid] = $blockname; } } core_collator::asort($blocknames); foreach ($blocknames as $blockid=>$strblockname) { $block = $blocks[$blockid]; $blockname = $block->name; $dbversion = get_config('block_'.$block->name, 'version'); if (!file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) { $blockobject = false; $strblockname = '<span class="notifyproblem">'.$strblockname.' ('.get_string('missingfromdisk').')</span>'; $plugin = new stdClass(); $plugin->version = $dbversion; } else { $plugin = new stdClass(); $plugin->version = '???'; if (file_exists("$CFG->dirroot/blocks/$blockname/version.php")) { include("$CFG->dirroot/blocks/$blockname/version.php"); } if (!$blockobject = block_instance($block->name)) { $incompatible[] = $block; continue; } } if ($uninstallurl = core_plugin_manager::instance()->get_uninstall_url('block_'.$blockname, 'manage')) { $uninstall = html_writer::link($uninstallurl, $struninstall); } else { $uninstall = ''; } $settings = ''; // By default, no configuration if ($blockobject and $blockobject->has_config()) { $blocksettings = admin_get_root()->locate('blocksetting' . $block->name); if ($blocksettings instanceof admin_externalpage) { $settings = '<a href="' . $blocksettings->url . '">' . get_string('settings') . '</a>'; } else if ($blocksettings instanceof admin_settingpage) { $settings = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=blocksetting'.$block->name.'">'.$strsettings.'</a>'; } else if (!file_exists($CFG->dirroot.'/blocks/'.$block->name.'/settings.php')) { // If the block's settings node was not found, we check that the block really provides the settings.php file. // Note that blocks can inject their settings to other nodes in the admin tree without using the default locations. // This can be done by assigning null to $setting in settings.php and it is a valid case. debugging('Warning: block_'.$block->name.' returns true in has_config() but does not provide a settings.php file', DEBUG_DEVELOPER); } } // MDL-11167, blocks can be placed on mymoodle, or the blogs page // and it should not show up on course search page $totalcount = $DB->count_records('block_instances', array('blockname'=>$blockname)); $count = $DB->count_records('block_instances', array('blockname'=>$blockname, 'pagetypepattern'=>'course-view-*')); if ($count>0) { $blocklist = "<a href=\"{$CFG->wwwroot}/course/search.php?blocklist=$blockid&sesskey=".sesskey()."\" "; $blocklist .= "title=\"$strshowblockcourse\" >$totalcount</a>"; } else { $blocklist = "$totalcount"; } $class = ''; // Nothing fancy, by default if (!$blockobject) { // ignore $visible = ''; } else if ($blocks[$blockid]->visible) { $visible = '<a href="blocks.php?hide='.$blockid.'&sesskey='.sesskey().'" title="'.$strhide.'">'. '<img src="'.$OUTPUT->pix_url('t/hide') . '" class="iconsmall" alt="'.$strhide.'" /></a>'; } else { $visible = '<a href="blocks.php?show='.$blockid.'&sesskey='.sesskey().'" title="'.$strshow.'">'. '<img src="'.$OUTPUT->pix_url('t/show') . '" class="iconsmall" alt="'.$strshow.'" /></a>'; $class = 'dimmed_text'; } if ($dbversion == $plugin->version) { $version = $dbversion; } else { $version = "$dbversion ($plugin->version)"; } if (!$blockobject) { // ignore $undeletable = ''; } else if (in_array($blockname, $undeletableblocktypes)) { $undeletable = '<a href="blocks.php?unprotect='.$blockid.'&sesskey='.sesskey().'" title="'.$strunprotect.'">'. '<img src="'.$OUTPUT->pix_url('t/unlock') . '" class="iconsmall" alt="'.$strunprotect.'" /></a>'; } else { $undeletable = '<a href="blocks.php?protect='.$blockid.'&sesskey='.sesskey().'" title="'.$strprotect.'">'. '<img src="'.$OUTPUT->pix_url('t/lock') . '" class="iconsmall" alt="'.$strprotect.'" /></a>'; } $row = array( $strblockname, $blocklist, $version, $visible, $undeletable, $settings, $uninstall, ); $table->add_data($row, $class); } $table->print_html(); if (!empty($incompatible)) { echo $OUTPUT->heading(get_string('incompatibleblocks', 'blockstable', 'admin')); $table = new flexible_table('admin-blocks-incompatible'); $table->define_columns(array('block', 'uninstall')); $table->define_headers(array($strname, $struninstall)); $table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php'); $table->set_attribute('class', 'incompatibleblockstable generaltable'); $table->setup(); foreach ($incompatible as $block) { if ($uninstallurl = core_plugin_manager::instance()->get_uninstall_url('block_'.$block->name, 'manage')) { $uninstall = html_writer::link($uninstallurl, $struninstall); } else { $uninstall = ''; } $table->add_data(array( $block->name, $uninstall, )); } $table->print_html(); } echo $OUTPUT->footer();