Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.178.155
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead.aptans /
grade /
export /
txt /
[ HOME SHELL ]
Name
Size
Permission
Action
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
dump.php
2.29
KB
-rw-r--r--
export.php
2.59
KB
-rw-rw-r--
grade_export_txt.php
4.51
KB
-rw-r--r--
index.php
2.22
KB
-rw-rw-r--
version.php
1.17
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : grade_export_txt.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/>. require_once($CFG->dirroot.'/grade/export/lib.php'); require_once($CFG->libdir . '/csvlib.class.php'); class grade_export_txt extends grade_export { public $plugin = 'txt'; public $separator; // default separator /** * Constructor should set up all the private variables ready to be pulled * @param object $course * @param int $groupid id of selected group, 0 means all * @param stdClass $formdata The validated data from the grade export form. */ public function __construct($course, $groupid, $formdata) { parent::__construct($course, $groupid, $formdata); $this->separator = $formdata->separator; // Overrides. $this->usercustomfields = true; } public function get_export_params() { $params = parent::get_export_params(); $params['separator'] = $this->separator; return $params; } public function print_grades() { global $CFG; $export_tracking = $this->track_exports(); $strgrades = get_string('grades'); $profilefields = grade_helper::get_user_profile_fields($this->course->id, $this->usercustomfields); $shortname = format_string($this->course->shortname, true, array('context' => context_course::instance($this->course->id))); $downloadfilename = clean_filename("$shortname $strgrades"); $csvexport = new csv_export_writer($this->separator); $csvexport->set_filename($downloadfilename); // Print names of all the fields $exporttitle = array(); foreach ($profilefields as $field) { $exporttitle[] = $field->fullname; } if (!$this->onlyactive) { $exporttitle[] = get_string("suspended"); } // Add grades and feedback columns. foreach ($this->columns as $grade_item) { foreach ($this->displaytype as $gradedisplayname => $gradedisplayconst) { $exporttitle[] = $this->format_column_name($grade_item, false, $gradedisplayname); } if ($this->export_feedback) { $exporttitle[] = $this->format_column_name($grade_item, true); } } // Last downloaded column header. $exporttitle[] = get_string('timeexported', 'gradeexport_txt'); $csvexport->add_data($exporttitle); // Print all the lines of data. $geub = new grade_export_update_buffer(); $gui = new graded_users_iterator($this->course, $this->columns, $this->groupid); $gui->require_active_enrolment($this->onlyactive); $gui->allow_user_custom_fields($this->usercustomfields); $gui->init(); while ($userdata = $gui->next_user()) { $exportdata = array(); $user = $userdata->user; foreach ($profilefields as $field) { $fieldvalue = grade_helper::get_user_field_value($user, $field); $exportdata[] = $fieldvalue; } if (!$this->onlyactive) { $issuspended = ($user->suspendedenrolment) ? get_string('yes') : ''; $exportdata[] = $issuspended; } foreach ($userdata->grades as $itemid => $grade) { if ($export_tracking) { $status = $geub->track($grade); } foreach ($this->displaytype as $gradedisplayconst) { $exportdata[] = $this->format_grade($grade, $gradedisplayconst); } if ($this->export_feedback) { $exportdata[] = $this->format_feedback($userdata->feedbacks[$itemid], $grade); } } // Time exported. $exportdata[] = time(); $csvexport->add_data($exportdata); } $gui->close(); $geub->close(); $csvexport->download_file(); exit; } }
Close