i wrote this cos i thought it was very useful right now
place it in any web www directory and point your users to it,
enter username and password hit submit
json_decode and displays
USERNAME | PASSWORD | STATUS | EXPIRY
Ive added a playlist download button and also copy to clipboard button
You will need to add your DNS and PORT to line 20 and 29
ENJOY !!!
<! DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title> M3U UPDATE </title>
<meta charset = "utf-8">
<meta name = "viewport" content = "width-device-width, initial-scale = 1">
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"> </script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"> </script>
<script src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"> </script>
<style>
body {
background: url (http://www.sacredheartschoolweymouth.org/wp-content/uploads/2014/10/gradient-bg.jpg) no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-size: 100% 100%;
font-family: Orbitron, sans-serif;
}
</ style>
</ head>
</ head>
<BODY>
</ br> </ br> </ br> </ br> </ br> </ br>
<? php if (! empty ($ _ POST)):
$ username = $ _POST ['username'];
$ password = $ _POST ['password'];
$ exp_date = date ("dmY", $ json ['user_info'] ["exp_date"]);
$ json = json_decode (file_get_contents ("http: // YOUR-DNS: PORT / panel_api.php? username = $ username & password = $ password"), true);
?>
<center> <div class = "row">
<div class = "col-md-8 offset-2">
<div class = "jumbotron">
<h3 style = "text-align: center;"
<a href="#" class="btn btn-primary" style="background:#000000"> USER: - <? php print $ json ['user_info'] ["username"];?> </a> & nbsp;
<a href="#" class="btn btn-primary" style="background:#000000"> PASS: - <? php print $ json ['user_info'] ["password"];?> </a> & nbsp;
<a href="#" class="btn btn-primary" style="background:#000000"> STATUS - <? php print $ json ['user_info'] ["status"];?> </a> & nbsp ;
<a href="#" class="btn btn-primary" style="background:#000000"> EXPIRES - <? php $ exp_date = date ("dmY", $ json ['user_info'] ["exp_date"] ); echo $ exp_date;?> </a> & nbsp;
</ br> </ br>
<form> <input class = "form-control" type = "hidden" value = "http: // YOUR-DNS: PORT / get.php? username = <? php print $ json ['user_info'] [" username "];?> & password = <? php print $ json ['user_info'] [" password "];?> & type = m3u_plus & output = ts" id = "myInput">
<button type = "button" class = "btn btn-outline-success" onclick = "myFunction ()" style = "width: 150px; background: # 000000"> COPY M3UlArbutton>
& Nbsp; & nbsp; & nbsp;
<a href="http://YOUR-DNSORT/get.php?username=<?php print $json{'user_info' Melbour{"username" emici;?> & password = <? php print $ json [ 'user_info'] ["password"];?> & type = m3u_plus & output = ts "class =" btn btn-outline-success "role =" button "style =" width: 150px; background: # 000000 "> DOWNLOAD </a> </ form>
</ div> </ div>
</ center>
<? php else:?>
<div class = "container">
<div class = "row">
</ br> </ br> </ br>
<div class = "col-md-10 offset-1">
<div class = "jumbotron">
<h3 style = "text-align: center;"> <em> <strong> IPTV M3U PLAYLIST
<hr />
<form class = "form-inline" action = <? php echo htmlspecialchars ($ _ SERVER ["PHP_SELF"])); ?> method = "post">
<label for = "email"> <strong> USERNAME: </strong> □ label>
& nbsp; & nbsp;
<input type = "text" class = "form-control" id = "email" placeholder = "Enter Username" name = "username" required>
& nbsp; & nbsp; & nbsp;
<label for = "pwd"> <strong> PASSWORD: </strong> </label>
& nbsp; & nbsp;
<input type = "text" class = "form-control" id = "pwd" placeholder = "Enter Password" name = "password" required>
& nbsp; & nbsp;
<button type = "submit" class = "btn btn-primary"> GET M3U </button>
</ form>
</ div>
<? php endif; ?>
<Script>
function myFunction () {
var copyText = document.getElementById ("myInput");
copytext.select ();
document.execcommand ("copy");
alert ("COPIED YOUR UPDATED PLAYLIST TO CLIPBOARD: \ n" + copyText.value);
}
</ script>
</ body>
</ html>
place it in any web www directory and point your users to it,
enter username and password hit submit
json_decode and displays
USERNAME | PASSWORD | STATUS | EXPIRY
Ive added a playlist download button and also copy to clipboard button
You will need to add your DNS and PORT to line 20 and 29
ENJOY !!!
<! DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title> M3U UPDATE </title>
<meta charset = "utf-8">
<meta name = "viewport" content = "width-device-width, initial-scale = 1">
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"> </script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"> </script>
<script src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"> </script>
<style>
body {
background: url (http://www.sacredheartschoolweymouth.org/wp-content/uploads/2014/10/gradient-bg.jpg) no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-size: 100% 100%;
font-family: Orbitron, sans-serif;
}
</ style>
</ head>
</ head>
<BODY>
</ br> </ br> </ br> </ br> </ br> </ br>
<? php if (! empty ($ _ POST)):
$ username = $ _POST ['username'];
$ password = $ _POST ['password'];
$ exp_date = date ("dmY", $ json ['user_info'] ["exp_date"]);
$ json = json_decode (file_get_contents ("http: // YOUR-DNS: PORT / panel_api.php? username = $ username & password = $ password"), true);
?>
<center> <div class = "row">
<div class = "col-md-8 offset-2">
<div class = "jumbotron">
<h3 style = "text-align: center;"
<a href="#" class="btn btn-primary" style="background:#000000"> USER: - <? php print $ json ['user_info'] ["username"];?> </a> & nbsp;
<a href="#" class="btn btn-primary" style="background:#000000"> PASS: - <? php print $ json ['user_info'] ["password"];?> </a> & nbsp;
<a href="#" class="btn btn-primary" style="background:#000000"> STATUS - <? php print $ json ['user_info'] ["status"];?> </a> & nbsp ;
<a href="#" class="btn btn-primary" style="background:#000000"> EXPIRES - <? php $ exp_date = date ("dmY", $ json ['user_info'] ["exp_date"] ); echo $ exp_date;?> </a> & nbsp;
</ br> </ br>
<form> <input class = "form-control" type = "hidden" value = "http: // YOUR-DNS: PORT / get.php? username = <? php print $ json ['user_info'] [" username "];?> & password = <? php print $ json ['user_info'] [" password "];?> & type = m3u_plus & output = ts" id = "myInput">
<button type = "button" class = "btn btn-outline-success" onclick = "myFunction ()" style = "width: 150px; background: # 000000"> COPY M3UlArbutton>
& Nbsp; & nbsp; & nbsp;
<a href="http://YOUR-DNSORT/get.php?username=<?php print $json{'user_info' Melbour{"username" emici;?> & password = <? php print $ json [ 'user_info'] ["password"];?> & type = m3u_plus & output = ts "class =" btn btn-outline-success "role =" button "style =" width: 150px; background: # 000000 "> DOWNLOAD </a> </ form>
</ div> </ div>
</ center>
<? php else:?>
<div class = "container">
<div class = "row">
</ br> </ br> </ br>
<div class = "col-md-10 offset-1">
<div class = "jumbotron">
<h3 style = "text-align: center;"> <em> <strong> IPTV M3U PLAYLIST
<hr />
<form class = "form-inline" action = <? php echo htmlspecialchars ($ _ SERVER ["PHP_SELF"])); ?> method = "post">
<label for = "email"> <strong> USERNAME: </strong> □ label>
& nbsp; & nbsp;
<input type = "text" class = "form-control" id = "email" placeholder = "Enter Username" name = "username" required>
& nbsp; & nbsp; & nbsp;
<label for = "pwd"> <strong> PASSWORD: </strong> </label>
& nbsp; & nbsp;
<input type = "text" class = "form-control" id = "pwd" placeholder = "Enter Password" name = "password" required>
& nbsp; & nbsp;
<button type = "submit" class = "btn btn-primary"> GET M3U </button>
</ form>
</ div>
<? php endif; ?>
<Script>
function myFunction () {
var copyText = document.getElementById ("myInput");
copytext.select ();
document.execcommand ("copy");
alert ("COPIED YOUR UPDATED PLAYLIST TO CLIPBOARD: \ n" + copyText.value);
}
</ script>
</ body>
</ html>