Initial commit
This commit is contained in:
commit
bea4f1f7cf
|
@ -0,0 +1,3 @@
|
||||||
|
# hbarg
|
||||||
|
|
||||||
|
A bump archive for the [Heart and Brain Corp. ARG](https://heartandbrainco.wikia.com/).
|
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
first_aired: 1529896469
|
||||||
|
bump_url: https://www.youtube.com/watch?v=xt7PP_bsVrM
|
||||||
|
bump_url_type: youtube
|
||||||
|
music_url: https://www.youtube.com/watch?v=P8dJe9zQv8k
|
||||||
|
music_url_type: youtube
|
||||||
|
transcript: |
|
||||||
|
Hello
|
||||||
|
|
||||||
|
Welcome to Experiment G-15.2
|
||||||
|
|
||||||
|
Here are the rules:
|
||||||
|
|
||||||
|
9. There may be some accidents along the path to self-expression and self-determination
|
||||||
|
10. Absolutes are quicksilver.
|
||||||
|
11. Take what you can while you can
|
||||||
|
12. Everyone who watches will go crazy
|
||||||
|
|
||||||
|
[@heartandbrainco]
|
||||||
|
|
||||||
|
REFERENCE # (within the tracking static)
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
print_r(yaml_parse_file("bump2.yml"));
|
||||||
|
?>
|
|
@ -0,0 +1,5 @@
|
||||||
|
</div>
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
|
||||||
|
<link rel="stylesheet" href="https://tilde.team/css/fork-awesome.css">
|
||||||
|
<link rel="icon" type="image/png" sizes="400x400" href="logo.png">
|
||||||
|
<title>heart and brain arg bump archive | <?=($title ?? 'main')?></title>
|
||||||
|
|
||||||
|
<meta property="og:title" content="heart and brain arg bump archive | <?=($title ?? 'main')?>">
|
||||||
|
<meta property="og:url" content="https://tilde.team<?=$_SERVER['REQUEST_URI']?>">
|
||||||
|
<meta property="og:description" content="<?=($desc ?? ($title ?? 'The Heart & Brain Corp. is an ARG created by Adult Swim that started in August of 2017. This website exists to catalog its bumps in a nice, neat fashion.'))?>">
|
||||||
|
<meta property="og:image" content="https://khuxkm.tilde.team/hbarg/logo.png">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<<?=(isset($title)?"h3":"h1")?> class="header">Heart and Brain ARG Bump Archive<?=isset($title) ? " | {$title}" : ""?></h1>
|
|
@ -0,0 +1,54 @@
|
||||||
|
<?php
|
||||||
|
function haveLocation() {
|
||||||
|
$arc_exists = isset($_GET["arc"]);
|
||||||
|
$bump_exists = isset($_GET["bump"]);
|
||||||
|
$both_exist = $arc_exists && $bump_exists;
|
||||||
|
if ($both_exist) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
if ($arc_exists) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$arc_counts = array(15,8,2);
|
||||||
|
|
||||||
|
function get_bump_number($a, $b) {
|
||||||
|
$a = intval($a)-1;
|
||||||
|
$b = intval($b)-1;
|
||||||
|
if (($a==-1) || ($b==-1) || ($a>=count($arc_counts)) || ($b>=$arc_counts[$a])) {
|
||||||
|
return "invalid";
|
||||||
|
}
|
||||||
|
for ($i=0;$i<=$a;$i++) {
|
||||||
|
$b = $b + $arc_counts[$i];
|
||||||
|
}
|
||||||
|
return $b;
|
||||||
|
}
|
||||||
|
|
||||||
|
$arc_san = htmlspecialchars($_GET["arc"]??'');
|
||||||
|
$bump_san = htmlspecialchars($_GET["bump"]??'');
|
||||||
|
$bumpn = get_bump_number($arc,$bump);
|
||||||
|
$arc_names = array("1"=>"LIL_HEAD","2"=>"Find Amelia","3"=>"Experiment G-15.2");
|
||||||
|
$arc_name = $arc_names[$arc_san] ?? "Invalid";
|
||||||
|
|
||||||
|
if (haveLocation()==2) {
|
||||||
|
$title = "Arc {$arc_san}, Bump {$bump_san}";
|
||||||
|
$desc = "Bump {$bump_san} of arc {$arc_san}";
|
||||||
|
}
|
||||||
|
if (haveLocation()==1) {
|
||||||
|
$title = "Arc {$arc_san}";
|
||||||
|
$desc = "Info and bumps for Arc {$arc_san} [{$arc_name}]";
|
||||||
|
}
|
||||||
|
|
||||||
|
include 'header.php';
|
||||||
|
|
||||||
|
if (haveLocation()==0) {
|
||||||
|
include 'main.php';
|
||||||
|
}
|
||||||
|
if (haveLocation()!=0) {
|
||||||
|
echo "<p>Just testin</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
include 'footer.php';
|
||||||
|
?>
|
Loading…
Reference in New Issue