-
Notifications
You must be signed in to change notification settings - Fork 0
/
tvshows.php
62 lines (45 loc) · 1.62 KB
/
tvshows.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
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>.: Patio, a PHP/MySQL frontend for XBMC :.</title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
<script type="application/javascript" src="iscroll.js"></script>
<script type="text/javascript">
function loaded() {
var scrollContent = new iScroll('wrapper');
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
window.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);
</script>
</head>
<body>
<div id="wrapper">
<div id="scroller">
<ul id="thelist">
<?php
include('config.php');
if(substr($tvshow_thumb, -1) != "/") $tvshow_thumb .= "/";
$images = glob("" . $tvshow_thumb . "*.tbn");
$imgs = '';
foreach($images as $image){ $imgs[] = "$image"; }
foreach($images as $image){ $imgs[] = "$image"; }
foreach ($imgs as $img)
{
$path = htmlspecialchars($img, ENT_QUOTES);
$name = str_replace($tvshow_thumb, '', $img);
echo "<a href = 'showdetails.php?name=".urlencode($name)."&type=tvshow'> <img class= 'resize' src = '$path' /> </a>";
}
?>
</div>
</div>
<div id="footer">
<a href = "index.php">
<img src = "images/movies.png" />
</a>
</div>
</body>
</html>