-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·52 lines (36 loc) · 1.57 KB
/
index.php
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
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Randomia hauskaa — Joka refreshillä lisää paskaa</title>
<link rel="icon" href="funface.ico" type="image/x-icon" />
<link rel="shortcut icon" href="funface.ico" type="image/x-icon" />
<link rel="bookmark icon" href="funface.ico" type="image/x-icon" />
<link rel="stylesheet" href="newlinks.css" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$('.refresh').click(function() {
location.reload();
});
$('.imgbox').load('imgbox.php', function() {
$('#xiit').fadeOut(1000);
});
});
</script>
</head>
<body>
<?php include('lataa_kuva.php'); ?>
<div id="xiit">
<div class="ladataan">
<img src="ajax-loader.gif" alt="" /> <strong>Ladataan</strong> lisää paskaa...
</div>
</div>
<div id="wrapper">
<div id="prkl"><div class="imgbox"></div></div>
</div>
<footer>
<a href="#" class="refresh"><img src="f5.png" alt="f5" title="Lataa uudet kuvat" /></a>
Hakee hauskoja kuvia ympäri nettiä. Joka refreshillä haetaan uusi kuva ja näytetään randomilla jo haetuista.<br />
Paskaa koodasi taas <b>rolle</b> (@ quakenet) ~ cachessa <b><?php $path = "funbox/"; $filter = array(".", ".."); $max_images = 1; $files = array(); $dir = opendir($path); while (($file = readdir($dir)) !== false) { if (!in_array($file, $filter)) { $files[] = $file; } } echo count($files); ?></b> filua ~ <a href="https://www.pulina.fi">www.pulina.fi</a></footer>
</body>
</html>