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 /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
lib.php
1.78
KB
-rw-r--r--
2017-06-22 14:56
user_bulk.php
2.77
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_cohortadd.php
4.44
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_cohortadd_form.php
1.37
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_confirm.php
2.19
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_delete.php
2.07
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_display.php
2.38
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_download.php
3.84
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_forcepasswordchange.php
2.44
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_forms.php
4.5
KB
-rw-r--r--
2017-06-22 14:57
user_bulk_message.php
2.56
KB
-rw-r--r--
2017-06-22 14:57
user_message_form.php
593
B
-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/>. /** * Bulk export user into any dataformat * * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @copyright 2007 Petr Skoda * @package core */ define('NO_OUTPUT_BUFFERING', true); require_once('../../config.php'); require_once($CFG->libdir.'/adminlib.php'); require_once($CFG->libdir.'/dataformatlib.php'); require_once($CFG->dirroot.'/user/profile/lib.php'); $dataformat = optional_param('dataformat', '', PARAM_ALPHA); require_login(); admin_externalpage_setup('userbulk'); require_capability('moodle/user:update', context_system::instance()); if (empty($SESSION->bulk_users)) { redirect(new moodle_url('/admin/user/user_bulk.php')); } if ($dataformat) { $fields = array('id' => 'id', 'username' => 'username', 'email' => 'email', 'firstname' => 'firstname', 'lastname' => 'lastname', 'idnumber' => 'idnumber', 'institution' => 'institution', 'department' => 'department', 'phone1' => 'phone1', 'phone2' => 'phone2', 'city' => 'city', 'url' => 'url', 'icq' => 'icq', 'skype' => 'skype', 'aim' => 'aim', 'yahoo' => 'yahoo', 'msn' => 'msn', 'country' => 'country'); if ($extrafields = $DB->get_records('user_info_field')) { foreach ($extrafields as $n => $field) { $fields['profile_field_'.$field->shortname] = 'profile_field_'.$field->shortname; require_once($CFG->dirroot.'/user/profile/field/'.$field->datatype.'/field.class.php'); } } $filename = clean_filename(get_string('users')); $downloadusers = new ArrayObject($SESSION->bulk_users); $iterator = $downloadusers->getIterator(); download_as_dataformat($filename, $dataformat, $fields, $iterator, function($userid) use ($extrafields, $fields) { global $DB; $row = array(); if (!$user = $DB->get_record('user', array('id' => $userid))) { return null; } foreach ($extrafields as $field) { $newfield = 'profile_field_'.$field->datatype; $formfield = new $newfield($field->id, $user->id); $formfield->edit_load_user_data($user); } $userprofiledata = array(); foreach ($fields as $field => $unused) { // Custom user profile textarea fields come in an array // The first element is the text and the second is the format. // We only take the text. if (is_array($user->$field)) { $userprofiledata[$field] = reset($user->$field); } else { $userprofiledata[$field] = $user->$field; } } return $userprofiledata; }); exit; } echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('download', 'admin')); echo $OUTPUT->download_dataformat_selector(get_string('userbulkdownload', 'admin'), 'user_bulk_download.php'); echo $OUTPUT->footer();