Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / editor / htmlarea / popups / preview.php
blob204302ed104b10155bb3e3eadcfee4dc882dfe5e
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);
8 require_login($id);
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">
19 <html>
20 <head>
21 <title><?php echo get_string('preview') ?></title>
22 <style type="text/css">
23 body { margin: 2px; }
24 </style>
25 </head>
26 <body bgcolor="#ffffff">
28 <?php echo $imagetag ?>
30 </body>
31 </html>