-
Notifications
You must be signed in to change notification settings - Fork 1
/
star.php
167 lines (155 loc) · 5.64 KB
/
star.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
<?php
error_reporting(0);
include "jitendraunatti.php";
$ASUR = jitendraunatti();
?>
<!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']; ?>">
<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(150px, 1fr));
gap: 20px
}
.channel {
display: flex;
flex-direction: column;
align-items: center;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.channel:hover {
transform: translateY(-5px);
}
.channel img {
width: 150px;
height: auto;
margin-bottom: 20px;
}
.channel-info {
text-align: center;
}
.channel-info h2 {
margin: 0;
font-size: 1.5em;
color: #333;
}
.channel-info p {
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;
}
.channel-info a:hover {
background-color: #0056b3;
}
.filter {
margin-bottom: 20px;
}
.filter select {
padding: 8px;
font-size: 1em;
border-radius: 5px;
border: 1px solid #ccc;
margin-right: 10px;
}
</style>
</head>
<body>
<center>
<h1 style="color: white;"><?php echo $ASUR['message6']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message7']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message8']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message9']; ?></h1>
<h1 style="color: white;"><?php echo $ASUR['message10']; ?></h1>
<div class="channels">
<?php
$fileContent = file_get_contents($ASUR['star']);
$lines = explode("\n", $fileContent);
if($ASUR['latest_script'] === jitendra_kumar()){
foreach ($lines as $line) {
if (strpos($line, "#EXTINF") === 0) {
preg_match('/tvg-id="([^"]+)".*tvg-name="([^"]+)".*tvg-logo="([^"]+)".*group-title="([^"]+)",([^ ]+) (.*)/', $line, $matches);
$tvgId = $matches[1];
$tvgname = $matches[2];
$logo = $matches[3];
$groupTitle = $matches[4];
$nameAndStreamUrl = $matches[5];
echo '<div class="channel">';
echo '<img src="' . $logo . '" alt="' . $tvgname . ' Logo">';
echo '<div class="channel-info">';
echo '<h2>' . $tvgname . '</h2>';
echo '<a href="pplay.php?id=' . $tvgId . '" target="">Watch Now</a>';
echo '</div>';
echo '</div>';
}
}
}
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>
<script>
document.addEventListener("DOMContentLoaded", function() {
const languageSelect = document.getElementById("language");
const typeSelect = document.getElementById("type");
const channels = document.querySelectorAll(".channel");
languageSelect.addEventListener("change", filterChannels);
typeSelect.addEventListener("change", filterChannels);
function filterChannels() {
const selectedLanguage = languageSelect.value;
const selectedType = typeSelect.value;
channels.forEach(function(channel) {
const channelLanguage = channel.getAttribute("data-language");
const channelType = channel.getAttribute("data-type");
if ((selectedLanguage === "" || channelLanguage === selectedLanguage) &&
(selectedType === "" || channelType === selectedType)) {
channel.style.display = "block";
} else {
channel.style.display = "none";
}
});
}
});
</script>
</center>
</body>
</html>