smc
This commit is contained in:
56
smc/temp/js/pages/guides.php
Normal file
56
smc/temp/js/pages/guides.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#myTab a").click(function(e){
|
||||
e.preventDefault();
|
||||
$(this).tab('show');
|
||||
});
|
||||
});
|
||||
$("#myTab a:first").tab('show'); // show first tab
|
||||
|
||||
function ssiptv_upload() {
|
||||
var mac = $("#ss_mac").val();
|
||||
var username = $("#ss_username").val();
|
||||
var password = $("#ss_password").val();
|
||||
var pin = $("#ss_pin").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_playlist.php",
|
||||
data: {'mac': mac, 'username': username, 'password': password, 'pin': pin, 'type': 1},
|
||||
dataType : "json",
|
||||
success: function (response) {
|
||||
if (response == 1) {
|
||||
$("#modal_body_text").html("<?= GUIDES_MESSAGE_1; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
} else if (response == 0) {
|
||||
$("#modal_body_text").html("<?= GUIDES_MESSAGE_2; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
} else {
|
||||
$("#modal_body_text").html("<?= GUIDES_MESSAGE_3; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function royaliptv_upload() {
|
||||
var mac = $("#ry_mac").val();
|
||||
var username = $("#ry_username").val();
|
||||
var password = $("#ry_password").val();
|
||||
var url = $("#ry_url").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_playlist.php",
|
||||
data: {'mac': mac, 'username': username, 'password': password, 'type': 2},
|
||||
dataType : "json",
|
||||
success: function (response) {
|
||||
if (response == 1) {
|
||||
$("#modal_body_text").html("<?= GUIDES_MESSAGE_1; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
} else {
|
||||
$("#modal_body_text").html("<?= GUIDES_MESSAGE_3; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
0
smc/temp/js/pages/homepage.php
Normal file
0
smc/temp/js/pages/homepage.php
Normal file
123
smc/temp/js/pages/livetv.php
Normal file
123
smc/temp/js/pages/livetv.php
Normal file
@@ -0,0 +1,123 @@
|
||||
<script>
|
||||
<? if ($byakman->guvenlik($_GET["id"]) != "") { ?>
|
||||
var player = jwplayer("myElement");
|
||||
player.setup({
|
||||
"file": "<?= $siteInfo->site_xtream;?>live/<?= $byakman->userInfo('username'); ?>/<?= $byakman->userInfo('password'); ?>/<?= $byakman->guvenlik($_GET['id']); ?>.m3u8",
|
||||
aspectratio: '16:9',
|
||||
autostart: true,
|
||||
width: '100%'
|
||||
});
|
||||
player.play();
|
||||
<? } ?>
|
||||
var bouquet_id = $("#live_cat").val();
|
||||
function bouquet_get(a) {
|
||||
var bouguet_cat = a;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_livetv.php",
|
||||
data: { "type": 1, "cat": bouguet_cat},
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
$(".mobile").empty();
|
||||
$(".desktop").empty();
|
||||
$.each(response, function(index, item) {
|
||||
if (item.epg_title != null) {
|
||||
$(".mobile").append('<li onclick="yayin_ac(this);" class="list-group-item" data-id="'+ item.stream_id +'">'+ index +' - <img style="margin-right:5px" src="'+ item.stream_icon +'" width="25" />' + item.name + '<span class="epg_info">'+item.epg_title+'</span></li>');
|
||||
$(".desktop").append('<li onclick="yayin_ac(this);" class="list-group-item" data-id="'+ item.stream_id +'">'+ index +' - <img style="margin-right:5px" src="'+ item.stream_icon +'" width="25" />' + item.name + '<span class="epg_info">'+item.epg_title+'</span></li>');
|
||||
} else {
|
||||
$(".mobile").append('<li onclick="yayin_ac(this);" class="list-group-item" data-id="'+ item.stream_id +'"><div style="float:left">'+ index +' - <img style="margin-right:5px" src="'+ item.stream_icon +'" width="25" />' + item.name + '</div></li>');
|
||||
$(".desktop").append('<li onclick="yayin_ac(this);" class="list-group-item" data-id="'+ item.stream_id +'">'+ index +' - <img style="margin-right:5px" src="'+ item.stream_icon +'" width="25" />' + item.name + '</li>');
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
<? if ($byakman->guvenlik($_GET["id"]) == "") { ?>
|
||||
$('.list-group-item:first-child').click();
|
||||
<? } ?>
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
bouquet_get(bouquet_id);
|
||||
|
||||
$("#live_cat").change(function (e) {
|
||||
e.preventDefault();
|
||||
$("#live_cat2").removeClass("active");
|
||||
$("#live_cat2").val(this.value).addClass("active");
|
||||
bouquet_get(this.value);
|
||||
});
|
||||
$("#live_cat2").change(function (e) {
|
||||
e.preventDefault();
|
||||
$("#live_cat").removeClass("active");
|
||||
$("#live_cat").val(this.value).addClass("active");
|
||||
bouquet_get(this.value);
|
||||
});
|
||||
|
||||
|
||||
function yayin_ac(d){
|
||||
var id = d.getAttribute("data-id");
|
||||
$(".list-group-item").removeClass("active");
|
||||
$(d).addClass("active");
|
||||
if (id !== '') {
|
||||
if (!isNaN(id)) {
|
||||
$('.loader').addClass('active');
|
||||
$.ajax({
|
||||
url: 'app/_livetv.php',
|
||||
type: 'POST',
|
||||
data: {channel: id, type: 2},
|
||||
dataType: 'html',
|
||||
success: function (result) {
|
||||
var player = jwplayer("myElement");
|
||||
player.setup({
|
||||
"file": result,
|
||||
aspectratio: '16:9',
|
||||
autostart: true,
|
||||
width: '100%'
|
||||
});
|
||||
player.play();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_livetv.php",
|
||||
data: {"channel": id, type: 3},
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
$("#epg_list").empty();
|
||||
$("#epg_list").html('<ul class="list-group">');
|
||||
$.each(response, function(index, item) {
|
||||
if (item.description != "") {
|
||||
var description_item = "<p>"+item.description+"</p>";
|
||||
} else {
|
||||
var description_item = "";
|
||||
}
|
||||
$("#epg_list").append('<li id="epg_data" class="list-group-item">'+ item.start +' - '+ item.end +' ' + item.title + ''+ description_item +'</li>');
|
||||
});
|
||||
$("#epg_list").append("</ul>");
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.loader').removeClass('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
function open_live_menu() {
|
||||
document.getElementById("mySidenav").style.width = "250px";
|
||||
$("#fixed_header").css("position", "fixed");
|
||||
$("#fixed_header").css("display", "contents");
|
||||
$("#live_box2").css("display", "flex");
|
||||
}
|
||||
|
||||
function close_live_menu() {
|
||||
document.getElementById("mySidenav").style.width = "0";
|
||||
$("#fixed_header").css("display", "none");
|
||||
$("#live_box2").css("display", "none");
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
65
smc/temp/js/pages/login.php
Normal file
65
smc/temp/js/pages/login.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<script>
|
||||
$(document).on('keypress',function(e) {
|
||||
if(e.which == 13) {
|
||||
$("#login_user").click();
|
||||
}
|
||||
});
|
||||
<? if ($siteInfo->recaptcha == 1) { ?>
|
||||
grecaptcha.ready(function () {
|
||||
grecaptcha.execute('<?= $siteInfo->recaptcha_key; ?>', { action: 'contact' }).then(function (token) {
|
||||
var recaptchaResponse = document.getElementById('recaptcha_response');
|
||||
recaptchaResponse.value = token;
|
||||
});
|
||||
});
|
||||
<? } ?>
|
||||
|
||||
$("#login").click(function() {
|
||||
var username = $("#username").val();
|
||||
var sifre = $("#sifre").val();
|
||||
var mac = $("#mac").val();
|
||||
var remember = $("#remember").val();
|
||||
var captcha = $("#recaptchaResponse").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_login.php",
|
||||
data: {'username': username, 'password': sifre, 'mac': mac, 'captcha': captcha, 'remember': remember, 'type': "1"},
|
||||
success: function (response) {
|
||||
if (response == 1) {
|
||||
$("#modal_body_text").text("<?= LOGIN_ALERT_3; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
setTimeout(function(){ window.location.href="index.php?page=homepage"; }, 3000);
|
||||
} else if (response == 2) {
|
||||
$("#modal_body_text").text("<?= LOGIN_ALERT_4; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
} else if (response == 3) {
|
||||
$("#modal_body_text").text("<?= LOGIN_ALERT_5; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
} else if (response == 4) {
|
||||
$("#modal_body_text").text("<?= LOGIN_ALERT_6; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
} else if (response == 5) {
|
||||
$("#modal_body_text").text("<?= LOGIN_ALERT_8; ?>");
|
||||
$("#alert_modal").modal("show");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
var $myGroup = $('#myGroup');
|
||||
$myGroup.on('show.bs.collapse','.collapse', function() {
|
||||
$myGroup.find('.collapse.show').collapse('hide');
|
||||
});
|
||||
|
||||
var macAddress = document.getElementById("mac");
|
||||
function formatMAC(e) {
|
||||
var r = /([a-f0-9]{2})([a-f0-9]{2})/i,
|
||||
str = e.target.value.replace(/[^a-f0-9]/ig, "");
|
||||
while (r.test(str)) {
|
||||
str = str.replace(r, '$1' + ':' + '$2');
|
||||
}
|
||||
e.target.value = str.slice(0, 17);
|
||||
};
|
||||
macAddress.addEventListener("keyup", formatMAC, false);
|
||||
</script>
|
||||
0
smc/temp/js/pages/logout.php
Normal file
0
smc/temp/js/pages/logout.php
Normal file
0
smc/temp/js/pages/moviecat.php
Normal file
0
smc/temp/js/pages/moviecat.php
Normal file
17
smc/temp/js/pages/moviedetail.php
Normal file
17
smc/temp/js/pages/moviedetail.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
$(document).on('click', '.ep-list-min', function (e) {
|
||||
$("#youtube_fragman").YTPPause();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
$("#alert_modal").on('hide.bs.modal', function () {
|
||||
var player = videojs("my-video");
|
||||
player.pause();
|
||||
$("#youtube_fragman").YTPPlay();
|
||||
});
|
||||
|
||||
$(function(){
|
||||
$("#youtube_fragman").YTPlayer();
|
||||
});
|
||||
</script>
|
||||
0
smc/temp/js/pages/movies.php
Normal file
0
smc/temp/js/pages/movies.php
Normal file
80
smc/temp/js/pages/profile.php
Normal file
80
smc/temp/js/pages/profile.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<script>
|
||||
var i = 0;
|
||||
|
||||
$('#change_bouquet').click(function(e) {
|
||||
var arr = [];
|
||||
$('#bq:checked').each(function () {
|
||||
arr[i++] = $(this).val();
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_bouqet.php",
|
||||
data: {'bouqet': arr},
|
||||
success: function (response) {
|
||||
if (response == 1) {
|
||||
$("#modal_info_body").text("<?= PROFILE_BOUQET_ALERT_1; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else {
|
||||
$("#modal_info_body").text("<?= PROFILE_BOUQET_ALERT_2; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
<? if ($siteInfo->password_change == 1) { ?>
|
||||
|
||||
$("#change_pass").click(function() {
|
||||
var password = $("#password_c1").val();
|
||||
var password_c = $("#password_c2").val();
|
||||
if (password != password_c) {
|
||||
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_1; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else if (password.length < 8) {
|
||||
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_2; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else if (!password.match(/([A-Z])/)) {
|
||||
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_3; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else if ((password.length - password.replace(/[A-Z]/g, '').length) < 3) {
|
||||
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_3; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else if (!password.match(/([0-9])/)) {
|
||||
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_4; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else if ((password.length - password.replace(/[0-9]/g, '').length) < 3) {
|
||||
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_4; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/_passchange.php",
|
||||
data: {'password': password, 'password_c': password_c},
|
||||
success: function (response) {
|
||||
|
||||
if (response == 1) {
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_5; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
$('#info_modal').on('hidden.bs.modal', function (e) {
|
||||
window.location.href="index.php?page=logout";
|
||||
});
|
||||
} else if (response == 2) {
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_6; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
} else if (response == 3) {
|
||||
$("#modal_info_body").text("<?= PROFILE_PASS_ALERT_7; ?>");
|
||||
$("#info_modal").modal("show");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
0
smc/temp/js/pages/series.php
Normal file
0
smc/temp/js/pages/series.php
Normal file
0
smc/temp/js/pages/seriescat.php
Normal file
0
smc/temp/js/pages/seriescat.php
Normal file
59
smc/temp/js/pages/seriesdetail.php
Normal file
59
smc/temp/js/pages/seriesdetail.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<script>
|
||||
$(document).on('click', '.ep-list-min', function (e) {
|
||||
var data = $(this).data('id');
|
||||
var type = $(this).data('type');
|
||||
var val = $('#series_view').data('src');
|
||||
var surl = val + data + '.'+type;
|
||||
var player = videojs("maat-player");
|
||||
player.pause();
|
||||
player.src({
|
||||
src:surl,
|
||||
type: 'video/mp4'
|
||||
});
|
||||
player.load();
|
||||
player.play();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
$("#alert_modal").on('hide.bs.modal', function () {
|
||||
var player = videojs("maat-player");
|
||||
player.pause();
|
||||
});
|
||||
|
||||
$('.slide-sliders-full').owlCarousel({
|
||||
loop:false,
|
||||
margin:15,
|
||||
nav:true,
|
||||
autoplay:false,
|
||||
dots:false,
|
||||
items:5,
|
||||
navText:['<img src="temp/images/left.png" alt="icon" />','<img src="temp/images/right.png" alt="icon" />'],
|
||||
responsive:{
|
||||
0:{
|
||||
items:2,
|
||||
},
|
||||
600:{
|
||||
items:3,
|
||||
},
|
||||
1200:{
|
||||
items:6,
|
||||
},
|
||||
1600:{
|
||||
items:6,
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
$('.top-episode a').eq(0).addClass('active');
|
||||
|
||||
|
||||
|
||||
$(document).on('click', '.top-episode a', function (e) {
|
||||
var indis = $(this).index();
|
||||
$('.top-episode a').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
$('.tab_episode').hide().eq(indis).fadeIn();
|
||||
e.preventDefault();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user