function math_filter($courseid, $text)
{
    global $TAGS;
    global $CFG;
    WF_initmathfilter();
    return WF_filter_math($text, FALSE);
}
function wiris_filter($courseid, $text)
{
    WF_initappletfilter();
    WF_initmathfilter();
    // Perform transformations if necessary
    $text = WF_filter_fix($text);
    $text = WF_filter_applet($text);
    $text = WF_filter_math($text, FALSE);
    return $text;
}
Esempio n. 3
0
    $TRANSLATION['Test 5: testing getting wiris cache'] = 'Test 5: testing getting wiris cache';
    $TRANSLATION['Raw text from database (parsed)'] = 'Raw text from database (parsed)';
    $TRANSLATION['Test 6: testing creating image'] = 'Test 6: testing creating image';
    $TRANSLATION['Moodle charset'] = 'Moodle charset';
    $TRANSLATION['Test failed'] = 'Test failed';
    $TRANSLATION['PHP4 test'] = 'PHP4 test';
    $TRANSLATION['PHP4 compatibility mode activated: '] = 'PHP4 compatibility mode activated: ';
    $TRANSLATION['Test fsocketopen()'] = 'Test fsocketopen()';
    $TRANSLATION['Could not connect to:'] = 'Could not connect to:';
    $TRANSLATION['Connecting to:'] = 'Connecting to:';
}
$TRANSLATION = array();
setEnglish($TRANSLATION);
require_once '../config.php';
require_once 'filter/math_filter.php';
WF_initmathfilter();
?>

<html>
	<head>
		<meta name="tipo_contenido" content="text/html;" http-equiv="content-type" charset="utf-8">
		<title><?php 
echo $TRANSLATION['Test page'];
?>
</title>
		
		<style type="text/css">
			body {
				background-color: #E0E0E0;
			}
		</style>