Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/editor/tinymce/tiny_mce/3.4.6/plugins/dragmath/dragmath.php
Go to the documentation of this file.
00001 <?php
00002 
00003 define('NO_MOODLE_COOKIES', true);
00004 
00005 require("../../../../../../../config.php");
00006 
00007 $lang = required_param('elanguage', PARAM_SAFEDIR);
00008 
00009 if (!get_string_manager()->translation_exists($lang, false)) {
00010     $lang = 'en';
00011 }
00012 $SESSION->lang = $lang;
00013 
00014 $langmapping = array('cs'=>'cz', 'pt_br'=>'pt-br');
00015 
00016 // fix non-standard lang names
00017 if (array_key_exists($lang, $langmapping)) {
00018     $lang = $langmapping[$lang];
00019 }
00020 
00021 if (!file_exists("$CFG->dirroot/lib/dragmath/applet/lang/$lang.xml")) {
00022     $lang = 'en';
00023 }
00024 
00025 @header('Content-Type: text/html; charset=utf-8');
00026 ?>
00027 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
00028     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00029 <html>
00030 <head>
00031 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
00032 <title><?php print_string('dragmath:dragmath_title', 'editor_tinymce')?></title>
00033 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
00034 <script type="text/javascript" src="js/dragmath.js"></script>
00035 </head>
00036 <body>
00037 
00038 <applet
00039         name="dragmath"
00040         codebase="<?php echo $CFG->httpswwwroot.'/lib/dragmath/applet' ?>"
00041         code="Display/MainApplet.class"
00042         archive="DragMath.jar,lib/AbsoluteLayout.jar,lib/swing-layout-1.0.jar,lib/jdom.jar,lib/jep.jar"
00043         width="540" height="300"
00044 >
00045         <param name="language" value="<?php echo $lang; ?>" />
00046         <param name="outputFormat" value="MoodleTex" />
00047     <?php print_string('dragmath:dragmath_javaneeded', 'editor_tinymce', '<a href="http://www.java.com">Java.com</a>')?>
00048 </applet>
00049 <form name="form" action="">
00050         <div>
00051         <button type="button" onclick="return DragMathDialog.insert();"><?php print_string('common:insert', 'editor_tinymce'); ?></button>
00052         <button type="button" onclick="return tinyMCEPopup.close();"><?php print_string('cancel'); ?></button>
00053         </div>
00054 </form>
00055 
00056 </body>
00057 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations