dataroot/filter/tex" )) { remove_dir( "$CFG->dataroot/filter/tex", true ); } // get strings $txt = new Object; $txt->latexsettings = get_string( 'latexsettings','admin' ); $txt->latexpreamble = get_string( 'latexpreamble','admin' ); $txt->backgroundcolour = get_string( 'backgroundcolour','admin' ); $txt->density = get_string( 'density','admin' ); $txt->pathlatex = get_string( 'pathlatex','admin' ); $txt->pathdvips = get_string( 'pathdvips','admin' ); $txt->pathconvert = get_string( 'pathconvert','admin' ); $txt->tick = '✔'; $txt->cross = '✘'; // check file exists & display tick or cross function texbinaryconfirm( $path ) { global $txt; if (is_file($path)) { echo "$txt->tick"; } else { echo "$txt->cross"; } } ?>
latexsettings; ?>  
latexpreamble; ?>
backgroundcolour; ?>
density; ?>
pathlatex; ?> filter_tex_pathlatex ); ?>
pathdvips; ?> filter_tex_pathdvips ); ?>
pathconvert; ?> filter_tex_pathconvert ); ?>