aboutsummaryrefslogtreecommitdiff
path: root/views/default/dokuwiki/index.php
blob: 424f1109bcedf74d29503bd31bcd5eb67cde866b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
	global $CONFIG;
	$destfile = $CONFIG->pluginspath.'dokuwiki/vendors/dokuwiki/'.$vars['page'];
	if (file_exists($destfile)) {
	       	if (strpos($destfile, ".png") === FALSE)
		{
 	       		include($destfile);
		} else {
			header("Content-type: image");
			echo file_get_contents($destfile);
		}
	}
?>