migrate to mysql
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html data-theme="dark">
|
||||
<head>
|
||||
<script src=assets/jquery.js> </script>
|
||||
<script>
|
||||
function deleteit(indexik){
|
||||
$.post("admin.php?delete=1",
|
||||
$.post("index.php?admin=1&delete=1",
|
||||
{
|
||||
delete: indexik
|
||||
},
|
||||
@@ -14,21 +14,21 @@
|
||||
}
|
||||
$(function() {
|
||||
function Ping() {
|
||||
$.get("index.php?keepalive=1", function(data, status){
|
||||
$.get("index.php?admin=1&keepalive=1", function(data, status){
|
||||
});
|
||||
}
|
||||
|
||||
Ping();
|
||||
setInterval(function(){ Ping(); }, 60000);
|
||||
function updateTable(){
|
||||
$.get("admin.php?onlytable=1", function(data, status){
|
||||
$.get("index.php?admin=1&onlytable=1", function(data, status){
|
||||
$("#chattablicka").html(data);
|
||||
});
|
||||
}
|
||||
setInterval(updateTable, 5000);
|
||||
updateTable();
|
||||
function updateConns(){
|
||||
$.get("admin.php?onlyconns=1", function(data, status){
|
||||
$.get("index.php?admin=1&onlyconns=1", function(data, status){
|
||||
$("#connections").html(data);
|
||||
});
|
||||
}
|
||||
@@ -57,7 +57,7 @@
|
||||
</script>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="assets/pico.css">
|
||||
<title>Administrácia</title>
|
||||
<title>Administration</title>
|
||||
<style>
|
||||
table, th, td {
|
||||
border: 2px solid;
|
||||
@@ -69,28 +69,28 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="headingac">Vysielanie</p>
|
||||
<p class="headingac">Streaming</p>
|
||||
<audio controls src="__VLOZ_URL_AUDIA__" id="audioplayer" type="__VLOZ_TYP_AUDIA__" preload="none"></audio>
|
||||
<br>
|
||||
<a href="index.php?logout=1">
|
||||
<p>Odhlásiť sa</p>
|
||||
<p>Log out</p>
|
||||
</a>
|
||||
<a href="__VLOZ_URL_AUDIA__.m3u" download target="_blank">
|
||||
<p>Playlist na stiahnutie</p>
|
||||
<p>Playlist download</p>
|
||||
</a>
|
||||
<a href="index.php">
|
||||
<p>Obyčajný prehrávač</p>
|
||||
<p>Normal player</p>
|
||||
</a>
|
||||
<p class="headingac">Pripojenia:</p>
|
||||
<p class="headingac">Connections:</p>
|
||||
<div id="connections"></div>
|
||||
<br>
|
||||
<p class="headingac">Chat admin:</p>
|
||||
<button onclick="deleteit('*')">Zmazať všetko</button>
|
||||
<button onclick="deleteit('*')">Delete all</button>
|
||||
<br>
|
||||
<div id="chattablicka"></div><br>
|
||||
|
||||
<input id="ins"></input>
|
||||
<button id="send">Odoslať</button>
|
||||
<button id="send">Send</button>
|
||||
<br>
|
||||
<p>© BRN Systems __VLOZ_ROK__</p>
|
||||
</body>
|
||||
|
@@ -37,6 +37,17 @@
|
||||
});
|
||||
|
||||
}
|
||||
else if(data == "admin"){
|
||||
$.post("index.php",
|
||||
{
|
||||
kod: kod,
|
||||
listeners: 1,
|
||||
ini: "admin"
|
||||
},
|
||||
function(data, status){
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
else{
|
||||
$("#error").fadeIn();
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<script src=assets/jquery.js> </script>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="assets/pico.css">
|
||||
<title>Vysielanie</title>
|
||||
<title>Streaming</title>
|
||||
<script>
|
||||
function getCookie(cname) {
|
||||
let name = cname + "=";
|
||||
@@ -50,7 +50,7 @@
|
||||
},
|
||||
function(data2, status){
|
||||
var chatmsgs = $("#chatbox").val();
|
||||
chatmsgs = chatmsgs + '• ' + getCookie("inicialy") + ':' + data + "\n";
|
||||
chatmsgs = chatmsgs + '• ' + 'Sending' + "\n";
|
||||
$("#chatbox").val(chatmsgs);
|
||||
});
|
||||
}
|
||||
@@ -71,20 +71,20 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="headingac">Vysielanie</p>
|
||||
<p class="headingac">Streaming</p>
|
||||
<audio controls src="__VLOZ_URL_AUDIA__" id="audioplayer" type="__VLOZ_TYP_AUDIA__" preload="none"></audio>
|
||||
<br>
|
||||
<a href="index.php?logout=1">
|
||||
<p>Odhlásiť sa</p>
|
||||
<p>Log out</p>
|
||||
</a>
|
||||
<a href="__VLOZ_URL_AUDIA__.m3u" download target="_blank">
|
||||
<p>Playlist na stiahnutie</p>
|
||||
<p>Playlist download</p>
|
||||
</a>
|
||||
__VLOZ_ADMIN_LINK__
|
||||
<div id="chat">
|
||||
<textarea rows=5 id="chatbox" readonly></textarea><br>
|
||||
<input id="ins"></input>
|
||||
<button id="send">Odoslať</button>
|
||||
<button id="send">Send</button>
|
||||
</div>
|
||||
<p>© BRN Systems __VLOZ_ROK__</p>
|
||||
</body>
|
||||
|
@@ -4,26 +4,26 @@
|
||||
<script src=assets/jquery.js> </script>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="assets/pico.css">
|
||||
<title>Pridanie streamu</title>
|
||||
<title>Stream add</title>
|
||||
<body>
|
||||
<form method="post">
|
||||
Kód:<br>
|
||||
Code:<br>
|
||||
<input type="text" name="kod">
|
||||
<br>
|
||||
Adresa zvuku:<br>
|
||||
Audio address:<br>
|
||||
<input type="text" name="url">
|
||||
<br>
|
||||
Typ zvuku:<br>
|
||||
Audio type:<br>
|
||||
<input type="radio" name="type" value="audio/mpeg">mp3
|
||||
<input type="radio" name="type" value="audio/ogg">ogg
|
||||
<br>
|
||||
<br>
|
||||
Administračné heslo streamu:<br>
|
||||
Stream administration password:<br>
|
||||
<input type="text" name="adminpwd">
|
||||
Heslo prevádzkovateľa:<br>
|
||||
Webmaster password:<br>
|
||||
<input type="text" name="heslo">
|
||||
<br>
|
||||
<input type="submit" value="pridať">
|
||||
<input type="submit" value="Add">
|
||||
<br>
|
||||
<p>© BRN Systems __VLOZ_ROK__</p>
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user