-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.php
319 lines (293 loc) · 12.1 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?php
include "jitendraunatti.php";
$ASUR = jitendraunatti();
$BLOODY_SWEET = json_decode(jio_data(),true);
if (!file_exists("$JITENDRA_PRO_DEV_X_DARK_SIDE/authToken.txt") || empty(file_get_contents("$JITENDRA_PRO_DEV_X_DARK_SIDE/authToken.txt")) || !isset($BLOODY_SWEET["authToken"])) {
header("Location: login.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo "JIOTV+ " . $ASUR['hname']; ?></title>
<link rel="shortcut icon" type="image/x-icon" href="<?php echo $ASUR['himg']; ?>">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background-image: url('<?php echo $ASUR["bgpic"]; ?>');
background-size: cover;
background-attachment: fixed;
background-position: center;
color: #f3f3f3;
text-align: center;
padding: 0;
margin: 0;
min-height: 100vh;
}
.channels {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
padding: 20px;
}
.channel {
display: flex;
flex-direction: column;
align-items: center;
background: black;
padding: 20px;
border-radius: 15px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-decoration: none;
color: inherit;
overflow: hidden;
}
.channel:hover {
transform: translateY(-10px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}
.channel img {
width: 100%;
height: auto;
max-width: 150px;
border-radius: 50%;
margin-bottom: 20px;
transition: transform 0.3s ease;
}
.channel:hover img {
transform: scale(1.1);
}
.channel-info {
text-align: center;
}
.channel-info h2 {
margin: 0;
font-size: 1.4em;
color: #333;
}
.channel-info p {
margin: 5px 0;
color: #666;
font-size: 0.9em;
}
.badge {
display: inline-block;
padding: 5px 10px;
font-size: 0.8em;
color: #fff;
border-radius: 20px;
margin-top: 5px;
}
.badge-entertainment { background-color: #f39c12; }
.badge-news { background-color: #e74c3c; }
.badge-sports { background-color: #3498db; }
.badge-kids { background-color: #8e44ad; }
#jtvh1 img {
max-width: 200px;
height: 100px;
}
#userButtons {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 20px;
}
#userButtons button {
padding: 10px 20px;
font-size: 1em;
border: none;
border-radius: 5px;
background-color: #007bff;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
#userButtons button:hover {
background-color: #0056b3;
}
#searchWrapper {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
#searchBar {
padding: 8px;
font-size: 1em;
border-radius: 5px;
border: 1px solid #ccc;
width: 300px;
}
.filter {
margin-bottom: 20px;
}
.filter select {
padding: 8px;
font-size: 1em;
border-radius: 5px;
border: 1px solid #ccc;
margin-right: 10px;
}
.badge-hindi { background-color: #FF5722; color: white; }
.badge-english { background-color: #2196F3; color: white; }
.badge-marathi { background-color: #4CAF50; color: white; }
.badge-punjabi { background-color: #FFC107; color: white; }
.badge-urdu { background-color: #9C27B0; color: white; }
.badge-default { background-color: #BDC3C7; color: black; }
</style>
</head>
<body>
<center>
<header>
<div id="jtvh1">
<img src="https://ik.imagekit.io/techiesneh/tv_logo/jtv-plus_TMaGGk6N0.png" alt="JIOTV+">
</div>
<div id="userButtons">
<button id="loginButton" onclick="window.location.href='login.php'">Login</button>
<button id="PlayListButton" onclick="window.location.href='playlist.php'">PlayList</button>
<button id="PlayListButton" onclick="window.location.href='star.php'">Star Tv</button>
</div>
<h1 style="color: white;"><?php echo $ASUR['message1']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message2']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message3']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message4']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message5']; ?></h1>
</header>
</br>
<div id="searchWrapper">
<input type="text" name="searchBar" id="searchBar" placeholder="Search ..." />
</div>
<div class="filter">
<label for="language">Language:</label>
<select id="language">
<option value="">All</option>
<option value="Hindi">Hindi</option>
<option value="English">English</option>
<option value="Marathi">Marathi</option>
<option value="Punjabi">Punjabi</option>
<option value="Urdu">Urdu</option>
<option value="Bengali">Bengali</option>
<option value="Malayalam">Malayalam</option>
<option value="Tamil">Tamil</option>
<option value="Gujarati">Gujarati</option>
<option value="Odia">Odia</option>
<option value="Telugu">Telugu</option>
<option value="Bhojpuri">Bhojpuri</option>
<option value="Kannada">Kannada</option>
<option value="Assamese">Assamese</option>
<option value="Nepali">Nepali</option>
<option value="French">French</option>
</select>
<label for="type">Type:</label>
<select id="type">
<option value="">All</option>
<option value="Entertainment">Entertainment</option>
<option value="Movies">Movies</option>
<option value="Kids">Kids</option>
<option value="Sports">Sports</option>
<option value="Lifestyle">Lifestyle</option>
<option value="Infotainment">Infotainment</option>
<option value="News">News</option>
<option value="Music">Music</option>
<option value="Devotional">Devotional</option>
<option value="Business">Business</option>
<option value="Educational">Educational</option>
<option value="Shopping">Shopping</option>
<option value="JioDarshan">JioDarshan</option>
</select>
</div>
</center>
<div class="channels">
<?php
function getLanguageBadgeClass($language) {
$languageClasses = [
'Hindi' => 'badge-hindi',
'English' => 'badge-english',
'Marathi' => 'badge-marathi',
'Punjabi' => 'badge-punjabi',
'Urdu' => 'badge-urdu',
];
return $languageClasses[$language] ?? 'badge-default';
}
if($ASUR['latest_script'] === jitendra_kumar()){
$fileContent = file_get_contents($ASUR['play'][0]);
$lines = explode("\n", $fileContent);
foreach ($lines as $line) {
if (strpos($line, "#EXTINF") === 0) {
if (preg_match('/tvg-id="([^"]+)".*tvg-name="([^"]+)".*tvg-type="([^"]+)".*group-title="([^"]+)".*tvg-language="([^"]+)".*tvg-logo="([^"]+)"/', $line, $matches)) {
$tvgId = $matches[1];
$name = $matches[2];
$type = $matches[3];
$groupTitle = $matches[4];
$language = $matches[5];
$logo = $matches[6];
$streamUrl = trim(end($lines));
$logo1 = str_replace("https://jiotvimages.cdn.jio.com/dare_images/images/", "", $logo);
$logo1 = str_replace(".png", "", $logo1);
$badgeClass = getLanguageBadgeClass($language);
echo '<a href="playy.php?id=' . $tvgId . "&cid=" . $logo1 . '" class="channel" data-language="' . $language . '" data-type="' . $type . '" target="_blank">';
echo '<img src="' . $logo . '" alt="' . $name . ' Logo">';
echo '<div class="channel-info">';
echo '<h2 style="color: white;">' . $name . '</h2>';
echo '<div class="badges-container">';
echo '<span class="badge badge-' . strtolower($type) . '">' . $type . '</span>';
echo '<span class="badge ' . $badgeClass . '">' . $language . '</span>';
echo '</div>';
echo '</div>';
echo '</a>';
}
}
}
} else {
echo '
<div style="display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f4f4f9;">
<div style="text-align: center; background: #ffffff; padding: 40px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);">
<h1 style="color: #333; font-family: Arial, sans-serif; margin-bottom: 20px;">🆕 UPDATE IS AVAILABLE NOW</h1>
<p style="font-size: 18px; color: #555; margin-bottom: 30px;">A new version of the script is now available. Click the button below to download the latest version.</p>
<a href="https://github.com/Jitendraunatti?tab=repositories" style="display: inline-block; background-color: #28a745; color: #ffffff; padding: 10px 20px; font-size: 18px; border-radius: 5px; text-decoration: none; transition: background-color 0.3s;">
Download Now
</a>
</div>
</div>
';
}
?>
</div>
<!-- JS Scripts -->
<script>
document.addEventListener("DOMContentLoaded", function() {
const languageSelect = document.getElementById("language");
const typeSelect = document.getElementById("type");
const searchBar = document.getElementById("searchBar");
const channels = document.querySelectorAll(".channel");
languageSelect.addEventListener("change", filterChannels);
typeSelect.addEventListener("change", filterChannels);
searchBar.addEventListener("input", filterChannels);
function filterChannels() {
const selectedLanguage = languageSelect.value;
const selectedType = typeSelect.value;
const searchTerm = searchBar.value.toLowerCase();
channels.forEach(function(channel) {
const channelLanguage = channel.getAttribute("data-language");
const channelType = channel.getAttribute("data-type");
const channelName = channel.querySelector(".channel-info h2").textContent.toLowerCase();
if ((selectedLanguage === "" || channelLanguage === selectedLanguage) &&
(selectedType === "" || channelType === selectedType) &&
(searchTerm === "" || channelName.includes(searchTerm))) {
channel.style.display = "block";
} else {
channel.style.display = "none";
}
});
}
});
</script>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>