-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
138 lines (121 loc) · 3.85 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
include("jitendraunatti.php");
$BLOODY_SWEET = bloody_sweet();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="https://toffeelive.com/favicon.ico">
<title>Toffee - More than TV</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: black;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.container {
width: 100%;
overflow-x: hidden;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
font-size: 2.5em;
margin: 0;
color: #333;
}
.channel-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
/* Center the cards */
gap: 30px;
}
.channel {
display: flex;
flex-direction: column;
justify-content: flex-end;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
width: 250px;
height: 250px;
text-align: center;
position: relative;
}
.channel:hover {
transform: translateY(-5px);
}
.channel-info {
background-color: rgba(255, 255, 255, 0.8);
padding: 10px;
border-radius: 5px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.channel-info h2 {
font-size: 1em;
margin: 0;
color: #333;
}
.channel-info p {
font-size: 0.8em;
margin: 5px 0;
color: #666;
}
.channel-info a {
display: inline-block;
padding: 8px 16px;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
font-size: 0.8em;
}
.channel-info a:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1 style="color: white;">Toffee - More than Tv</h1>
</div>
<div class="channel-container">
<?php foreach ($BLOODY_SWEET["channels"] as $DANAV): ?>
<?php if (!empty($DANAV["link"]) && isset($DANAV["link"])): ?>
<div class="channel" style="background-image: url('<?php echo htmlspecialchars($DANAV["logo"]); ?>')">
<div class="channel-info">
<h2><?php echo htmlspecialchars($DANAV["name"]); ?></h2>
<a href="play.php?id=<?php echo htmlspecialchars(str_replace(".m3u8", "", $DANAV["link"])); ?>">Watch Now</a>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</body>
</html>