-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·40 lines (30 loc) · 1.17 KB
/
index.php
File metadata and controls
executable file
·40 lines (30 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>Image Roulette</title>
<link href="/css/main.css" rel="stylesheet" media="screen" type="text/css">
<script src="/js/jquery.min.js" type="text/javascript"></script>
<!-- <script src="/js/main.js" type="text/javascript"></script> -->
</head>
<?php
include('classes/imgur.php');
$imgur = new Imgur;
$start = microtime(true);
$next = $imgur->next(30);
$end = microtime(true);
$time = $end - $start;
?>
<body>
<div id="titleCont">
<a href="/index.php"> <h2>Random Imgur Images</h2> </a>
Total Guesses: <?php echo $imgur->iterations; ?> <br />
Known Images: <?php echo $imgur->knownImages; ?>
New Images: <?php echo $imgur->newImages; ?> <br />
Total Time: <?php echo round($time, 2); ?> seconds
</div>
<?php foreach ($next as $image): ?>
<a target="_blank" href="http://i.imgur.com/<?php echo $image; ?>.jpg" ><img class="imgur" src="/img/found/<?php echo $image; ?>.jpg" /><a/>
<?php endforeach; ?>
</body>
</html>