<?
if (!$geshipath) {
include('textview.php');
return;
}
require_once("$geshipath/geshi.php");
$language= @$geshilang[$filetype];
if (!$language) {
preg_match('![\w\d]+$!', $filetype, $m);
$language= @$m[0];
}
if (!$language) $language= 'text';
$text= file_get_contents( $file );
print "<!-- geshi: $language -->";
#supress warnings...
$erep= ini_get('error_reporting');
error_reporting(E_ERROR | E_WARNING);
?>
<div class='codebox'>
<?
geshi_highlight($text, $language, "$geshipath/geshi");
?>
</div>
<?
error_reporting($erep);
?>geshiview.php
application/x-php, 563 bytes (load raw)

