Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 597 Bytes
<?php
require_once dirname(__FILE__) . '/lib/HatenaSyntax.php';
require_once dirname(__FILE__) . '/lib/Hslide.php';
if (!isset($_GET['theme'])) {
$themes = glob(dirname(__FILE__) . '/theme/*');
foreach ($themes as $i => $theme) {
$themes[$i] = substr($theme, strlen(dirname(__FILE__) . '/theme/'));
}
require_once dirname(__FILE__) . '/template/index.php';
exit;
}
$themeName = isset($_GET['theme']) ? $_GET['theme'] : 'default';
$text = file_get_contents(dirname(__FIle__) . '/slide.txt');
$hs = new Hslide(dirname(__FILE__), $themeName);
echo $hs->render($text);