smc
This commit is contained in:
79
smc/pages/guides.php
Normal file
79
smc/pages/guides.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($_SESSION["user_info"] == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<div class="page-nav" style="padding:20px">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<h2 class="mb-1"><?= GUIDES_TITLE; ?></h2>
|
||||
<p><?= GUIDES_DESC; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid mb-5">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<ul class="nav nav-tabs list-group search-wrapper" style="padding:10px;" id="myTab">
|
||||
<?php
|
||||
$tab_array = "";
|
||||
$quides = $byakman->pdo->query("SELECT * FROM guides WHERE status = '1' ORDER BY sira ASC")->fetchAll();
|
||||
|
||||
foreach($quides AS $qui) {
|
||||
if ($qui->is_smart == 1) {
|
||||
$is_smart = '<form name="ssiptv" id="ssiptv" onsubmit="return false;">
|
||||
<div class="form-group"><label>'.GUIDES_MAC.'</label><input type="text" class="form-control" name="ss_mac" id="ss_mac" placeholder="'.GUIDES_MAC.'"></div>
|
||||
<div class="form-group"><div class="row"><div class="col-md-6"><label>'.LOGIN_USERNAME.'</label><input type="text" class="form-control" name="ss_username" id="ss_username" value="'.$byakman->userInfo('username').'" placeholder="'.$byakman->userInfo('username').'" disabled></div><div class="col-md-6"><label>'.LOGIN_PASSWORD.'</label><input type="text" class="form-control" name="ss_password" id="ss_password" value="'.$byakman->userInfo('password').'" placeholder="'.$byakman->userInfo('password').'" disabled></div></div></div>
|
||||
<div class="form-group"><label>'.GUIDES_PIN.'</label><input type="text" class="form-control" name="ss_pin" id="ss_pin" placeholder="'.GUIDES_PIN.'"></div>
|
||||
<input type="hidden" class="form-control" name="ss_url" id="ss_url" value="'.$siteInfo->site_xtream.'get.php?username='.$byakman->userInfo('username').'&password='.$byakman->userInfo('password').'&type=m3u_plus&output=ts" placeholder="'.GUIDES_URL.' URL" disabled>
|
||||
<div class="form-group"><button onclick="ssiptv_upload();" class="btn btn-block btn-primary">'.GUIDES_SAVE.'</button></div></form>';
|
||||
} else if ($qui->is_smart == 2) {
|
||||
$is_smart = '<form name="royaliptv" id="royaliptv" onsubmit="return false;">
|
||||
<div class="form-group"><label>'.GUIDES_MAC.'</label><input type="text" class="form-control" name="ry_mac" id="ry_mac" placeholder="'.GUIDES_MAC.'"></div>
|
||||
<div class="form-group"><div class="row"><div class="col-md-6"><label>'.LOGIN_USERNAME.'</label><input type="text" class="form-control" name="ry_username" id="ry_username" value="'.$byakman->userInfo('username').'" placeholder="'.$byakman->userInfo('username').'" disabled></div><div class="col-md-6"><label>'.LOGIN_PASSWORD.'</label><input type="text" class="form-control" name="ry_password" id="ry_password" value="'.$byakman->userInfo('password').'" placeholder="'.$byakman->userInfo('password').'" disabled></div></div></div>
|
||||
<input type="hidden" class="form-control" name="ry_url" id="ry_url" value="'.$siteInfo->site_xtream.'get.php?username='.$byakman->userInfo('username').'&password='.$byakman->userInfo('password').'&type=m3u_plus&output=ts" placeholder="'.GUIDES_URL.'" disabled>
|
||||
<div class="form-group"><button onclick="royaliptv_upload();" class="btn btn-block btn-primary">'.GUIDES_SAVE.'</button></div></form>';
|
||||
} else {
|
||||
$is_smart = '';
|
||||
}
|
||||
echo'<li class="nav-item">
|
||||
<a href="#tabs'.stripslashes($qui->id).'" class="nav-link list-group-item'.$tag.'" data-toggle="tab">'.stripslashes($qui->guide_name).'</a>
|
||||
</li>';
|
||||
$tab_array .= '<div class="tab-pane '.$tag2.' fade" id="tabs'.stripslashes($qui->id).'">
|
||||
<p>'.$qui->guide_desc.'</p>
|
||||
'.$is_smart.'
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="tab-content search-wrapper" style="padding:10px;">
|
||||
<?= $tab_array; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="alert_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?= GUIDES_MODAL_TITLE; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="modal_body_text" style="overflow-wrap: break-word;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
63
smc/pages/homepage.php
Normal file
63
smc/pages/homepage.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($_SESSION["user_info"] == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<div class="container-fluid" style="margin-top: 5vh">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="page-nav">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<div class="search-wrapper" style="cursor:pointer" onclick="window.location.href='<?=$byakman->route('livetv')?>';">
|
||||
<a href="<?=$byakman->route('livetv')?>">
|
||||
<i class="ti-desktop" style="font-size: 5em; color: #000"></i>
|
||||
<p><span class="d-block" style="font-size: 2em; font-weight:bold;margin-top: 10px"><?= HOME_LIVETV; ?></span></a>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="page-nav">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<div class="search-wrapper" style="cursor:pointer" onclick="window.location.href='<?=$byakman->route('movies')?>';">
|
||||
<a href="<?=$byakman->route('movies')?>">
|
||||
<i class="ti-video-clapper" style="font-size: 5em; color: #000"></i>
|
||||
<p><span class="d-block" style="font-size: 2em; font-weight:bold;margin-top: 10px"><?= HOME_MOVIES; ?></span></a>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="page-nav">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<div class="search-wrapper" style="cursor:pointer" onclick="window.location.href='<?=$byakman->route('series')?>';">
|
||||
<a href="<?=$byakman->route('series')?>">
|
||||
<i class="ti-control-forward" style="font-size: 5em; color: #000"></i>
|
||||
<p><span class="d-block" style="font-size: 2em; font-weight:bold;margin-top: 10px"><?= HOME_SERIES; ?></span></a>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
76
smc/pages/livetv.php
Normal file
76
smc/pages/livetv.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($_SESSION["user_info"] == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<div class="faq-page" style="margin:20px 0 20px 0">
|
||||
<div class="container-fluid">
|
||||
<div class="row justify-content-center">
|
||||
<div class="hidden-md-up col-sm-12 order-xs-1 order-sm-1">
|
||||
<button type="button" class="btn collapse-bg" style="float:right; margin-bottom: 5px" onclick="open_live_menu();"><?= LIVETV_CHANNEL_LIST; ?></button>
|
||||
|
||||
<div id="mySidenav" class="sidenav">
|
||||
<div id="fixed_header" style="display:none;">
|
||||
<button type="button" id="close_button" class="btn collapse-bg" style="float:right; margin-bottom: 5px; margin-right:10px" onclick="close_live_menu();"><?= LIVETV_CLOSE; ?></button>
|
||||
<div style="padding:10px">
|
||||
<select class="form-control" name="live_cat2" id="live_cat2">
|
||||
<?php
|
||||
$list_bouqet = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), 'get_live_categories', '');
|
||||
$getCategory = json_decode($list_bouqet, true);
|
||||
foreach($getCategory AS $gc) {
|
||||
echo '<option value="'.$gc["category_id"].'">'.$gc["category_name"].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<ul id="live_box2" style="display:none;padding:10px; overflow-y: scroll; height: 100%" class="list-group mobile"></ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="hidden-sm-down col-md-6 order-xs-2 order-sm-2">
|
||||
<div class="form-div">
|
||||
<div class="form-group">
|
||||
<select class="form-control" name="live_cat" id="live_cat" style="height:40px">
|
||||
<? $getCategory = json_decode($list_bouqet, true);
|
||||
foreach($getCategory AS $gc) {
|
||||
echo '<option value="'.$gc["category_id"].'">'.$gc["category_name"].'</option>';
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
<ul class="list-group desktop" id="live_box"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12 col-md-6 order-xs-2 order-sm-2">
|
||||
|
||||
<div class="row">
|
||||
<div class="form-div">
|
||||
<div class="col-md-12">
|
||||
<div id="myElement"></div>
|
||||
<div id="debug" ></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-div" style="margin-top:10px">
|
||||
<div class="col-md-12" style="padding:0px">
|
||||
<div class="panel panel-default" style="padding:0px">
|
||||
<div class="panel-heading"><?= LIVETV_EPG_LIST; ?></div>
|
||||
<div class="panel-body" id="epg_list"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
285
smc/pages/login.php
Normal file
285
smc/pages/login.php
Normal file
@@ -0,0 +1,285 @@
|
||||
<!-- header wrapper -->
|
||||
<div class="header-wrapper mt-5" style="padding:0px">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<a href="index.php" class="logo float-none"><img src="files/<?= $siteInfo->site_logo; ?>" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- header wrapper -->
|
||||
|
||||
<section class="form-wrapper">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-div text-center" id="myGroup">
|
||||
<h2><?= LOGIN_TITLE; ?></h2>
|
||||
<p><?= LOGIN_TEXT; ?></p>
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item" style="width:50%">
|
||||
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true"><?= LOGIN_USER; ?></a>
|
||||
</li>
|
||||
<? if ($siteInfo->mag_login == 1) { ?>
|
||||
<li class="nav-item" style="width:50%">
|
||||
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false"><?= LOGIN_MAG; ?></a>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<?
|
||||
if ($_POST["login"]) {
|
||||
$username = $byakman->guvenlik($_POST["username"]);
|
||||
$sifre = $byakman->guvenlik($_POST["sifre"]);
|
||||
$mac = $byakman->guvenlik($_POST["mac"]);
|
||||
$beni_hatirla = $byakman->guvenlik($_POST["beni_hatirla"]);
|
||||
$recaptcha_secret = $siteInfo->recaptcha_secret;
|
||||
$recaptcha_response = $_POST['recaptcha_response'];
|
||||
if (empty($username) || empty($sifre)) {
|
||||
if (empty($mac)) {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_7.'
|
||||
</div>';
|
||||
} else {
|
||||
if ($siteInfo->recaptcha == 1) {
|
||||
|
||||
// call curl to POST request
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify");
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('secret' => $recaptcha_secret, 'response' => $recaptcha_response)));
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$response = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
$arrResponse = json_decode($response, true);
|
||||
if ($arrResponse["score"] >= 0.5) {
|
||||
$post_data = array( 'mac' => strtoupper($mac) );
|
||||
$api_result = json_decode($byakman->_curl($siteInfo->site_xtream . "api.php?action=stb&sub=info", $post_data), true);
|
||||
if ($api_result["error"] != "NOT EXISTS") {
|
||||
if($api_result["result"] == "1"){
|
||||
if ($siteInfo->unlimited_login == 0 AND $api_result["user_info"]["exp_date"] == null) {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_8.'
|
||||
</div>';
|
||||
} else {
|
||||
$_SESSION['login'] = true;
|
||||
$_SESSION['user_info'] = $api_result['user_info'];
|
||||
$_SESSION['mac_address'] = $mac;
|
||||
if ($remember == 1) {
|
||||
|
||||
setcookie('username',$api_result['user_info']['username'], time()+ 31536000);
|
||||
setcookie('password',$api_result['user_info']['password'], time()+ 31536000);
|
||||
setcookie('mac', $api_result['mag_device']['mac']);
|
||||
|
||||
}
|
||||
echo '<div style="margin-top: 10px" class="alert alert-success" role="alert">
|
||||
'.LOGIN_ALERT_3.'
|
||||
</div>';
|
||||
header("Refresh: 2; URL=index.php?page=homepage");
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_5.'
|
||||
</div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_6.'
|
||||
</div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_4.'
|
||||
</div>';
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$post_data = array( 'mac' => strtoupper($mac) );
|
||||
$api_result = json_decode($byakman->_curl($siteInfo->site_xtream . "api.php?action=stb&sub=info", $post_data), true);
|
||||
if ($api_result["error"] != "NOT EXISTS") {
|
||||
if($api_result["result"] == "1"){
|
||||
if ($siteInfo->unlimited_login == 0 AND $api_result["user_info"]["exp_date"] == null) {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_8.'
|
||||
</div>';
|
||||
} else {
|
||||
$_SESSION['login'] = true;
|
||||
$_SESSION['user_info'] = $api_result['user_info'];
|
||||
$_SESSION['mac_address'] = $mac;
|
||||
if ($remember == 1) {
|
||||
|
||||
setcookie('username',$api_result['user_info']['username'], time()+ 31536000);
|
||||
setcookie('password',$api_result['user_info']['password'], time()+ 31536000);
|
||||
setcookie('mac', $api_result['mag_device']['mac']);
|
||||
|
||||
}
|
||||
echo '<div style="margin-top: 10px" class="alert alert-success" role="alert">
|
||||
'.LOGIN_ALERT_3.'
|
||||
</div>';
|
||||
header("Refresh: 2; URL=index.php?page=homepage");
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_5.'
|
||||
</div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_6.'
|
||||
</div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
if ($username == "") {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_1.'
|
||||
</div>';
|
||||
} else if ($sifre == "") {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_2.'
|
||||
</div>';
|
||||
} else {
|
||||
|
||||
if ($siteInfo->recaptcha == 1) {
|
||||
|
||||
// call curl to POST request
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify");
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('secret' => $recaptcha_secret, 'response' => $recaptcha_response)));
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$response = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
$arrResponse = json_decode($response, true);
|
||||
if ($arrResponse["score"] >= 0.5) {
|
||||
|
||||
$post_data = array( 'username' => $username, 'password' => $sifre );
|
||||
$api_result = json_decode($byakman->get_curl($siteInfo->site_xtream . "player_api.php?username=".$username."&password=".$sifre.""), true);
|
||||
|
||||
if ($api_result["user_info"]["status"] === 'Active') {
|
||||
|
||||
if ($siteInfo->unlimited_login == 0 AND $api_result["user_info"]["exp_date"] == null) {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_8.'
|
||||
</div>';
|
||||
} else {
|
||||
|
||||
$_SESSION["login"] = true;
|
||||
$_SESSION["user_info"] = $api_result["user_info"];
|
||||
if ($remember == 1) {
|
||||
|
||||
setcookie('username',$username, time()+ 31536000);
|
||||
setcookie('password',$password, time()+ 31536000);
|
||||
|
||||
}
|
||||
echo '<div style="margin-top: 10px" class="alert alert-success" role="alert">
|
||||
'.LOGIN_ALERT_3.'
|
||||
</div>';
|
||||
header("Refresh: 2; URL=index.php?page=homepage");
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_6.'
|
||||
</div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_4.'
|
||||
</div>';
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$post_data = array( 'username' => $username, 'password' => $sifre );
|
||||
$api_result = json_decode($byakman->get_curl($siteInfo->site_xtream . "player_api.php?username=".$username."&password=".$sifre.""),true);
|
||||
if ($api_result["user_info"]["status"] === 'Active') {
|
||||
|
||||
if ($siteInfo->unlimited_login == 0 AND $api_result["user_info"]["exp_date"] == null) {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_8.'
|
||||
</div>';
|
||||
} else {
|
||||
|
||||
$_SESSION["login"] = true;
|
||||
$_SESSION["user_info"] = $api_result["user_info"];
|
||||
if ($remember == 1) {
|
||||
|
||||
setcookie('username',$username, time()+ 31536000);
|
||||
setcookie('password',$password, time()+ 31536000);
|
||||
|
||||
}
|
||||
echo '<div style="margin-top: 10px" class="alert alert-success" role="alert">
|
||||
'.LOGIN_ALERT_3.'
|
||||
</div>';
|
||||
header("Refresh: 2; URL=index.php?page=homepage");
|
||||
}
|
||||
} else {
|
||||
echo '<div style="margin-top: 10px" class="alert alert-danger" role="alert">
|
||||
'.LOGIN_ALERT_6.'
|
||||
</div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// Login Mac
|
||||
|
||||
}
|
||||
?>
|
||||
<form name="login_form" id="login_form" method="POST">
|
||||
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
<input class="form-control" type="text" style="color:#000" placeholder="<?= LOGIN_USERNAME; ?>" name="username" id="username">
|
||||
<input class="form-control" type="password" style="color:#000" placeholder="<?= LOGIN_PASSWORD; ?>" name="sifre" id="sifre">
|
||||
</div>
|
||||
</div>
|
||||
<? if ($siteInfo->mag_login == 1) { ?>
|
||||
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
|
||||
<div class="form-group mt-4">
|
||||
<input class="form-control" type="text" style="color:#000" placeholder="<?= LOGIN_MAG_ADRESS; ?>" name="mac" id="mac">
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
|
||||
<div class="form-group form-check-label">
|
||||
<input type="checkbox" id="beni_hatirla" name="beni_hatirla" checked=""> <?= LOGIN_REMEMBER; ?>
|
||||
</div>
|
||||
|
||||
<div class="form-group button-block text-center">
|
||||
<input type="hidden" name="recaptcha_response" id="recaptcha_response" value="">
|
||||
<input type="submit" class="form-btn" id="login" name="login" value="<?= LOGIN_BUTTON; ?>" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="alert_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?= LOGIN_MODAL_TITLE; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="modal_body_text">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
33
smc/pages/logout.php
Normal file
33
smc/pages/logout.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
$user_hash = sha1($byakman->userInfo('username')."-".$byakman->userInfo('password')."-");
|
||||
$files = glob("cache/".$user_hash."*");
|
||||
foreach($files AS $f) {
|
||||
if (file_exists($f)) {
|
||||
unlink($f);
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$files = glob("cache/*.*");
|
||||
foreach ($files as $plk2) {
|
||||
$dosya_zamani = filemtime($plk2);
|
||||
$sure = 60*60*5;
|
||||
$tamsure = time()-$sure;
|
||||
if ($dosya_zamani < $tamsure) {
|
||||
if (file_exists($plk2)) {
|
||||
unlink($plk2);
|
||||
}
|
||||
}
|
||||
}
|
||||
$_SESSION["login"] = false;
|
||||
unset($_SESSION['user_info']);
|
||||
unset($_SESSION['mac_address']);
|
||||
header("Location: index.php?page=login");
|
||||
}
|
||||
?>
|
||||
113
smc/pages/moviecat.php
Normal file
113
smc/pages/moviecat.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
$id = $byakman->guvenlik($_GET["id"]);
|
||||
$get_cat_info = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_categories", "");
|
||||
$get_cat = json_decode($get_cat_info, true);
|
||||
$key = array_search($id, array_column($get_cat, 'category_id'));
|
||||
|
||||
$get_movies_cat = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_streams&category_id=", $id);
|
||||
$get_movies = json_decode($get_movies_cat, true);
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
|
||||
<div class="page-nav p-0">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<div class="search-wrapper">
|
||||
<h2 style="font-size:1.5em" class="mb-3"><?
|
||||
$text = str_replace("{cat_name}", $get_cat[$key]["category_name"], MOVIE_CATS_TEXT); $text = str_replace("{count_movie}", count($get_movies), $text); echo $text; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- slider wrapper -->
|
||||
<div class="slide-wrapper search-wrap-slide">
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
$i = 0;
|
||||
$all_movies = $get_movies;
|
||||
$page = isset($_GET['p']) ? $_GET['p'] : 1;
|
||||
$count = count($all_movies);
|
||||
$perPage = 30;
|
||||
$numberOfPages = ceil($count / $perPage);
|
||||
$offset = ($page-1) * $perPage;
|
||||
$files = array_slice($all_movies, $offset, $perPage);
|
||||
foreach($files AS $gm) { ?>
|
||||
<div class="col-sm-12 col-md-2 mt-4">
|
||||
<a class="slide-one" href="index.php?page=moviedetail&id=<?= $gm["stream_id"]; ?>">
|
||||
<div class="slide-image"><img style="height:30vh" src="<? if ($gm["stream_icon"] == "") { echo 'https://via.placeholder.com/300x400.png';} else { echo $gm["stream_icon"]; } ?>" alt="image"></div>
|
||||
<div class="slide-content">
|
||||
<div class="labelContainer"><span><h2 style="white-space: nowrap;"><?= $gm["name"]; ?></h2></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<? $i++; } if($count > $perPage){ $x = 2; ?>
|
||||
<div class="col-md-12">
|
||||
<nav aria-label="Page navigation example" style="margin: 30px 0 30px 0">
|
||||
<ul class="pagination justify-content-center">
|
||||
<?php
|
||||
if($page > 1){ //sayfa 1 den küçük ise [Önceki] butonu oluşturulmaya uygundur
|
||||
$onceki = $page-1; //aktif sayfanın bir önceki sayfa bulunur
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p='.$onceki.'">« '.MOVIE_PAGE_PREV.' </a></li>'; //link içerisine yazdırılıp [Önceki] butonu oluşturulur
|
||||
}
|
||||
if($page==1){ //sayfalamada 1. sayfada bulunuyorsak
|
||||
echo '<li class="page-item active"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p=1">1</a></li>'; //1. sayfayı menüde aktif olarak gösteriyoruz
|
||||
}
|
||||
else{ // bulunmuyorsak
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p=1">1</a></li>'; //normal olarak gözüksün, aktif olmasın
|
||||
}
|
||||
//menü kısaltma işlemi
|
||||
//bulunduğumuz sayfa yani $sayfa = 6 olduğu durumda
|
||||
if($page-$x > 2){ //6-2 > 2 değeri true döndürecek
|
||||
echo '<li class="page-item disabled"><a class="page-link" href="#">...</a></li>'; //kısaltma etiketi yazdırılacak
|
||||
$i = $page-$x; //$i değişkenine 4 değeri atanacak
|
||||
}else {
|
||||
$i = 2;
|
||||
}
|
||||
//$sayfa = 6 olduğu durumda = sonuc çıktısı -> 1 ...
|
||||
|
||||
for($i; $i<=$page+$x; $i++) { //$i yani 4 değeri 8 değerine ulaşasıya kadar döngü çalışsın > 4 5 6 7 8
|
||||
if($i==$page){ //$i değeri bulunduğumuz sayfa ile eşitse
|
||||
echo '<li class="page-item active"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p='.$i.'">'.$i.'</a></li>'; // aktif olarak işaretlensin ve yazdırılsın > 4 5 [6] 7 8
|
||||
}
|
||||
else{//değil ise
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p='.$i.'">'.$i.'</a></li>'; //normal olarak yazdırılsın
|
||||
}
|
||||
if($i==$numberOfPages) break;
|
||||
}
|
||||
//$sayfa = 6 olduğu durumda = sonuc çıktısı -> 1 ... 4 5 [6] 7 8
|
||||
|
||||
if($page+$x < $numberOfPages-1) { //6+2<11-1 ise
|
||||
echo '<li class="page-item disabled"><a class="page-link" href="#">...</a></li>'; //kısaltma etiketi yazdırılacak
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p='.$numberOfPages.'">'.$numberOfPages.'</a></li>'; // son sayfa yazdırılacak
|
||||
}elseif($page+$x == $numberOfPages-1) {
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p='.$numberOfPages.'">'.$numberOfPages.'</a></li>';
|
||||
}
|
||||
//$sayfa = 6 olduğu durumda = sonuc çıktısı -> 1 ... 4 5 [6] 7 8 ... 11
|
||||
//menü kısaltma işlemi
|
||||
|
||||
if($page < $numberOfPages){ //bulunduğumuz sayfa hala son sayfa değil ise
|
||||
$sonraki = $page+1; //bulundğumuz sayfa değeri 1 arttırılıyor
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=moviecat&id='.$id.'&p='.$sonraki.'"> '.MOVIE_PAGE_NEXT.' » </a></li>'; //ve Sonraki butonu oluşturulup yazdırılıyor
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
130
smc/pages/moviedetail.php
Normal file
130
smc/pages/moviedetail.php
Normal file
@@ -0,0 +1,130 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
if ($_GET) {
|
||||
$id = $byakman->guvenlik($_GET["id"]);
|
||||
if ($id != "") {
|
||||
if (is_numeric($id)) {
|
||||
$detail = $byakman->player_api2($byakman->userInfo('username'),$byakman->userInfo('password'), 'get_vod_info&vod_id=', $id);
|
||||
$detail = json_decode($detail,true);
|
||||
|
||||
$type = $detail['movie_data']['container_extension'];
|
||||
switch ($type){
|
||||
case 'mkv':
|
||||
$type = '.mkv';
|
||||
break;
|
||||
case 'mp4':
|
||||
$type = '.mp4';
|
||||
break;
|
||||
case 'avi':
|
||||
$type = '.avi';
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
$movie_url = $siteInfo->site_xtream."movie/".$byakman->userInfo('username')."/".$byakman->userInfo('password')."/".$detail["movie_data"]["stream_id"]."".$type;
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="banner-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="banner-wrap justify-content-between align-items-center ep-list-min" data-type="<?= $detail["movie_data"]["container_extension"]; ?>" data-id="<?= $detail["movie_data"]["stream_id"]; ?>" data-toggle="modal" data-target="#alert_modal">
|
||||
<div class="left-wrap slide-content">
|
||||
<? if($detail["info"]["rating"] == "") {echo "";} else { ?><span class="rnd"><?= MOVIE_IMDB; ?> <? echo $detail["info"]["rating"]; ?></span><? } ?>
|
||||
<h2 style="font-size:2em;margin-top:10px"><?= $detail["movie_data"]["name"]; ?></h2>
|
||||
<? if($detail["info"]["genre"] == "") {echo "";} else { ?><span class="tag"><b><? echo $detail["info"]["genre"]; ?></b></span><? } ?>
|
||||
<? if($detail["info"]["releasedate"] == "") {echo "";} else { ?><span class="tag"><? $year = explode("-", $detail["info"]["releasedate"]); echo $year[0]; ?></span><? } ?>
|
||||
<? if($detail["info"]["duration"] == "") {echo "";} else { ?><span class="tag"><? echo $detail["info"]["duration"]; ?></span><? } ?>
|
||||
<? if($detail["info"]["plot"] == "") {echo "";} else { ?><p><? echo $byakman->descriptions($detail["info"]["plot"], 40); ?></p><? } ?>
|
||||
<p><a class="btn btn-lg ep-list-min" data-type="<?= $detail["movie_data"]["container_extension"]; ?>" data-id="<?= $detail["movie_data"]["stream_id"]; ?>" data-toggle="modal" data-target="#alert_modal"><img src="temp/images/play.png" alt="icn"><?= MOVIE_WATCH; ?></a></p>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="right-wrap">
|
||||
<div class="player" id="youtube_fragman" data-property="{videoURL:'http://youtu.be/<?= $detail["info"]["youtube_trailer"]; ?>',containment:'.right-wrap',autoPlay:true, mute:true, startAt:0, opacity:1, controls:0, rel:0, showinfo: 0}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- banenr wrapper -->
|
||||
|
||||
<!-- slider wrapper -->
|
||||
<div class="slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= MOVIE_LIKE; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="slide-slider-full owl-carousel owl-theme">
|
||||
<?
|
||||
$connect = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_streams", "");
|
||||
$movie_datas = json_decode($connect, true);
|
||||
|
||||
function compareOrder($a, $b)
|
||||
{
|
||||
return $b['added'] - $a['added'];
|
||||
}
|
||||
usort($movie_datas, 'compareOrder');
|
||||
$i = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
|
||||
if (($item["category_id"] == $detail["movie_data"]["category_id"]) AND ($item["stream_id"] != $detail["movie_data"]["stream_id"])) { ?>
|
||||
<div class="owl-items">
|
||||
<a class="slide-one slide-two" href="index.php?page=moviedetail&id=<?= $item["stream_id"]; ?>">
|
||||
<div class="slide-image" style="background-image: url(<?= $item["stream_icon"]; ?>"></div>
|
||||
<div class="slide-content">
|
||||
<h2><?= $item["name"]; ?></h2>
|
||||
<span class="tag"></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<? $i++; } else {
|
||||
|
||||
|
||||
} if ($i == 10) break;
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="alert_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?= $detail["movie_data"]["name"]; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="modal_body_text">
|
||||
<div class='player-container'>
|
||||
<video id="my-video" class="video-js vjs-16-9" controls data-setup="{}" oncontextmenu="return false;">
|
||||
<source src="<?=$movie_url?>" type="video/mp4" codecs='"a_ac3, avc"' >
|
||||
<p class="vjs-no-js">
|
||||
To view this video please enable JavaScript, and consider upgrading to a web browser that
|
||||
<a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
|
||||
</p>
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } } } } ?>
|
||||
148
smc/pages/movies.php
Normal file
148
smc/pages/movies.php
Normal file
@@ -0,0 +1,148 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="banner-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="banner-slider owl-carousel owl-theme">
|
||||
<?php
|
||||
$last_movies_url = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_streams", "");
|
||||
$movie_datas = json_decode($last_movies_url, true);
|
||||
function compareOrder($a, $b)
|
||||
{
|
||||
return $b['added'] - $a['added'];
|
||||
}
|
||||
usort($movie_datas, 'compareOrder');
|
||||
$i = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
$detail = $byakman->player_api2($byakman->userInfo('username'),$byakman->userInfo('password'), 'get_vod_info&vod_id=', $item["stream_id"]);
|
||||
$detail = json_decode($detail,true);
|
||||
?>
|
||||
<div class="owl-items">
|
||||
<div class="banner-wrap justify-content-between align-items-center" onclick="window.location.href='index.php?page=moviedetail&id=<?= $item["stream_id"]; ?>'">
|
||||
<div class="left-wrap">
|
||||
<? if($detail["info"]["rating"] == "") {echo "";} else { ?><span class="rnd"><?= MOVIE_IMDB; ?> <? echo $detail["info"]["rating"]; ?></span><? } ?>
|
||||
<h2 style="font-size: 2.4em;"><?= $detail["movie_data"]["name"]; ?></h2>
|
||||
<? if($detail["info"]["genre"] == "") {echo "";} else { ?><span class="tag"><b><? echo $detail["info"]["genre"]; ?></b></span><? } ?>
|
||||
<? if($detail["info"]["releasedate"] == "") {echo "";} else { ?><span class="tag"><? $year = explode("-", $detail["info"]["releasedate"]); echo $year[0]; ?></span><? } ?>
|
||||
<? if($detail["info"]["duration"] == "") {echo "";} else { ?><span class="tag"><? echo $detail["info"]["duration"]; ?></span><? } ?>
|
||||
<? if($detail["info"]["plot"] == "") {echo "";} else { ?><p><? echo $byakman->descriptions($detail["info"]["plot"], 40); ?></p><? } ?>
|
||||
<p><a href="index.php?page=moviedetail&id=<?= $item["stream_id"]; ?>" class="btn btn-lg"><img src="temp/images/play.png" alt="icn"><?= MOVIE_WATCH; ?></a></p>
|
||||
</div>
|
||||
<div class="right-wrap" style="background-image: url(<?= $detail["info"]["backdrop_path"][rand(0,4)]; ?>);"></div>
|
||||
</div>
|
||||
</div>
|
||||
<? if ($i++ == 5) break; } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= MOVIE_LAST; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="slide-slider-full owl-carousel owl-theme">
|
||||
<?
|
||||
$c = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
?>
|
||||
<div class="owl-items">
|
||||
<a class="slide-one" href="index.php?page=moviedetail&id=<?= $item["stream_id"]; ?>">
|
||||
<div class="slide-image"><img style="height:30vh" src="<? if ($item["stream_icon"] == "") { echo 'https://via.placeholder.com/400x800.png';} else { echo $item["stream_icon"]; } ?>" alt="image"></div>
|
||||
<div class="slide-content">
|
||||
<div class="labelContainer"><span><h2 style="white-space: nowrap;"><?= $item["name"]; ?></h2></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<? if ($c++ == 10) break; } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
<?php
|
||||
$get_categories = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_categories", "");
|
||||
$category_datas = json_decode($get_categories, true);
|
||||
?>
|
||||
<!-- slider wrapper -->
|
||||
<div class="category-wrapper slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= MOVIE_CAT; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="category-slider owl-carousel owl-theme">
|
||||
<? foreach($category_datas AS $citem) { ?>
|
||||
<div class="owl-items">
|
||||
<a href="index.php?page=moviecat&id=<?= $citem["category_id"]; ?>" class="category-wrap" style="background-image: url(temp/images/gb<?= rand(1,4); ?>.png);"><span><?= $citem["category_name"]; ?></span></a>
|
||||
</div>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
<? foreach($category_datas AS $citem) { ?>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= $citem["categori_id"]; ?><?= $citem["category_name"]; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="slide-slider-full owl-carousel owl-theme">
|
||||
<?
|
||||
$c = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
if ($item["category_id"] != $citem["category_id"]) {
|
||||
|
||||
} else {
|
||||
?>
|
||||
<div class="owl-items">
|
||||
<a class="slide-one" href="index.php?page=moviedetail&id=<?= $item["stream_id"]; ?>">
|
||||
<div class="slide-image"><img style="height:30vh" src="<? if ($item["stream_icon"] == "") { echo 'https://via.placeholder.com/400x800.png';} else { echo $item["stream_icon"]; } ?>" alt="image"></div>
|
||||
<div class="slide-content">
|
||||
<div class="labelContainer"><span><h2 style="white-space: nowrap;"><?= $item["name"]; ?></h2></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<? if ($c++ == 10) break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<? } ?>
|
||||
403
smc/pages/profile.php
Normal file
403
smc/pages/profile.php
Normal file
@@ -0,0 +1,403 @@
|
||||
<?
|
||||
|
||||
session_start();
|
||||
|
||||
if (($_SESSION["login"] != true) AND ($_SESSION["user_info"] == "")) {
|
||||
|
||||
header("Location: index.php?page=login");
|
||||
|
||||
exit();
|
||||
|
||||
} else {
|
||||
|
||||
$post_data = array('username' => $byakman->userInfo('username'), 'password' => $byakman->userInfo('password'));
|
||||
|
||||
$api_result = json_decode($byakman->_curl($siteInfo->site_xtream . "api.php?action=user&sub=info", $post_data), true);
|
||||
|
||||
if ($api_result['result']) {
|
||||
|
||||
$bouqets = $api_result['user_info']['bouquet'];
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="main-wrapper">
|
||||
|
||||
<? include("app/_header.php"); ?>
|
||||
|
||||
<div class="page-nav">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12 text-center">
|
||||
|
||||
<h2 class="mb-1"><?= PROFILE_TITLE; ?></h2>
|
||||
|
||||
<p><?= PROFILE_DESC; ?></p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="faq-page">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<div class="col-sm-8">
|
||||
|
||||
<div id="accordion" class="accordion">
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-header" id="headingOne">
|
||||
|
||||
<h5 class="mb-0">
|
||||
|
||||
<button class="btn btn-link small-text collapsed pl-5 text-left" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
|
||||
|
||||
<i class="ti-user"></i><?= PROFILE_ACCOUNT; ?> <span><?= PROFILE_ACCOUNT_TEXT; ?></span>
|
||||
|
||||
</button>
|
||||
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
|
||||
<div class="card-body form-div">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-4">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label><?= PROFILE_USERNAME; ?></label>
|
||||
|
||||
<input class="form-control" style="color:#000" type="text" value="<?= $byakman->userInfo('username'); ?>" disabled>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label><?= PROFILE_PASS; ?></label>
|
||||
|
||||
<input class="form-control" style="color:#000" type="text" value="<?= $byakman->userInfo('password'); ?>" disabled>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label><?= PROFILE_TIME; ?></label>
|
||||
|
||||
<input class="form-control" style="color:#000" type="text" value="<?= date("Y-m-d H:i:s", $byakman->userInfo('exp_date')); ?>" disabled>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group button-block text-center">
|
||||
|
||||
<button type="button" class="form-btn" style="color:#fff" data-toggle="modal" data-target="#alert_modal"><?= PROFILE_LINK; ?></button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? if ($siteInfo->password_change == 1) { ?>
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-header" id="headingTwo">
|
||||
|
||||
<h5 class="mb-0">
|
||||
|
||||
<button class="btn btn-link small-text collapsed pl-5 text-left" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseOne">
|
||||
|
||||
<i class="ti-lock"></i><?= PROFILE_PASS; ?> <span><?= PROFILE_PASS_TEXT; ?></span>
|
||||
|
||||
</button>
|
||||
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="collapseTwo" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
|
||||
<div class="card-body form-div">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label><?= PROFILE_PASS_CHANGE; ?></label>
|
||||
|
||||
<input class="form-control" style="color:#000" type="text" name="password_c1" id="password_c1" value="">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label><?= PROFILE_PASS_CHANGE_2; ?></label>
|
||||
|
||||
<input class="form-control" style="color:#000" type="text" name="password_c2" id="password_c2" value="">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12 form-group">
|
||||
|
||||
<span class="colorwhite"><?= PROFILE_PASS_MESSAGE; ?></span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<button class="form-btn" style="color:#fff" type="button" id="change_pass" name="change_pass"><?= PROFILE_PASS_CHANGE_BUTTON; ?></button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? if (isset($_SESSION["mac_address"])) { ?>
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-header" id="headingThree">
|
||||
|
||||
<h5 class="mb-0">
|
||||
|
||||
<button class="btn btn-link small-text collapsed pl-5 text-left" data-toggle="collapse" data-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
|
||||
|
||||
<i class="ti-desktop"></i><?= PROFILE_PORTAL; ?> <span> <?= PROFILE_PORTAL_DESC; ?></span>
|
||||
|
||||
</button>
|
||||
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="collapseFour" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
|
||||
<div class="card-body form-div">
|
||||
|
||||
<div class="col-sm-12">
|
||||
|
||||
<div class="form-group mt-4">
|
||||
|
||||
<label><?= PROFILE_PORTAL; ?></label>
|
||||
|
||||
<input class="form-control" style="color:#000" type="text" value="<?= stripslashes($siteInfo->site_portal); ?>" disabled>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? if ($siteInfo->bouquet_edit == 1) { ?>
|
||||
|
||||
<div class="card mb-3">
|
||||
|
||||
<div class="card-header" id="headingThree">
|
||||
|
||||
<h5 class="mb-0">
|
||||
|
||||
<button class="btn btn-link small-text collapsed pl-5 text-left" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseTwo">
|
||||
|
||||
<i class="ti-settings"></i><?= PROFILE_BOUQUET; ?> <span> <?= PROFILE_BOUQUET_DESC; ?></span>
|
||||
|
||||
</button>
|
||||
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="collapseThree" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
|
||||
<div class="card-body form-div" id="bquet">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php
|
||||
|
||||
$bouqet_data = $byakman->pdo->query("SELECT * FROM bouqet_list WHERE status = '1' ORDER BY sira ASC")->fetchAll();
|
||||
|
||||
foreach($bouqet_data AS $bq) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="col-md-6"><?= stripslashes($bq->bouquet_name); ?> <label class="switch"><input type="checkbox" name="bq[]" id="bq" <?= in_array($bq->bouquet_id, $bouqets) ? 'checked' : '' ?> value="<?= $bq->bouquet_id; ?>"><span class="slider round"></span></label></div>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<div class="col-md-12 mt-5"><button class="form-btn" style="color:#fff" type="button" id="change_bouquet" name="change_bouquet"><?= PROFILE_BOUQUET_SAVE; ?></button></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
|
||||
<div class="modal fade" id="info_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel2" aria-hidden="true">
|
||||
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header">
|
||||
|
||||
<h5 class="modal-title"><?= PROFILE_MODAL_TITLE; ?></h5>
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
|
||||
<span aria-hidden="true">×</span>
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-body" id="modal_info_body" style="overflow-wrap: break-word;">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
|
||||
<div class="modal fade" id="alert_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header">
|
||||
|
||||
<h5 class="modal-title"><?= PROFILE_MODAL_TITLE; ?></h5>
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
|
||||
<span aria-hidden="true">×</span>
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-body" id="modal_body_text" style="overflow-wrap: break-word;">
|
||||
|
||||
<?
|
||||
|
||||
$co = htmlspecialchars_decode($siteInfo->iptv_links);
|
||||
|
||||
$siteUrl = $siteInfo->site_xtream;
|
||||
|
||||
$convert = str_replace('{api_url}',$siteUrl, $co);
|
||||
|
||||
$conv = str_replace('{username}',$byakman->userInfo('username'), $convert);
|
||||
|
||||
$convc = str_replace('{password}',$byakman->userInfo('password'), $conv);
|
||||
|
||||
$convx = str_replace('{iptv.sh}','/etc/enigma2/iptv.sh', $convc);
|
||||
|
||||
echo $convx;
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? } ?>
|
||||
148
smc/pages/series.php
Normal file
148
smc/pages/series.php
Normal file
@@ -0,0 +1,148 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="banner-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="banner-slider owl-carousel owl-theme">
|
||||
<?php
|
||||
$last_movies_url = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_series", "");
|
||||
$movie_datas = json_decode($last_movies_url, true);
|
||||
function compareOrder($a, $b)
|
||||
{
|
||||
return $b['added'] - $a['added'];
|
||||
}
|
||||
usort($movie_datas, 'compareOrder');
|
||||
$i = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
$detail = $byakman->player_api2($byakman->userInfo('username'),$byakman->userInfo('password'), 'get_series_info&series_id=', $item["series_id"]);
|
||||
$detail = json_decode($detail,true);
|
||||
?>
|
||||
<div class="owl-items">
|
||||
<div class="banner-wrap justify-content-between align-items-center" onclick="window.location.href='index.php?page=seriesdetail&id=<?= $item["series_id"]; ?>'">
|
||||
<div class="left-wrap">
|
||||
<? if($detail["info"]["rating"] == "" AND $detail["info"]["rating"] != "0" ) {echo "";} else { ?><span class="rnd"><?= SERIES_IMDB; ?> <? echo $detail["info"]["rating"]; ?></span><? } ?>
|
||||
<h2 style="font-size: 2.4em;"><?= $detail["info"]["name"]; ?></h2>
|
||||
<? if($detail["info"]["genre"] == "") {echo "";} else { ?><span class="tag"><b><? echo $detail["info"]["genre"]; ?></b></span><? } ?>
|
||||
<? if($detail["info"]["releasedate"] == "") {echo "";} else { ?><span class="tag"><? $year = explode("-", $detail["info"]["releasedate"]); echo $year[0]; ?></span><? } ?>
|
||||
<? if(count($detail["seasons"]) == 0) {echo "";} else { ?><span class="tag"><? echo count($detail["seasons"]); ?> Sezon</span><? } ?>
|
||||
<? if($detail["info"]["plot"] == "") {echo "";} else { ?><p><? echo $byakman->descriptions($detail["info"]["plot"], 40); ?></p><? } ?>
|
||||
<p><a href="index.php?page=seriesdetail&id=<?= $item["series_id"]; ?>" class="btn btn-lg"><img src="temp/images/play.png" alt="icn"><?= SERIES_WATCH; ?></a></p>
|
||||
</div>
|
||||
<div class="right-wrap" style="background-image: url(<?= $detail["info"]["backdrop_path"][rand(0,1)]; ?>);"></div>
|
||||
</div>
|
||||
</div>
|
||||
<? if ($i++ == 5) break; } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= SERIES_LAST; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="slide-slider-full owl-carousel owl-theme">
|
||||
<?
|
||||
$c = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
?>
|
||||
<div class="owl-items">
|
||||
<a class="slide-one" href="index.php?page=seriesdetail&id=<?= $item["series_id"]; ?>">
|
||||
<div class="slide-image"><img style="height:30vh" src="<? if ($item["cover"] == "") { echo 'https://via.placeholder.com/400x800.png';} else { echo $item["cover"]; } ?>" alt="image"></div>
|
||||
<div class="slide-content">
|
||||
<div class="labelContainer"><span><h2 style="white-space: nowrap;"><?= $item["name"]; ?></h2></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<? if ($c++ == 10) break; } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
<?php
|
||||
$get_categories = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_series_categories", "");
|
||||
$category_datas = json_decode($get_categories, true);
|
||||
?>
|
||||
<!-- slider wrapper -->
|
||||
<div class="category-wrapper slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= SERIES_CAT; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="category-slider owl-carousel owl-theme">
|
||||
<? foreach($category_datas AS $citem) { ?>
|
||||
<div class="owl-items">
|
||||
<a href="index.php?page=seriescat&id=<?= $citem["category_id"]; ?>" class="category-wrap" style="background-image: url(temp/images/gb<?= rand(1,4); ?>.png);"><span><?= $citem["category_name"]; ?></span></a>
|
||||
</div>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
<? foreach($category_datas AS $citem) { ?>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="slide-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left mb-4 mt-4">
|
||||
<h2><?= $citem["categori_id"]; ?><?= $citem["category_name"]; ?></h2>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="slide-slider-full owl-carousel owl-theme">
|
||||
<?
|
||||
$c = 1;
|
||||
foreach($movie_datas AS $item) {
|
||||
if ($item["category_id"] != $citem["category_id"]) {
|
||||
|
||||
} else {
|
||||
?>
|
||||
<div class="owl-items">
|
||||
<a class="slide-one" href="index.php?page=seriesdetail&id=<?= $item["series_id"]; ?>">
|
||||
<div class="slide-image"><img style="height:30vh" src="<? if ($item["cover"] == "") { echo 'https://via.placeholder.com/400x800.png';} else { echo $item["cover"]; } ?>" alt="image"></div>
|
||||
<div class="slide-content">
|
||||
<div class="labelContainer"><span><h2 style="white-space: nowrap;"><?= $item["name"]; ?></h2></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<? if ($c++ == 10) break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- slider wrapper -->
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<? } ?>
|
||||
113
smc/pages/seriescat.php
Normal file
113
smc/pages/seriescat.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
$id = $byakman->guvenlik($_GET["id"]);
|
||||
$get_cat_info = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_series_categories", "");
|
||||
$get_cat = json_decode($get_cat_info, true);
|
||||
$key = array_search($id, array_column($get_cat, 'category_id'));
|
||||
|
||||
$get_movies_cat = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_series&category_id=", $id);
|
||||
$get_movies = json_decode($get_movies_cat, true);
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
|
||||
<div class="page-nav p-0">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<div class="search-wrapper">
|
||||
<h2 style="font-size:1.5em" class="mb-3"><?
|
||||
$text = str_replace("{cat_name}", $get_cat[$key]["category_name"], MOVIE_CATS_TEXT); $text = str_replace("{count_movie}", count($get_movies), $text); echo $text; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- slider wrapper -->
|
||||
<div class="slide-wrapper search-wrap-slide">
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
$i = 0;
|
||||
$all_movies = $get_movies;
|
||||
$page = isset($_GET['p']) ? $_GET['p'] : 1;
|
||||
$count = count($all_movies);
|
||||
$perPage = 30;
|
||||
$numberOfPages = ceil($count / $perPage);
|
||||
$offset = ($page-1) * $perPage;
|
||||
$files = array_slice($all_movies, $offset, $perPage);
|
||||
foreach($files AS $gm) { ?>
|
||||
<div class="col-sm-12 col-md-2 mt-4">
|
||||
<a class="slide-one" href="index.php?page=seriesdetail&id=<?= $gm["series_id"]; ?>">
|
||||
<div class="slide-image"><img style="height:30vh" src="<? if ($gm["cover"] == "") { echo 'https://via.placeholder.com/300x400.png';} else { echo $gm["cover"]; } ?>" alt="image"></div>
|
||||
<div class="slide-content">
|
||||
<div class="labelContainer"><span><h2 style="white-space: nowrap;"><?= $gm["name"]; ?></h2></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<? $i++; } if($count > $perPage){ $x = 2; ?>
|
||||
<div class="col-md-12">
|
||||
<nav aria-label="Page navigation example" style="margin: 30px 0 30px 0">
|
||||
<ul class="pagination justify-content-center">
|
||||
<?php
|
||||
if($page > 1){ //sayfa 1 den küçük ise [Önceki] butonu oluşturulmaya uygundur
|
||||
$onceki = $page-1; //aktif sayfanın bir önceki sayfa bulunur
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p='.$onceki.'">« '.SERIES_PAGE_PREV.' </a></li>'; //link içerisine yazdırılıp [Önceki] butonu oluşturulur
|
||||
}
|
||||
if($page==1){ //sayfalamada 1. sayfada bulunuyorsak
|
||||
echo '<li class="page-item active"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p=1">1</a></li>'; //1. sayfayı menüde aktif olarak gösteriyoruz
|
||||
}
|
||||
else{ // bulunmuyorsak
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p=1">1</a></li>'; //normal olarak gözüksün, aktif olmasın
|
||||
}
|
||||
//menü kısaltma işlemi
|
||||
//bulunduğumuz sayfa yani $sayfa = 6 olduğu durumda
|
||||
if($page-$x > 2){ //6-2 > 2 değeri true döndürecek
|
||||
echo '<li class="page-item disabled"><a class="page-link" href="#">...</a></li>'; //kısaltma etiketi yazdırılacak
|
||||
$i = $page-$x; //$i değişkenine 4 değeri atanacak
|
||||
}else {
|
||||
$i = 2;
|
||||
}
|
||||
//$sayfa = 6 olduğu durumda = sonuc çıktısı -> 1 ...
|
||||
|
||||
for($i; $i<=$page+$x; $i++) { //$i yani 4 değeri 8 değerine ulaşasıya kadar döngü çalışsın > 4 5 6 7 8
|
||||
if($i==$page){ //$i değeri bulunduğumuz sayfa ile eşitse
|
||||
echo '<li class="page-item active"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p='.$i.'">'.$i.'</a></li>'; // aktif olarak işaretlensin ve yazdırılsın > 4 5 [6] 7 8
|
||||
}
|
||||
else{//değil ise
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p='.$i.'">'.$i.'</a></li>'; //normal olarak yazdırılsın
|
||||
}
|
||||
if($i==$numberOfPages) break;
|
||||
}
|
||||
//$sayfa = 6 olduğu durumda = sonuc çıktısı -> 1 ... 4 5 [6] 7 8
|
||||
|
||||
if($page+$x < $numberOfPages-1) { //6+2<11-1 ise
|
||||
echo '<li class="page-item disabled"><a class="page-link" href="#">...</a></li>'; //kısaltma etiketi yazdırılacak
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p='.$numberOfPages.'">'.$numberOfPages.'</a></li>'; // son sayfa yazdırılacak
|
||||
}elseif($page+$x == $numberOfPages-1) {
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p='.$numberOfPages.'">'.$numberOfPages.'</a></li>';
|
||||
}
|
||||
//$sayfa = 6 olduğu durumda = sonuc çıktısı -> 1 ... 4 5 [6] 7 8 ... 11
|
||||
//menü kısaltma işlemi
|
||||
|
||||
if($page < $numberOfPages){ //bulunduğumuz sayfa hala son sayfa değil ise
|
||||
$sonraki = $page+1; //bulundğumuz sayfa değeri 1 arttırılıyor
|
||||
echo '<li class="page-item"><a class="page-link" href="index.php?page=seriescat&id='.$id.'&p='.$sonraki.'"> '.SERIES_PAGE_NEXT.' » </a></li>'; //ve Sonraki butonu oluşturulup yazdırılıyor
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
106
smc/pages/seriesdetail.php
Normal file
106
smc/pages/seriesdetail.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<?
|
||||
session_start();
|
||||
if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) {
|
||||
header("Location: index.php?page=login");
|
||||
exit();
|
||||
} else {
|
||||
if ($_GET) {
|
||||
$id = $byakman->guvenlik($_GET["id"]);
|
||||
if ($id != "") {
|
||||
if (is_numeric($id)) {
|
||||
$detail = $byakman->player_api2($byakman->userInfo('username'),$byakman->userInfo('password'), 'get_series_info&series_id=', $id);
|
||||
$detail = json_decode($detail,true);
|
||||
?>
|
||||
<div class="main-wrapper">
|
||||
<? include("app/_header.php"); ?>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="banner-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="banner-wrap justify-content-between align-items-center">
|
||||
<div class="left-wrap">
|
||||
<? if($detail["info"]["rating"] == "") {echo "";} else { ?><span class="rnd"><?= SERIES_IMDB; ?> <? echo $detail["info"]["rating"]; ?></span><? } ?>
|
||||
<h2 style="font-size:2em;margin-top:10px"><?= $detail["info"]["name"]; ?></h2>
|
||||
<? if($detail["info"]["genre"] == "") {echo "";} else { ?><span class="tag"><b><? echo $detail["info"]["genre"]; ?></b></span><? } ?>
|
||||
<? if($detail["info"]["releaseDate"] == "") {echo "";} else { ?><span class="tag"><? $year = explode("-", $detail["info"]["releaseDate"]); echo $year[0]; ?></span><? } ?>
|
||||
<? if(count($detail["seasons"]) < 1) {echo "";} else { ?><span class="tag"><? echo count($detail["seasons"]); ?> Sezon</span><? } ?>
|
||||
<? if($detail["info"]["plot"] == "") {echo "";} else { ?><p><? echo $byakman->descriptions($detail["info"]["plot"], 40); ?></p><? } ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="right-wrap">
|
||||
<div class="player" id="youtube_fragman" data-property="{videoURL:'http://youtu.be/<?= $detail["info"]["youtube_trailer"]; ?>',containment:'.right-wrap',autoPlay:true, mute:true, startAt:0, opacity:1, controls:0, rel:0, showinfo: 0}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- banenr wrapper -->
|
||||
<div class="container-fluid mt-5 mb-5">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="episode-box form-div">
|
||||
<div class="episode-title"><h6><?= $detail["info"]["name"]; ?> <?= SERIES_SEASONS; ?></h6></div>
|
||||
<div class="top-episode">
|
||||
<? $count = count($detail['episodes']);
|
||||
for ($i=0;$i < $count;$i++){
|
||||
?> <a href="#">Sezon <?=$i+1?></a><?
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="episode-list mb-5">
|
||||
<?php
|
||||
$count = count($detail['episodes']);
|
||||
for ($i=0;$i < $count; $i++){
|
||||
?>
|
||||
<div class="tab_episode">
|
||||
<div class="row">
|
||||
<?php
|
||||
$detail['episodes'][1];
|
||||
foreach ($detail['episodes'][$i+1] as $item){
|
||||
?>
|
||||
<div class="col-md-6">
|
||||
<a data-type="<?=$item['container_extension']?>" data-id="<?=$item['id']?>" data-toggle="modal" data-target="#alert_modal" class="ep-list-min"><span class="circle"></span><div class="ep-title"><?=$item['title']?></div>
|
||||
</a>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="alert_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?= $detail["info"]["name"]; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="modal_body_text">
|
||||
<div class='player-container'>
|
||||
<div id="series_view" data-src="<?= $siteInfo->site_xtream; ?>series/<?= $byakman->userInfo('username'); ?>/<?= $byakman->userInfo('password'); ?>/"></div>
|
||||
<div id="player_serie"></div>
|
||||
<video id="maat-player" class="video-js vjs-16-9" controls preload="auto" data-setup="{}" oncontextmenu="return false;">
|
||||
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? } } } } ?>
|
||||
Reference in New Issue
Block a user