grublox/index.php

35 lines
1.3 KiB
PHP

<?php
namespace core;
require_once 'core/classes.php';
use classes\PartyStarter as PartyStarter;
$getitstarted = new PartyStarter;
$getitstarted->bootstrap();
$arraybackground = array('win7.png', 'win8.png', 'epic.png', 'yosemite.png', 'aurora.png', 'tiger.png', 'fish.png');
$countofarray = rand(0, count($arraybackground)-1);
$background = "$arraybackground[$countofarray]";
$youtubefunnies = array('bitqf13QU7Q', 'Z_V6yKKIk5U', '2tHl6O5Sp8w', '-5WcDfKndxU', 'cwyTleTL06Y');
$getthecount = rand(0, count($youtubefunnies)-1);
$youtubevideo = "$youtubefunnies[$getthecount]";
?>
<link rel="stylesheet" href="css/index.css">
<style>
body {
display: block;
background-image: url('/assets/<?php echo $background; ?>');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
margin-left: auto;
margin-right: auto;
width: 50%;
}
</style>
<title>undefined</title>
<div class="text-and-stuff"><h1>undefined</h1>
<h3>the funny website with</h3>
<a type="button" class="btn btn-dark" href="/register">Register</a>
<a type="button" class="btn btn-dark" href="/login">Login</a></div>
<div class="youtube-embed"><iframe width="470" height="295"
src="https://www.youtube.com/embed/<?php echo $youtubevideo; ?>">
</iframe></div>