. /** * DragMath equation editor popup. * * @package tinymce_dragmath * @copyright 2008 Mauno Korpelainen * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ define('NO_MOODLE_COOKIES', true); require('../../../../../config.php'); $PAGE->set_context(context_system::instance()); $PAGE->set_url('/lib/editor/tinymce/plugins/dragmath/dragmath.php'); if (isset($SESSION->lang)) { // Language is set via page url param. $lang = $SESSION->lang; } else { $lang = 'en'; } // Find DragMath language. $langmapping = array('cs'=>'cz', 'pt_br'=>'pt-br'); // Fix non-standard lang names. if (array_key_exists($lang, $langmapping)) { $lang = $langmapping[$lang]; } if (!file_exists("$CFG->dirroot/lib/dragmath/applet/lang/$lang.xml")) { $lang = 'en'; } $editor = get_texteditor('tinymce'); $plugin = $editor->get_plugin('dragmath'); // Prevent https security problems. $relroot = preg_replace('|^http.?://[^/]+|', '', $CFG->wwwroot); $htmllang = get_html_lang(); header('Content-Type: text/html; charset=utf-8'); header('X-UA-Compatible: IE=edge'); ?> <?php print_string('title', 'tinymce_dragmath')?> Java.com')?>