MDL-30070 message: Optimised search for users over multiple courses
[moodle.git] / filter / tex / displaytex.php
CommitLineData
4317f92f 1<?php
f7f0909c
PS
2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
00d9cd14 16
f7f0909c
PS
17/**
18 * This script displays tex source code, it is used also from the algebra filter.
19 *
20 * @package filter
21 * @subpackage tex
22 * @copyright 2004 Zbigniew Fiedorowicz fiedorow@math.ohio-state.edu
23 * Originally based on code provided by Bruno Vernier bruno@vsbeducation.ca
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 */
26
27
28define('NO_MOODLE_COOKIES', true); // Because it interferes with caching
29
30require('../../config.php');
31
0662bd67 32if (!filter_is_enabled('tex') and !filter_is_enabled('algebra')) {
f7f0909c
PS
33 print_error('filternotenabled');
34}
35
36$texexp = optional_param('texexp', '', PARAM_RAW);
37
38$title = get_string('source', 'filter_tex')
6ef8d79a 39
30fc04e4 40?>
f7f0909c 41<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
00d9cd14 42<html>
43 <head>
f7f0909c
PS
44 <title><?php echo $title; ?></title>
45 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
00d9cd14 46 </head>
f7f0909c
PS
47 <body>
48 <div>
49 <dl>
50 <dt><?php echo $title; ?>:</dt>
51 <dd><?php p($texexp); ?></dd>
52 </dl>
53 </div>
00d9cd14 54 </body>
f7f0909c 55</html>