2018-06-26 20:16:57 +00:00
|
|
|
<?php
|
|
|
|
$data = yaml_parse_file("arc{$arc_san}/bump{$bump_san}.yml");
|
|
|
|
if ($data==FALSE) {
|
|
|
|
echo "\t<h4>Error</h4>\n";
|
2018-06-27 02:43:33 +00:00
|
|
|
echo "\t<p>The bump you requested does not exist or is not stored here. <a href='index.php'>Go back home.</a></p>\n";
|
2018-06-26 20:16:57 +00:00
|
|
|
include 'footer.php';
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<h4>Arc <?=$arc_san?> [<?=$arc_name?>], Bump <?=$bump_san?> (Overall number <?=$bumpn?>)</h4>
|
|
|
|
<h5>Bump</h5>
|
|
|
|
<?php
|
|
|
|
if (isset($data["bump_url"])&&isset($data["bump_url_type"])) {
|
|
|
|
if ($data["bump_url_type"]=="youtube") {
|
2018-06-26 20:32:36 +00:00
|
|
|
$bump_embed = str_replace("/watch?v=","/embed/",$data["bump_url"]);
|
2018-06-26 20:16:57 +00:00
|
|
|
echo "\t<iframe width='560' height='315' src='{$bump_embed}' frameborder='0' allow='encrypted-media' allowfullscreen></iframe>\n";
|
|
|
|
}
|
2018-06-30 00:39:21 +00:00
|
|
|
if ($data["bump_url_type"]=="gdrive") {
|
|
|
|
$bump_embed = str_replace("/view","/preview",$data["bump_url"]);
|
|
|
|
echo "\t<iframe src='{$bump_embed}' width='640' height='480'></iframe>\n";
|
|
|
|
}
|
2018-06-26 20:16:57 +00:00
|
|
|
} else {
|
|
|
|
echo "\t<p>Something's wrong. Please contact the sitemaster at khuxkm<at>tilde<dot>team.</p>\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<h5>Music</h5>
|
|
|
|
<?php
|
|
|
|
if (isset($data["music_url"])&&isset($data["music_url_type"])) {
|
|
|
|
if ($data["music_url_type"]=="youtube") {
|
2018-06-26 20:32:36 +00:00
|
|
|
$music_embed = str_replace("/watch?v=","/embed/",$data["music_url"]);
|
2018-06-26 20:16:57 +00:00
|
|
|
echo "\t<iframe width='560' height='315' src='{$music_embed}' frameborder='0' allow='encrypted-media' allowfullscreen></iframe>\n";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
echo "\t<p>Something's wrong. Please contact the sitemaster at khuxkm<at>tilde<dot>team.</p>\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<h5>Transcript</h5>
|
2018-06-27 02:21:03 +00:00
|
|
|
<pre>
|
|
|
|
<?php
|
|
|
|
echo rtrim($data["transcript"]);
|
|
|
|
echo "\n";
|
|
|
|
?>
|
|
|
|
</pre>
|