1 <?php
// $Id$ preview for insert image dialog
3 require("../../../../config.php");
5 $id = optional_param('id', SITEID
, PARAM_INT
);
6 $imageurl = required_param('imageurl', PARAM_RAW
);
9 require_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE
, $id));
11 @header
('Content-Type: text/html; charset=utf-8');
14 $imagetag = clean_text('<img src="'.htmlSpecialChars(stripslashes_safe($imageurl)).'" alt="" />');
17 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
18 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21 <title
><?php
echo get_string('preview') ?
></title
>
22 <style type
="text/css">
26 <body bgcolor
="#ffffff">
28 <?php
echo $imagetag ?
>