芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/error/index.php
wwwroot); } // Send the message and redirect. $eventdata = new \core\message\message(); $eventdata->courseid = SITEID; $eventdata->component = 'moodle'; $eventdata->name = 'errors'; $eventdata->userfrom = $USER; $eventdata->userto = core_user::get_support_user(); $eventdata->subject = 'Error: '. $form->referer .' -> '. $form->requested; $eventdata->fullmessage = $form->text; $eventdata->fullmessageformat = FORMAT_PLAIN; $eventdata->fullmessagehtml = ''; $eventdata->smallmessage = ''; message_send($eventdata); redirect($CFG->wwwroot .'/course/', 'Message sent, thanks', 3); exit; } $site = get_site(); $redirecturl = empty($_SERVER['REDIRECT_URL']) ? '' : $_SERVER['REDIRECT_URL']; $httpreferer = get_local_referer(false); $requesturi = empty($_SERVER['REQUEST_URI']) ? '' : $_SERVER['REQUEST_URI']; header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); $PAGE->set_url('/error/'); $PAGE->set_context(context_system::instance()); $PAGE->set_title($site->fullname .':Error'); $PAGE->set_heading($site->fullname .': Error 404'); $PAGE->navbar->add('Error 404 - File not Found'); echo $OUTPUT->header(); echo $OUTPUT->box(get_string('pagenotexist', 'error'). '
'.s($requesturi), 'generalbox boxaligncenter'); if (isloggedin()) { ?>
</textarea>
continue_button($CFG->wwwroot); } echo $OUTPUT->footer(); ?>