mimetex.cgi support


Render tex code by using mimetex.cgi. Replace $mimetex_cgi with your alternative. If you donnot have a hosted mimetex.cgi, don't be worry. Feel free to send email to xkyanh_at_gmail.com to register a free mimetex.cgi support. Please give me some information about your hostname. I need that information to protect my server from attacking.

The author of this support is kyanh

'mimetex.php'

<?php

/**
 * Display tex code using http://kyanh.net/cgi-bin/mimetex.cgi
 *
 * Configuration: replace $mimetex_cgi with your alternative. If you donnot have
 * a hosted mimetex.cgi, don't be worry. Feel free to send email to xkyanh@gmail.com
 * to register a free mimetex.cgi support. Please give me some information about
 * your hostname. I need that information to protect my server from attacking.
 *
 * Example: {{tex code="x^2+y^2"}}
 *
 * @package     Actions
 * @version     $Id$
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
 * @filesource
 *
 * @author {@link http://wikkawiki.org/kyanh kyanh} (original code)
 *
 **/


$mimetex_cgi = "http://kyanh.net/cgi-bin/mimetex.cgi";
$code = $vars['code'];
$title = $alt = $this->htmlspecialchars_ent($code);

$output = "<img src=\"$mimetex_cgi?".$code.'" alt="'.$alt.'" title="'.$title.'" />';
print($output);
?>


CategoryUserContributions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki