2 // This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 * This script displays tex source code, it is used also from the algebra filter.
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
28 define('NO_MOODLE_COOKIES', true); // Because it interferes with caching
30 require('../../config.php');
32 if (!filter_is_enabled('filter/tex') and !filter_is_enabled('filter/algebra')) {
33 print_error('filternotenabled');
36 $texexp = optional_param('texexp', '', PARAM_RAW
);
38 $title = get_string('source', 'filter_tex')
41 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
44 <title
><?php
echo $title; ?
></title
>
45 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
50 <dt
><?php
echo $title; ?
>:</dt
>
51 <dd
><?php
p($texexp); ?
></dd
>