Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/filter/tex/displaytex.php
Go to the documentation of this file.
00001 <?php
00002 // This file is part of Moodle - http://moodle.org/
00003 //
00004 // Moodle is free software: you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation, either version 3 of the License, or
00007 // (at your option) any later version.
00008 //
00009 // Moodle is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00016 
00028 define('NO_MOODLE_COOKIES', true); // Because it interferes with caching
00029 
00030 require('../../config.php');
00031 
00032 if (!filter_is_enabled('filter/tex') and !filter_is_enabled('filter/algebra')) {
00033     print_error('filternotenabled');
00034 }
00035 
00036 $texexp = optional_param('texexp', '', PARAM_RAW);
00037 
00038 $title = get_string('source', 'filter_tex')
00039 
00040 ?>
00041 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
00042 <html>
00043   <head>
00044     <title><?php echo $title; ?></title>
00045     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
00046   </head>
00047   <body>
00048     <div>
00049       <dl>
00050       <dt><?php echo $title; ?>:</dt>
00051         <dd><?php p($texexp); ?></dd>
00052       </dl>
00053     </div>
00054   </body>
00055 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations