<?php session_start(); 
error_reporting(E_ERROR | E_PARSE);
include("connection.php"); $id=$_REQUEST["id"]; 
$user_id=$_SESSION['id'];
$q=mysqli_query($con,"select * from buy where `order_id`='".$id."' "); 

$type=$_REQUEST["type"];
if($_SESSION["id"]==true) {
} else {?><script> window.location.href='index.php'; </script> <?php } ?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="https://www.facebook.com/2008/fbml" lang="en" prefix="og: http://ogp.me/ns#" itemscope="" itemtype="http://schema.org/WebPage">
<head>
    <meta charset="utf-8">
    <title>Lyrics Tubes</title>
  
  <link href='https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css' rel='stylesheet' type='text/css'>
<link href='https://cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css' rel='stylesheet' type='text/css'>
<script src="https://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
<script src="https://cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js" type="text/javascript"></script>
  
  
     
        <meta name="description" content="Poem, Lyrics, Story, Article">
    <meta name="keywords" content="Poems, Lyrics " />
    <link rel="canonical" href="http://lyricstubes.com" />
    <!-- OG Tags -->
    <meta property="og:site_name" content="Lyricstubes">
    <meta property="og:title" content="Poem, Lyrics, Story, Article">
    <meta property="og:description" content="Poem, Lyrics, Story, Article">
    <meta property="og:image" content="http://lyricstubes.com/logo.png">
    <meta property="og:url" content="http://lyricstubes.com">
  <meta property="og:type" content="article" />

      
    
    <link href="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Content/css/bootstrap.css" rel="stylesheet" />
    <link href="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Content/css/font-awesome.min.css" rel="stylesheet" />
    <link href="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Content/css/styles.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Content/css/responsive.css">
    <!-- <link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i,900,900i" rel="stylesheet"> -->

    
    
    <style>
        html > div[style] {
            display: none !important;
        }
    </style>

    <link href="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Content/css/player-new.css" rel="stylesheet" type="text/css">
    <link href="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Content/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href='https://d3hprka3kr08q2.cloudfront.net/staticstorage/theo/th_2_45_1/ui.css'>
    <script type='text/javascript' src='https://d3hprka3kr08q2.cloudfront.net/staticstorage/theo/th_2_45_1/THEOplayer.js'></script>
    
    <script src="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Scripts/js/VideoAnalyticsPluginV2.4.js" type="text/javascript"></script>
    <script type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>

<!-- Begin comScore Tag -->
<script>
  var _comscore = _comscore || [];
  _comscore.push({ c1: "2", c2: "30169642" });
  (function() {
    var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
    s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
    el.parentNode.insertBefore(s, el);
  })();
</script>
<noscript>
  <img src="https://sb.scorecardresearch.com/p?c1=2&c2=30169642&cv=2.0&cj=1" />
</noscript>
<!-- End comScore Tag -->

    <!-- Google Tag Manager -->
    <script>
        (function (w, d, s, l, i) {
            w[l] = w[l] || []; w[l].push({
                'gtm.start':
                new Date().getTime(), event: 'gtm.js'
            }); var f = d.getElementsByTagName(s)[0],
            j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
            'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', 'GTM-KHGQ2D');</script>
    <!-- End Google Tag Manager -->

    <meta http-equiv="X-UA-Compatible" content="IE=edge"><script type="text/javascript">window.NREUM||(NREUM={});NREUM.info = {"beacon":"","errorBeacon":"","licenseKey":"8b63cb3591","applicationID":"15757213","transactionName":"NQZVZ0MCV0AAAkwNWwxMemVyTElfABhdFncNDUNBXg9VVhNOVQtCCwZnX1AaXEE=","queueTime":0,"applicationTime":31,"agent":"","atts":""}</script><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var o=e[t][1][n];return r(o||n)},o,o.exports)}return n[t].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<t.length;o++)r(t[o]);return r}({1:[function(e,n,t){function r(){}function o(e,n,t){return function(){return i(e,[c.now()].concat(u(arguments)),n?null:this,t),n?void 0:this}}var i=e("handle"),a=e(3),u=e(4),f=e("ee").get("tracer"),c=e("loader"),s=NREUM;"undefined"==typeof window.newrelic&&(newrelic=s);var p=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace","inlineHit","addRelease"],d="api-",l=d+"ixn-";a(p,function(e,n){s[n]=o(d+n,!0,"api")}),s.addPageAction=o(d+"addPageAction",!0),s.setCurrentRouteName=o(d+"routeName",!0),n.exports=newrelic,s.interaction=function(){return(new r).get()};var m=r.prototype={createTracer:function(e,n){var t={},r=this,o="function"==typeof n;return i(l+"tracer",[c.now(),e,t],r),function(){if(f.emit((o?"":"no-")+"fn-start",[c.now(),r,o],t),o)try{return n.apply(this,arguments)}catch(e){throw f.emit("fn-err",[arguments,this,e],t),e}finally{f.emit("fn-end",[c.now()],t)}}}};a("actionText,setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(e,n){m[n]=o(l+n)}),newrelic.noticeError=function(e,n){"string"==typeof e&&(e=new Error(e)),i("err",[e,c.now(),!1,n])}},{}],2:[function(e,n,t){function r(e,n){if(!o)return!1;if(e!==o)return!1;if(!n)return!0;if(!i)return!1;for(var t=i.split("."),r=n.split("."),a=0;a<r.length;a++)if(r[a]!==t[a])return!1;return!0}var o=null,i=null,a=/Version\/(\S+)\s+Safari/;if(navigator.userAgent){var u=navigator.userAgent,f=u.match(a);f&&u.indexOf("Chrome")===-1&&u.indexOf("Chromium")===-1&&(o="Safari",i=f[1])}n.exports={agent:o,version:i,match:r}},{}],3:[function(e,n,t){function r(e,n){var t=[],r="",i=0;for(r in e)o.call(e,r)&&(t[i]=n(r,e[r]),i+=1);return t}var o=Object.prototype.hasOwnProperty;n.exports=r},{}],4:[function(e,n,t){function r(e,n,t){n||(n=0),"undefined"==typeof t&&(t=e?e.length:0);for(var r=-1,o=t-n||0,i=Array(o<0?0:o);++r<o;)i[r]=e[n+r];return i}n.exports=r},{}],5:[function(e,n,t){n.exports={exists:"undefined"!=typeof window.performance&&window.performance.timing&&"undefined"!=typeof window.performance.timing.navigationStart}},{}],ee:[function(e,n,t){function r(){}function o(e){function n(e){return e&&e instanceof r?e:e?f(e,u,i):i()}function t(t,r,o,i){if(!d.aborted||i){e&&e(t,r,o);for(var a=n(o),u=v(t),f=u.length,c=0;c<f;c++)u[c].apply(a,r);var p=s[y[t]];return p&&p.push([b,t,r,a]),a}}function l(e,n){h[e]=v(e).concat(n)}function m(e,n){var t=h[e];if(t)for(var r=0;r<t.length;r++)t[r]===n&&t.splice(r,1)}function v(e){return h[e]||[]}function g(e){return p[e]=p[e]||o(t)}function w(e,n){c(e,function(e,t){n=n||"feature",y[t]=n,n in s||(s[n]=[])})}var h={},y={},b={on:l,addEventListener:l,removeEventListener:m,emit:t,get:g,listeners:v,context:n,buffer:w,abort:a,aborted:!1};return b}function i(){return new r}function a(){(s.api||s.feature)&&(d.aborted=!0,s=d.backlog={})}var u="nr@context",f=e("gos"),c=e(3),s={},p={},d=n.exports=o();d.backlog=s},{}],gos:[function(e,n,t){function r(e,n,t){if(o.call(e,n))return e[n];var r=t();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return e[n]=r,r}var o=Object.prototype.hasOwnProperty;n.exports=r},{}],handle:[function(e,n,t){function r(e,n,t,r){o.buffer([e],r),o.emit(e,n,t)}var o=e("ee").get("handle");n.exports=r,r.ee=o},{}],id:[function(e,n,t){function r(e){var n=typeof e;return!e||"object"!==n&&"function"!==n?-1:e===window?0:a(e,i,function(){return o++})}var o=1,i="nr@id",a=e("gos");n.exports=r},{}],loader:[function(e,n,t){function r(){if(!E++){var e=x.info=NREUM.info,n=l.getElementsByTagName("script")[0];if(setTimeout(s.abort,3e4),!(e&&e.licenseKey&&e.applicationID&&n))return s.abort();c(y,function(n,t){e[n]||(e[n]=t)}),f("mark",["onload",a()+x.offset],null,"api");var t=l.createElement("script");t.src="https://"+e.agent,n.parentNode.insertBefore(t,n)}}function o(){"complete"===l.readyState&&i()}function i(){f("mark",["domContent",a()+x.offset],null,"api")}function a(){return O.exists&&performance.now?Math.round(performance.now()):(u=Math.max((new Date).getTime(),u))-x.offset}var u=(new Date).getTime(),f=e("handle"),c=e(3),s=e("ee"),p=e(2),d=window,l=d.document,m="addEventListener",v="attachEvent",g=d.XMLHttpRequest,w=g&&g.prototype;NREUM.o={ST:setTimeout,SI:d.setImmediate,CT:clearTimeout,XHR:g,REQ:d.Request,EV:d.Event,PR:d.Promise,MO:d.MutationObserver};var h=""+location,y={beacon:"",errorBeacon:"",agent:"js-agent.newrelic.com/nr-1118.min.js"},b=g&&w&&w[m]&&!/CriOS/.test(navigator.userAgent),x=n.exports={offset:u,now:a,origin:h,features:{},xhrWrappable:b,userAgent:p};e(1),l[m]?(l[m]("DOMContentLoaded",i,!1),d[m]("load",r,!1)):(l[v]("onreadystatechange",o),d[v]("onload",r)),f("mark",["firstbyte",u],null,"api");var E=0,O=e(5)},{}]},{},["loader"]);</script>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Scripts/js/plugins.js"></script>

    <!-- Start Clicky Tracking Code -->
    <script async src="//static.getclicky.com/js" type="text/javascript"></script>
    <script type="text/javascript">try { clicky.init(101005941); } catch (e) { }</script>
    <noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/101005941ns.gif" /></p></noscript>
    <!-- End Clicky Tracking Code -->
    <!-- Start Alexa Certify Javascript -->
    <script type="text/javascript">
        _atrk_opts = { atrk_acct: "6zXLj1a8wt0026", domain: "yupptv.com", dynamic: true };
        (function () { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(as, s); })();
    </script>
    <noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=6zXLj1a8wt0026" style="display:none" height="1" width="1" alt="" /></noscript>
    <!-- End Alexa Certify Javascript -->
    <!-- Facebook Pixel Code -->
    <script>
        !function (f, b, e, v, n, t, s) {
            if (f.fbq) return; n = f.fbq = function () {
                n.callMethod ?
                n.callMethod.apply(n, arguments) : n.queue.push(arguments)
            }; if (!f._fbq) f._fbq = n;
            n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0;
            t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s)
        }(window,
        document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '242716032603945');
        fbq('track', 'PageView');
    </script>
    <noscript>
        <img height="1" width="1" style="display:none"
             src="https://www.facebook.com/tr?id=242716032603945&ev=PageView&noscript=1" />
    </noscript>
    <!-- DO NOT MODIFY -->
    <!-- End Facebook Pixel Code -->
    <!-- Hotjar Tracking Code for http://www.yupptv.com -->
    <script>
        (function (h, o, t, j, a, r) {
            h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments) };
            h._hjSettings = { hjid: 178945, hjsv: 6 };
            a = o.getElementsByTagName('head')[0];
            r = o.createElement('script'); r.async = 1;
            r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
            a.appendChild(r);
        })(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
    </script>
    <!-- Global site tag (gtag.js) - Google AdWords: 1007853834 -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=AW-1007853834"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());

        gtag('config', 'AW-1007853834');
    </script>

    <!-- header ad script -->
    <style>
        @media screen and (min-width: 1200px) {
          #div-gpt-ad-1488270374804-6 { display: none !important; }
          #div-gpt-ad-1488270374804-7 { display: none !important; }
        }
        @media screen and (min-width: 500px) and (max-width: 1200px){
          #div-gpt-ad-1488270374804-5 { display: none !important; }
          #div-gpt-ad-1488270374804-7 { display: none !important; }
        }
        @media screen and (max-width: 500px){
          #div-gpt-ad-1488270374804-5 { display: none !important; }
          #div-gpt-ad-1488270374804-6 { display: none !important; }
        }
    </style>

    <script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
   

   
    <!-- End header ad script -->
<script>
		var windowmode='notprivate';
    var iOSbrowserVersion= 11 ;
	var DRMbrowserName="";
	
	
	 if (''=='Safari')
    {
	    var nAgt = navigator.userAgent;
	     DRMbrowserName  = navigator.appName;
	    var objOffsetVersion  = nAgt.indexOf("Safari")
	    var fullVersion =  nAgt.substring(objOffsetVersion+7);

	    if ((objOffsetVersion=nAgt.indexOf("Version"))!=-1)
		    fullVersion = nAgt.substring(objOffsetVersion+8);
        var fv = fullVersion.split('/')
	    var fv0= fv[0].split('.');
	    iOSbrowserVersion = parseInt(fv0[0]);
		
       var navAgt= (nAgt.split("/")[2]).split(')')[1]; 
	   
	  // alert(nAgt);
	  // alert(navAgt);
       if ((navAgt.toString().toLowerCase().trim())=="version")
	   {
		 DRMbrowserName ="safari";
	   }
	   else 
	   {
			DRMbrowserName ="other";
	   } 
    }
	
		
		function retry(isDone, next) {
  var current_trial = 0,
    max_retry = 50,
    interval = 10,
    is_timeout = false;
  var id = window.setInterval(
    function() {
      if (isDone()) {
        window.clearInterval(id);
        next(is_timeout);
      }
      if (current_trial++ > max_retry) {
        window.clearInterval(id);
        is_timeout = true;
        next(is_timeout);
      }
    },
    10
  );
}

function isIE10OrLater(user_agent) {
  var ua = user_agent.toLowerCase();
  if (ua.indexOf('msie') === 0 && ua.indexOf('trident') === 0) {
    return false;
  }
  var match = /(?:msie|rv:)\s?([\d\.]+)/.exec(ua);
  if (match && parseInt(match[1], 10) >= 10) {
    return true;
  }
  return false;
}

function detectPrivateMode(callback) {
  var is_private;

  if (window.webkitRequestFileSystem) {
    window.webkitRequestFileSystem(
      window.TEMPORARY, 1,
      function() {
        is_private = false;
      },
      function(e) {
        console.log(e);
        is_private = true;
      }
    );
  } else if (window.indexedDB && /Firefox/.test(window.navigator.userAgent)) {
    var db;
    try {
      db = window.indexedDB.open('test');
    } catch (e) {
      is_private = true;
    }

    if (typeof is_private === 'undefined') {
      retry(
        function isDone() {
          return db.readyState === 'done' ? true : false;
        },
        function next(is_timeout) {
          if (!is_timeout) {
            is_private = db.result ? false : true;
          }
        }
      );
    }
  } else if (isIE10OrLater(window.navigator.userAgent)) {
    is_private = false;
    try {
      if (!window.indexedDB) {
        is_private = true;
      }
    } catch (e) {
      is_private = true;
    }
  } else if (window.localStorage && /Safari/.test(window.navigator.userAgent)) {
    try {
      window.localStorage.setItem('test', 1);
    } catch (e) {
      is_private = true;
    }

    if (typeof is_private === 'undefined') {
      is_private = false;
      window.localStorage.removeItem('test');
    }
  }

  retry(
    function isDone() {
      return typeof is_private !== 'undefined' ? true : false;
    },
    function next(is_timeout) {
      callback(is_private);
    }
  );
}



detectPrivateMode(
  function(is_private) {

    var a = typeof is_private === 'undefined' ? 'cannotdetect' : is_private ? 'private' : 'notprivate';
   if (a!='notprivate' &&  mobilecheck()==true )
	{
          windowmode = 'private';

	}


  }
 );
  window.mobilecheck = function() {
  var check = false;
  (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera);
  return check;
};

 </script>
</head>
<body>
    <!-- Google Tag Manager (noscript) -->
<?php include("include/header.php"); ?>
<script type="text/javascript">


    var nAgt = navigator.userAgent;
    var browserName = navigator.appName;
    var majorVersion = parseInt(navigator.appVersion, 10);
    var nameOffset, verOffset, ix;

        if ((nAgt.indexOf("MSIE") != -1) || nAgt.indexOf(".NET") != -1) {
           var  isshow = $.cookie('showPopup');
            if (isshow != 1) {
                isshowcookie = true;
                $.cookie("showPopup", 1);
            }
            else {
                isshowcookie = false;
            }
            if (isshowcookie) {
                $('#userIEModal').modal('show');
            }
    }

	function CloseButton()
	{
		$('#userIEModal').modal('hide');
	}


    function toggleButton(){
        if(document.getElementById("userAcceptance").checked == true){
            var current = document.getElementById("btnAgree");
            current.className = current.className.replace("gdpr-disabled", "gdpr-enable");
            this.className = "gdpr-enable";
        }
        else{
            var current = document.getElementById("btnAgree");
            current.className = current.className.replace("gdpr-enable", "gdpr-disabled");
            this.className = "gdpr-disabled";
        }
    }
</script>
<script type="text/javascript">
    var userConsent =1

    window.addEventListener('load', function () {
   //  setTimeout(function() {
        //$('#userAcceptanceModal').modal('hide');
        //  $('#userAcceptanceModal').modal({backdrop: 'static', keyboard: false});

        if(window.location.href.includes("privacy-terms") == false){
            if (userConsent != 1) {
                $('#userAcceptanceModal').modal('show');

            }
            else{
                $('#userAcceptanceModal').modal('hide');

            }
        }
        else {
            $('#userAcceptanceModal').modal('hide');
        }
   //  },5000);

            //$('#userAcceptanceModal').modal('show');
    });
</script>
<script type="text/javascript">
    function updateUserConsent() {
        if(document.getElementById("userAcceptance").checked == true){
            $.ajax({
                url: 'https://www.yupptv.com/Base/userConsent',
                type: 'GET',
                success: function (result) {
                    $('#userAcceptanceModal').modal('hide');
                },
                error: function (e) {
                    console.log("error - userAcceptanceCookie - " + e.statusText);
                }
            });
        }
    }
</script>
        <div class="main-content">
            

<div class="row m-0 player-page">
    <div class="player-left col-md-8 p-0">
        <div class="container-fluid">
            <div class="player-section">
                <div id="mediaspace" class="video-js vjs-fluid theoplayer theoplayer-skin theo-seekbar-above-controls"></div>
              
                        <img src="https://d2zub9v50g8scn.cloudfront.net/yupptv/Movies/yupp/1080x400/Kathalo_Raja_kumari_roku.jpg" class="movie-bg" />

                   
                   
                                                            </div>
                <div class="player-content">
                    <div class="player-detail-inner display-table">                   
                        <div class="player-channel-content display-middle">
                            <div class="player-channel-info clearfix">
							
                               
								
								
								<table id="example" class="display" style="width:100%">
        <thead>
            <tr style="background-color:#00CCFF" >
                <th>Orders</th>
               
                
            </tr>
        </thead>
		<tbody>
<?php while($qr=mysqli_fetch_array($q,MYSQLI_ASSOC)) { 
							$product_id=$qr["product_id"];
$p=mysqli_query($con,"select * from product2 where `id`='".$product_id."'"); $pr=mysqli_fetch_array($p,MYSQLI_ASSOC);
							?>
        
           
            <tr>
			<td><font color="#0000FF"> <?php 
								//	$temp_date=date_create($qr["date"]); echo date_format($temp_date,"d/m/Y");
									 ?>
			<font color="blue"><?php echo $pr["name"]; ?></font><br>
				<h6><?php echo $qr["quantity"]; ?>  <?php echo $pr["plate_qnty"]; ?> * <?php echo $qr["price"]; $t= $t + ($qr["price"] * $qr["quantity"]); ?> = <?php echo $qr["price"] * $qr["quantity"]; ?>  /-</h6>
								<!--	 Status : <?php echo $qr["status"]; ?> --></td>
                
			
                
            </tr>
            <?php } ?>
        </tbody>
       
    </table>
	
			<center><a href="profile.php"><img src="back.png" width="60"></a></center>		
								
                            </div>
                        </div> 
                        
   <?php 
if(isset($_POST["ok"])) {
$name=$_POST["name"];
$address=$_POST["address"];
//$phone=$_POST["phone"];

$q=mysqli_query($con,"update teacher set  `name`='".$name."',`address`='".$address."' where `id`='".$user_id."' ");
?>
    <script>
	alert("Update Success");
	window.location.href='profile.php'</script> <?php 
    
} ?>                     
                        <!--
                        <div class="display-top text-right  player-social-icon">
                            <div class="share-icons desk-ver">
                               <!-- Share: -->
                             <!--   <div class="addthis_inline_share_toolbox"></div>                                
                            </div>
                            <div class="mobile-share-icons-wrap">
                                <button type="button" class="btn player-share-ico" data-toggle="modal" data-target="#mobile-share"></button>
                                <!-- The Modal -->
                              <!--  <div class="modal mobile-share-icons" id="mobile-share">
                                    <div class="modal-dialog">
                                        <div class="modal-content">
                                            <!-- Modal Header -->
                                           <!-- <div class="modal-header">
                                                <h4 class="modal-title">Share this Article :</h4>
                                                <button type="button" class="close" data-dismiss="modal"></button>
                                            </div> -->
                                            <!-- Modal body -->
                                         <!--   <div class="modal-body">
                                                <div class="addthis_inline_share_toolbox"></div>                                           
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>  
                        -->
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                    </div>
                  <!--  <div class="cast-crew">
                        <ul>
                            <li>
                                <div class="label"><span>Artist</span> <b>:</b></div>
                                <div class="text"><?php echo $qr["artist"]; ?></div>
                            </li>
                        </ul>
                    </div> -->
                    
                    
                  
                
                    <!-- End Below Player Ad -->
                </div>
                                </div>           
    </div>
	<?php 
	if(isset($_POST["place_order"])) {
	
	$user_id=$_SESSION['id'];
	$payble=$_POST["payble"];
	
	
	$d=mysqli_query($con,"update buy set `payble`='".$payble."' where `user_id`='".$user_id."'"); 
	 ?>
	<script>
	window.location.href="place_order.php";
	</script><?php
	
	}
	
	
	?>
    <div class="player-right col-md-4  p-0">
        <div class="player-add">
            <!-- Right Side Player - Ad 1 -->
           
            <!-- End Right Side Player - Ad 1 -->
        </div>
      <!--  <div class="player-right-details">
            <div class="player-bar">
                <div class="filter-days pt-20 tabs">
                            <div class="day-name tab-link channels" data-tab="suggested-channels"><a>You may also see</a></div>
							</div>
            </div>
            <div class="player-related-shows content  nested" id="content2">
                
				
				
			<?php $s=mysqli_query($c,"select * from product2 where `type`='".$type."' limit 0,15 "); while($lr=mysqli_fetch_array($s,MYSQLI_ASSOC)) {  ?>
    <a href='detail.php?id=<?php echo $lr['id']; ?>&type=momo'>
         
                         <img class="img-responsive" alt="Chotoder Kobita" title="Chotoder Kobita" src="image/<?php echo $lr['photo']; ?>"   />
                          
                   
    </a>
        
 <?php } ?> 	
				
				
				
				
            </div>
        </div>
    </div> -->
    <div class="modal fade popup-dialog" id="yuppflix-subscribe-info" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-md" role="document">
            <div class="modal-content wht text-center">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" id="wtclose">
                    <i class="icon-error"></i>
                </button>
                <div class="modal-body">
                    <div class="popup-content">
                        <div class="row">
                            <div class="col-12">
                                <p id="yuppflix-subscription-info"></p>
                                <div class="btn-wrap pt-5">
                                    <button type="button" id="payment-continue" class="orange-btn">Confirm</button>
                                    <button type="button" id="payment-cancel" class="grey-btn ml-20">Cancel</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>   
    <div class="modal fade popup-dialog" id="subscribe-payment-loading" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
        <div class="modal-dialog modal-md" role="document">
            <div class="modal-content  wht text-center">
                <div class="modal-body">
                    <div class="popup-content">
                        <div class="row">
                            <div class="col-12">
                                <div id="loader"></div>
                                
                                <p class="pt-md-4 pt-4">Please wait while your transaction is being processed. don't press the back or refresh button of your browser <span id="expiryTime"></span></p>
                                <p class="err-text" id="err-watch-text"></p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


 
    <!-- Start of structured-data -->
    <script type="application/ld+json">
    {  
        "@context": "http://schema.org",
        "@type": "VideoObject",
        "mainEntityOfPage": "canonical",
        "name": "Kathalo Rajakumari Full Movie Online Watch Kathalo Rajakumari in Full HD Quality",
        "url":"",
        "description": "Kathalo Rajakumari Movie Online Watch Kathalo Rajakumari Full Length HD Movie Online on YuppFlix. Kathalo Rajakumari Film Directed by Mahesh Surapaneni Cast Nara Rohit,Naga Shourya,Namitha Pramod",
        "thumbnailUrl": "",
        "uploadDate":"25 Oct 2017, 09:41:26+05:30",
        "dateModified":"25 Oct 2017, 09:41:26+05:30",
        "keywords":"",
        "headline":"Kathalo Rajakumari Full Movie Online Watch Kathalo Rajakumari in Full HD Quality",
        "videoQuality" : "HD",
        "height":"600",
        "width": "300",
        "playerType" : "Theoplayer",
        "isFamilyFriendly" : "Yes",
        "disambiguatingDescription":"Kathalo Rajakumari Movie Online Watch Kathalo Rajakumari Full Length HD Movie Online on YuppFlix. Kathalo Rajakumari Film Directed by Mahesh Surapaneni Cast Nara Rohit,Naga Shourya,Namitha Pramod",
        "publisher": {
            "@type": "Organization",
            "name": "YuppTV",
            "logo": {
                "@type": "ImageObject",
             
                "width": "300",
                "height": "63"
            }
        }
    }
    </script>
    <!-- End of structured-data -->

        </div>
        
<!--  footer part -->
<?php  include("include/footer.php"); ?>

<!--  footer part end-->
    </div>
    
    <script src="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Scripts/js/slick.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript">
            var ad;
            var plugin;
            var adobj=[{}];
            var playing=false;
            var fixedContetHeight = '340px';
            var conCustomerKey= "9d8a32a9ee839d56265fec0e3f076fe65c522efb";
            var adTypes=[{}];
            var laterObj = [{}];
            var streamUrl= [{}];
            var playlist = [{}];
            var active = 0;
            var status = false;
            var msg="";
            var chanid="";
            var chname="";
            var progid="";
            var progname="";
            var progGenre="";
            var isSubscribed = "0";
            var custid = "-1" ;
            var seek=0;
            var isAutoplay="false" ;
            var language="";
            var prgInterval="20000";
            var playend ="0";
            var cdn;
            var preProgramName;
            var url;
            var messagehidden = false;
            var seasonNumber = "-1";
            var episodeNumber = "-1";
            var contType='yuppflix';
            var playerevent = { STPosition: "-1", ETPosition: "-1" };
            var player = "";
            var isPromo = "0";
            var vodNo = "-1";
            var epgStime = "";
            var epgEtime = "";
            var totalVideoLength = 0;
            var altStreamURl = "";
            var otherUrl = "";
            var isOverlayMessage = false;
            var seeking = false;

            var adTypes = [{
                "adType": 0,
                "adUrl":"https://pubads.g.doubleclick.net/gampad/live/ads?sz=640x480&iu=/28418187/YuppTV.com_Web_PreRoll&cust_params=user_type%3D[user_type]%26lang_code%3D[lang_code]%26content_type%3D[content_type]%26channel_id%3D[channel_id]&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=__referrer__&description_url=http%3A%2F%2Fwww.yupptv.com&correlator=__timestamp__",
                "duration1": 0,
                "duration2": 0
            }]

		

            //document.getElementById("playlistmenu").style.display = "none";
            adTypes[0].adUrl = adTypes[0].adUrl.replace("[user_type]", isSubscribed);
            adTypes[0].adUrl = adTypes[0].adUrl.replace("[content_type]", contType);
            adTypes[0].adUrl = adTypes[0].adUrl.replace("[lang_code]", language.substring(0, 3));
            adTypes[0].adUrl = adTypes[0].adUrl.replace("[channel_id]", chanid);

            //getLocation();


            if(!false || (false && false && !true ) || (false && !false &&!true))
            {
                try{
                    function playVideo(stream) {
                        $('.movie-bg').hide();
                        $('.player-shows-details').hide()
                        $('.tvshows-overlay-content').hide()
                        $('.player-overlay').hide()
                        $('.yuppflix-overlay-logo').hide()
                        otherUrl = stream;

                        if (!this.playing) {
                            var container = document.getElementById('mediaspace');
                            container.classList.add('video-js', 'theoplayer-skin', 'theo-seekbar-above-controls');
                            container.style.width = '100%';
                            getLocation(); //added newly
                            player = new THEOplayer.Player(container, {
                                libraryLocation: 'https://d3hprka3kr08q2.cloudfront.net/staticstorage/theo/th_2_45_1/',
                                mutedAutoplay: 'all',
                                allowMixedContent: true,
                                ui: {
                                    fluid: true
                                },
                                isEmbeddable: true
                            });

                            player.autoplay = isAutoplay;
                            player.muted = false;
                            player.currentTime = seek;

                            player.source = {
                                sources: stream,
                            }

                            player.preload = "auto";
                            this.player = player;
                            playing = true;
                            var elem = this.elementView;
                            this.player.addEventListener('canplay', function () {
                                //this.fixedContetHeight = elem.nativeElement.offsetHeight + 'px';
                                //this.player.play();
                                if(player.readyState){
                                    var vBitrateObj = {
                                        bitRate: (player.videoTracks[0].activeQuality.bandwidth/1000).toString()
                                    };
                                    plugin.setBitRate(vBitrateObj);
                                }
                            })
                            var self = this;

                            self.player.addEventListener('ended', function (e) {
                                if ('' != '')
                                {
                                    setTimeout(function() {
                                        window.location.href = '';
                                    }, 2000);
                                }
                                plugin.handlePlayCompleted();
                                playend="1";
                            });

                            this.playerEvents(laterObj);
                        }
                    };
                }
                catch(e)
                {
                }
            }
            else
            {
                try{
                    function playDRMALTVideo(stream,drmType,streamId) {
                        if (!this.playing) {
                            $('.movie-bg').hide();
                            $('.player-shows-details').hide()
                            $('.tvshows-overlay-content').hide()
                            $('.player-overlay').hide()
                            altStreamURl = stream;

                            var container = document.getElementById('mediaspace');
                            container.classList.add('video-js', 'theoplayer-skin', 'theo-seekbar-above-controls');
                            container.style.width = '100%';
                            var retryCount=0;
                            getLocation(); //added newly
                            player = new THEOplayer.Player(container, {
                                libraryLocation: 'https://d3hprka3kr08q2.cloudfront.net/staticstorage/theo/th_2_45_1/',
                                mutedAutoplay: 'all',
                                allowMixedContent: true,
                                ui: {
                                    fluid: true
                                },
                                isEmbeddable: true
                            });

                            //  player.autoplay = true;
                            player.muted = false;
                            //  player.currentTime = 0;
                            var licenseAcquisitionURL = 'https://prod.yupptv.com/yupptv/api/v2/misc/alt/balaji/get/license';
                            if(drmType!="fairplay")
                            {
                                player.source = {
                                    sources : {
                                        src : stream,
                                        type : 'application/dash+xml',
                                        contentProtection : {
                                            widevine: { licenseAcquisitionURL: licenseAcquisitionURL  },
                                            playready:{ licenseAcquisitionURL: licenseAcquisitionURL  }
                                        }
                                    }
                                };
                            }
                            else
                            {
                              
                                var fairplayCertificate = '';
                            
                                player.source = {
                                    sources : {
                                        src : stream,
                                        type : 'application/x-mpegurl',
                                        contentProtection : {
                                            //fairplay: { licenseAcquisitionURL: licenseAcquisitionURL}
                                            fairplay: { licenseAcquisitionURL: licenseAcquisitionURL, certificateURL: fairplayCertificate }
                                            //  playready:{ licenseAcquisitionURL: licenseAcquisitionURL  }
                                        }
                                    }
                                };
                            }

                            player.network.addRequestInterceptor(function (request) {
                                if (request.url !== licenseAcquisitionURL) {
                                    return;
                                }

                             var initData = request.body;
								 
                                var base64 = btoa(String.fromCharCode.apply(null, new Uint8Array(initData)));
                                console.log('request', request.url, request, initData, base64);
                                request.waitUntil(doLicenseRequestOverride(request, base64));
                            });

                            function doLicenseRequestOverride(originalRequest, base64) {
                                return fetch(licenseAcquisitionURL, {
                                    method : "POST",
                                    headers : {
                                        'Content-Type' : 'application/x-www-form-urlencoded',
                                        'box-id' : 'd51c9a0050b048eb',
                                        'session-id' : 'YT-45867195-dc1e-413f-bfa8-1e2a29f7d5e7'
                                    },
                                    body : 'param=' + encodeURIComponent(base64) + '&drm_type=' +drmType +'&stream_id=' + encodeURIComponent(streamId)
                                }).then((response) => {
                                    return response.json();
                                }).then((responseJson) => {
                                    const licenseResponse = JSON.parse(responseJson.response);
                                    originalRequest.respondWith({
                                        body : _base64ToArrayBuffer(licenseResponse.license)
                                    })
                                })
                            }

                            function _base64ToArrayBuffer(base64) {
                                var binary_string =  window.atob(base64);
                                var len = binary_string.length;
                                var bytes = new Uint8Array( len );
                                for (var i = 0; i < len; i++)        {
                                    bytes[i] = binary_string.charCodeAt(i);
                                }
                                return bytes.buffer;
                            }

                            player.preload = "auto";
                            this.player = player;
                            playing=true;
                            player.play();

                            var elem = this.elementView;
                            this.player.addEventListener('canplay', function () {
                                //this.fixedContetHeight = elem.nativeElement.offsetHeight + 'px';
                                //this.player.play();
                                if(player.readyState){
                                    var vBitrateObj = {
                                        bitRate: (player.videoTracks[0].activeQuality.bandwidth/1000).toString()
                                    };
                                    plugin.setBitRate(vBitrateObj);
                                }
                            })

                            var self = this;
                            self.player.addEventListener('ended', function (e) {
                                if ('' != '')
                                {
                                    setTimeout(function() {
                                        window.location.href = '';
                                    }, 2000);
                                }
                                plugin.handlePlayCompleted();
                                playend="1";
                            });
                            this.playerEvents(laterObj);
                        };
                        // this.playerEvents(laterObj);
                    }
                }
                catch(e)
                {
                }
            }

            $('.player-related-item-image').on('click', function () {
                plugin.handlePlayCompleted();
            });

            //function changeActiveTrack () {
            //}red


            function goPrevious () {
                if (active > 0) {
                    active -= 1;
                    player.src = playlist[active].src;
                    player.autoplay = true;
                }
            }

            function goNext () {
                if (active + 1 < playlist.length) {
                    active += 1;
                    player.source = {
                        sources: playlist[active].src,
                    };
                    player.autoplay = true;
                    isAutoplay="true";
                    player.currentTime = 0;
                }
            }

            function createPlaylistElement(trackNumber) {
                var track = playlist[trackNumber];
                var trackLiElement = document.createElement('li');
                var trackNumberElement = document.createElement('span');
                trackNumberElement.className = 'number';
                trackNumberElement.innerText = trackNumber + 1;
                trackLiElement.appendChild(trackNumberElement);
                var trackThumbnail = document.createElement('span');
                trackThumbnail.className = 'thumbnail';
                var trackThumbnailImage = document.createElement('img');
                trackThumbnailImage.setAttribute('src', track.poster);
                trackThumbnail.appendChild(trackThumbnailImage);
                trackLiElement.appendChild(trackThumbnail);
                var trackTitleElement = document.createElement('span');
                trackTitleElement.className = 'title';
                trackTitleElement.innerText = track.title;
                trackLiElement.appendChild(trackTitleElement);
                trackLiElement.onclick = function () {
                    player.src = playlist[trackNumber].src;
                    active = trackNumber;
                };
                trackLiElement.setAttribute('id', 'theoplayer-playlist-menu-' + trackNumber);
                return trackLiElement;
            }

            function prepAdObj(adObject) {
                var obj = [];
                var self = this;
                function setAd(ad) {
                    if (ad.adType == '0') {
                        self.laterObj['0'] = ad.adUrl;
                    }
                    else if (ad.adType == '1') {
                        var key = ad.duration1;
                        self.laterObj[key] = ad.adUrl;
                        if (!!ad.duration2) {
                            for (var i = ad.duration1 + ad.duration2; i <= 452; i = i + ad.duration2) {
                                self.laterObj[i] = ad.adUrl
                            }
                        }
                    }
                    else if (ad.adType == '2') {
                        var key = ad.duration1;
                        self.laterObj[key] = ad.adUrl;
                        if (!!ad.duration2) {
                            for (var i = ad.duration1 + ad.duration2; i <= 452; i = i + ad.duration2) {
                                self.laterObj[i] = ad.adUrl;
                            }
                        }
                    }
                    else if (ad.adType == '3') {
                        var key = ad.duration1;
                        self.laterObj[key] = ad.adUrl;
                    }
                }

                for (var i = 0; i < adObject.length; i++) {
                    adObject[i].adtype = "0";
                    setAd(adObject[i]);
                }
                return obj;
            }

            function  playerEvents(ad) {
                var self = this;
                // Setting adType for Events
                var playerEventObj = {
                    adType: String("0")
                }

                this.player.ads.addEventListener('adbegin', function (e) {  // this.AD_STARTED = 3;
                    self.playerState = "adplaying";
                    if($('.preview-message').is(":visible")){
                        messagehidden = true;
                        $('.preview-message').hide();
                    }
                    self.plugin.handleAdStarted(playerEventObj);
                });

                this.player.ads.addEventListener('adskip', function (e) {  // this.AD_SKIPPED = 4;
                    self.playerState = "adskipped";
                    self.plugin.handleAdSkipped(playerEventObj);
                });

                this.player.ads.addEventListener('adend', function (e) {  // this.AD_COMPLETED = 6;
                    self.playerState = "idle";
                    self.plugin.handleAdCompleted(playerEventObj);
                    if(messagehidden){
                        $('.preview-message').show();
                    }
                });

                this.player.addEventListener('canplay', function (e) {  // this.VIDEO_STARTED = 7;
                    //self.playerState = "playing";
                    //self.plugin.handlePlayStarted();
                });

                this.player.addEventListener('ended', function (e) {   //  this.VIDEO_COMPLETED = 9;
                    self.playerState = "idle"
                    self.plugin.handlePlayCompleted();
                });

                this.player.addEventListener('pause', function (e) {   //  this.VIDEO_PAUSE = 13;
                    self.playerState = "paused"
                    //self.plugin.handlePause();
                    if (player.ended== true )
                    {
                        if (status != "false")
                        {
                            if(player.presentationMode=="fullscreen")
                            {
                                player.presentationMode= "inline";
                            }
                            self.plugin.handlePlayCompleted();
                            document.getElementById("divmsg").innerHTML=msg;
                            document.getElementById("divoverlay").style.display = 'block';
                            $('.preview-message').hide();
                            self.playerState = "idle"
                            isOverlayMessage = true;
                        }
                        else
                        {
                            goNext();
                        }
                    }
                    else{
                        self.plugin.handlePause();
                    }
                });

                this.player.addEventListener('play', function (e) {   //  this.VIDEO_RESUME = 14;
                    self.playerState = "playing"
                    //self.plugin.handleResume();
                    if (playend=="1")
                    {
                        playend="0";
                        getLocation();
                    }
                    else
                    {
                        plugin.handleResume();
                    }
                    if(player.readyState){
                        var vBitrateObj = {
                            bitRate: (player.videoTracks[0].activeQuality.bandwidth/1000).toString()
                        };
                        plugin.setBitRate(vBitrateObj);
                    }
                })

                this.player.addEventListener('error', function (e) {   //  this.ERROR_MSGS = 16;
                    self.plugin.handleError({ errorMsg: 'Got Error Please Try After Some Time' });
                    self.playerState = "error"
                });

                this.player.addEventListener('seeking', function (e) {   //  this.ERROR_MSGS = 16;
                    if (playerevent.STPosition !="0")
                    {
                        if(!seeking){
                            playerevent.STPosition = player.currentTime * 1000;
                            seek = playerevent.STPosition;
                        }
                    }
                });

                this.player.addEventListener('seeked', function (e) {   //  this.ERROR_MSGS = 16;
                    var t=player.currentTime;
                    if(null == t || "" == t || isNaN(t))
                    {
                        t="-1";
                    }
                    playerevent.ETPosition = t*1000;
                    //playerevent.STPosition = seek;
                    if(t != "-1"){
                        if(!seeking){
                            seeking = true;                        
                            self.plugin.handleSeek({STPosition: playerevent.STPosition, ETPosition: player.currentTime * 1000});
                            seek = player.currentTime * 1000;
                        }
                    }
                });

                //this.player.addEventListener('timeupdate', function(e){                    
                //    seek = player.currentTime * 1000;
                //})

                this.player.addEventListener('waiting', function (e) {
                    self.playerState = "buffering";
                    self.plugin.handleBufferStart();
                });

                this.player.addEventListener('playing', function (e) {
                    seeking = false;
                    self.playerState = "playing";
                    self.plugin.handleBufferEnd();
                    changeActiveTrack();
                });
                //self.player.addEventListener('playing',changeActiveTrack);
            }

            function   getLocation() {
                var hbRate, clientId, authKey, trueIp, timeStamp, vendor; var country; var region ; var city ; var langPrefer;
                var loadObj = { hbRate: String, clientId: String, authKey: String, trueIp: String, timeStamp: String };

                if(localStorage.hbRate==undefined && localStorage.clientId==undefined && $.cookie('fullLocation'))
                {
                    $.ajax({
                        type: 'GET',
                        url: 'https://location.api.yuppcdn.net/auth/v1/serviceinfo',
                        dataType: 'json',
                        success: function (data) {
                            loadObj.hbRate = data["hb_rateV2"];
                            loadObj.clientId = data["client_id"];
                            loadObj.authKey = data["auth_key"];
                            loadObj.trueIp = data["true_ip"];
                            loadObj.timeStamp = data["server_time"];
                            vendorId= data["vendor_id"],
                            countryName= data["country_name"],
                            state= data["region"],
                            city= data["city"]
                            localStorage.setItem('hbRate', data["hb_rateV2"]);
                            localStorage.setItem('clientId', data["client_id"]);
                            localStorage.setItem('authKey', data["auth_key"]);
                            localStorage.setItem('trueIp', data["true_ip"]);
                            localStorage.setItem('timeStamp', data["server_time"]);
                            localStorage.setItem('vendorId', data["vendor_id"]);
                            localStorage.setItem('countryName', data["country_name"]);
                            localStorage.setItem('state', data["region"]);
                            localStorage.setItem('city', data["city"]);

                            setAnlyticsdata();
                        },
                        Error: function (e) {
                            epgdata = {};
                        }
                    });
                }
                else
                {
                    loadObj.hbRate = localStorage.hbRate;
                    loadObj.clientId = localStorage.clientId;
                    loadObj.authKey = localStorage.authKey;
                    loadObj.trueIp = localStorage.trueIp;
                    loadObj.timeStamp = localStorage.timeStamp;
                    vendorId= localStorage.vendorId;
                    countryName= localStorage.countryName;
                    state= localStorage.state;
                    city= localStorage.city;

                    setAnlyticsdata();
                }

                function setAnlyticsdata()
                {
                    var pn = "yupptv";
                    if('False' == 'True'){
                        isSubscribed=1;
                        url = (altStreamURl != "" ? altStreamURl : otherUrl);
                        pn = "yupptv-altbalaji";
                    }
                    else{
                        isSubscribed=1;
                        url = (otherUrl != "" ? otherUrl : altStreamURl);
                        pn = "yupptv";
                    }

                    var a = url.indexOf('?');
                    var sUrl = (a == -1) ? url : url.substring(0, a);

                    plugin = VideoAnalyticsPlugin.load(loadObj);
                    // setting demographics data android native browser
                    metaObj1 = {
                        vendorId: vendorId,
                        countryName: countryName,
                        state: state,
                        city:city
                    };
                    plugin.setDemographics(metaObj1);
                    //setting player metadata
                    var metaObj2 = { playerName: "theoplayer", playerVersion: "2.45.1" };
                    plugin.setPlayerMetaData(metaObj2);
                    //setting clientmetadata
                    var metaObj3 = {
                        appVersion: "",
                        connectionType: "-1",
                        clientIP:localStorage.trueIp,
                        NWProvider: "",
                        ISProvider: ""
                    };
                    plugin.setClientMetaData(metaObj3);
                    //setting contentMetadata
                    var cMetaObj = {
                        channelId: chanid,
                        channelName: chname,
                        programId: progid,
                        programName: preProgramName,
                        genre: progGenre,
                        contentType: contType,
                        CDNetwork: cdn,
                        navigationFrom: 'yuppflix',
                        lang: language,
                        isSubscribed: isSubscribed,
                        epgStartTime : epgStime,
                        epgEndTime : epgEtime,
                        attribute1: "",
                        attribute2: "",
                        attribute3: ""
                    };
                    plugin.setContentMetaData(cMetaObj);
                    //setting usermetadata
                    var nAgt = navigator.userAgent;
                    var browserName  = navigator.appName;
                    var fullVersion  = ''+parseFloat(navigator.appVersion);
                    var majorVersion = parseInt(navigator.appVersion,10);
                    var nameOffset,verOffset,ix;

                    // In Opera 15+, the true version is after "OPR/"
                    if ((verOffset=nAgt.indexOf("OPR/"))!=-1) {
                        browserName = "Opera";
                    }
                        // In older Opera, the true version is after "Opera" or after "Version"
                    else if ((verOffset=nAgt.indexOf("Opera"))!=-1) {
                        browserName = "Opera";
                    }
                        // In MSIE, the true version is after "MSIE" in userAgent
                    else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
                        browserName = "Microsoft Internet Explorer";
                    }
                        // In Chrome, the true version is after "Chrome"
                    else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) {
                        browserName = "Chrome";
                    }
                        // In Safari, the true version is after "Safari" or after "Version"
                    else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
                        browserName = "Safari";
                    }
                        // In Firefox, the true version is after "Firefox"
                    else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {
                        browserName = "Firefox";
                    }
                        // In most other browsers, "name/version" is at the end of userAgent
                    else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ){
                        browserName = nAgt.substring(nameOffset,verOffset);
                    }

                    var uMetaObj = {
                        userId: custid,
                        boxId: loadObj.clientId,
                        deviceType: "web",
                        deviceClient:  browserName.toLowerCase(),
                        deviceId: "5",
                        deviceOS: window.navigator.platform,
                        partnerId: "-1",
                        partnerName:"-1"
                    };
                    plugin.setUserMetaData(uMetaObj);

                    //setting VideoMetadata
                    var vMetaObj = {
                        autoplay: isAutoplay,
                        videoList: "",
                        productName: pn,
                        streamURL: sUrl,
                        seasonNumber: seasonNumber,
                        episodeNumber: episodeNumber,
                        subCategory: "-1",
                        isPromotional: isPromo,
                        vodNumber : vodNo
                    };
                    plugin.setVideoMetaData(vMetaObj);
                    plugin.thumbnailVideoClick();
                    plugin.handlePlayerLoad();
                    var ad = prepAdObj(adTypes);
                    plugin.handlePlayStarted();

                    if(player.readyState){
                        var vBitrateObj = {
                            bitRate: (player.videoTracks[0].activeQuality.bandwidth/1000).toString()
                        };
                        plugin.setBitRate(vBitrateObj);
                    }
                }
            }
         //   var playerState = 'loaded';

            function  getTotalVideoLength()
            {
                //var duration = player.duration;//jwplayer('player').getDuration();
                //duration = ((duration < 0 || typeof (duration) == "undefined" || duration == null) ? "-1" : duration * 1000);
                var duration = totalVideoLength;
                return duration;
            }

            function getPlayerPosition() {
                var position = player.currentTime;//jwplayer('player').getPosition();
                var state = self.playerState;//jwplayer('player').getState();
                position = ((position < 0 || typeof (position) == "undefined" || position == null) ? "-1" : position * 1000);
                if (typeof (state) == "undefined" || state == null) {
                    state = "-1";
                }
                return position + "," + state;
            }

            function playComplete()
            {
                try {
                    plugin.handlePlayCompleted();
                } catch (e) {

                }
            }
        </script>
    

    <script type="text/javascript">
        $('#wtclose').click(function() {
            $('#watch-trailer').modal('hide');
        });
                
        
              $(document).ready(function() {
                  $('.yupptv-link').removeClass('yupptv-link-active');
                  $('.movies').addClass('yupptv-link-active');
              });

        function delay(URL){
            setTimeout( function() { window.location = URL }, 3000 );
        }

        function CopyEmbed()
        {
            var copyText = document.getElementById("embedCode");
            copyText.select();
            document.execCommand("Copy");
            document.getElementById("cpyClip").style.display="block";
            setTimeout(function () {
                document.getElementById("cpyClip").style.display="none";
            }, 2000);
        }

        $(".embed-code-icon").on('click', function () {
            $(".copy-embed-link").toggle();
        });

        $("body").mouseup(function(e)
        {
            var subject = $('div#embed-container');
            if(subject.has(e.target).length <= 0)
            {
                subject.fadeOut(10);
            }
        });

        $(document).ready(function () {
            $('.lan-bar-head').css('display', 'none');
            lazyLoadImages();
            length = 120;
            cHtml = $('.more').html().trim();
            if (cHtml.length > 120) {
                cText = $(".more").text().substr(0, length).trim();
                $(".more").addClass("compressed").html(cText + "... <a href='#' class='morelink'>Show More</a>");
                window.handler = function () {
                    $('.morelink').click(function () {
                        if ($(".more").hasClass("compressed")) {
                            $(".more").html(cHtml + "<a href='#' class='morelink'>Show Less</a>");
                            $(".more").removeClass("compressed");
                            handler();
                            return false;
                        }
                        else {
                            $(".more").html(cText + "... <a href='#' class='morelink'>Show More</a>");
                            $(".more").addClass("compressed");
                            handler();
                            return false;
                        }
                    });
                }
                handler();
            }
            $('.more').show();
        });

        $('.mobile-desc').on('click', function () {
            $('.desc-content').toggleClass("desc desc-open");
        });

        $(document).ready(function () {
            var playerleft = $('.player-left').innerHeight();
            var playerbar = $('.player-bar').innerHeight();
            var playerright = (playerleft - playerbar);
            var scrolldiv = $('.player-related-shows');
            scrolldiv.css('min-height', $(window).height());
            scrolldiv.css('height', playerright);
            scrolldiv.css('max-height', playerright);

            $('.channels').addClass('current');

            $("#content1").mCustomScrollbar({
                //axis:"y",
                theme:"dark",
                autoHideScrollbar: true,
                scrollInertia:1000,
                scrollbarPosition:"inside"
            });

            if ($(window).width() > 991) {
                $("#content2").mCustomScrollbar({
                    //axis:"y",
                    theme: "dark-2",
                    scrollInertia: 500,
                    scrollEasing: "linear",
                    scrollbarPosition: "inside",
                    mouseWheel: { scrollAmount: 300 },
                    //scrollButtons:{ enable: true }
                    //scrollTo:'850'
                });
            }

            setTimeout(function () {
                $('.dummy-cards').hide();
            }, 1000);
        });

        $(window).on('load', function () {
            //  $('.player-related-shows').css('min-height', $('.player-related-shows').css('max-height'));
            setTimeout(function () {
                $("#content2").mCustomScrollbar("scrollTo", $(".watching-now").prev(), { scrollInertia: 1000 });
            }, 1000);
        });

        $(window).on('resize', function () {
            //  var playerleft = $('.player-left').innerHeight();
            //  var playerbar = $('.player-bar').innerHeight();
            //  var playerright = (playerleft - playerbar);
            //  var scrolldiv = $('.player-related-shows');
            // scrolldiv.css('height', playerright);
            //scrolldiv.css('max-height', playerright);

            if ($(window).width() <= 991) {
                $("#content2").mCustomScrollbar("destroy");
            } else {
                $("#content2").mCustomScrollbar({
                    theme: "dark-2",
                    scrollInertia: 500,
                    scrollEasing: "linear",
                    scrollbarPosition: "inside",
                    mouseWheel: { scrollAmount: 300 },
                    //scrollButtons:{ enable: true }
                });
            }
        });

        function redirectToBilling(id,duration,freetrail,currency,code,type,seasonCode,episodeCode)
        {
            try{
                $('#theater-payment-loading').modal('hide');
            }
            catch(e)
            {
            }
            var saveData = $.ajax({
                type: 'GET',
                url: "https://www.yupptv.com/miniTheatre/RedirectToUrl",
                data: { movieId: id,isPPV : 'False',freeTrail:freetrail,duration : duration,currency : currency,isAltBalaji : 'False', dataCode:code, dataType:type,seasonCode: seasonCode,episodeCode : episodeCode},
                dataType: "json",
                success: function (resultData) {
                    window.location.href = resultData.Url
                },
                error: function (err) {
                    // alert(err);
                }
            });
        };

        function  redirectToConfirmationPage(id,freetrail,code,type,seasonCode,episodeCode,orderNo)
        {
            var saveData = $.ajax({
                type: 'GET',
                url: "https://www.yupptv.com/miniTheatre/RedirectToConfirmationUrl",
                data: { movieId: id,IsAltBalaji : 'False', dataCode:code, dataType:type,seasonCode: seasonCode,episodeCode : episodeCode,orderNo : orderNo},
                dataType: "json",
                success: function (resultData) {
                    window.location.href = resultData.Url
                },
                error: function (err) {
                    // alert(err);
                }
            });
        }
    </script>


        <script>
            var packageId;
            var duration;
            var currency;
            var freetrail;
            var clicked =1


            $('#btnsubscribe').on("click",function () {
                if(clicked){
                    clicked=0;
                    var saveData = $.ajax({
                        type: 'GET',
                        url: "https://www.yupptv.com/miniTheatre/GetPackageDetails",
                        data: { Id: '508366',entityType : 'movie' },
                        dataType: "json",
                        success: function (resultData) {
                            if(resultData.status==1){
                                packageId=resultData.response.id;
                                duration=resultData.response.duration;
                                currency=resultData.response.currency;
                                freetrail=resultData.response.freeTrialDays;
                                $('#yuppflix-subscription-info').text(resultData.response.priceInfo);
                                $('#yuppflix-subscribe-info').modal('show');
                                clicked =1;
                            }
                            else if(resultData.status==0){
                                // alert(resultData.error.message);
                              clicked =1;
                            }
                        },
                        error: function (err) {
                            console.log("error - subscrbie - " + err.statusText);
                            clicked =1;
                        }
                    });
                }
            });

            $('#payment-continue').on("click",function () {
                $('#yuppflix-subscribe-info').modal('hide');
                $('#subscribe-payment-loading').modal('show');
                var saveData = $.ajax({
                    type: 'GET',
                    url: "https://www.yupptv.com/miniTheatre/Payment",
                    data: { packageId :'508366',entity_type:'movie' },
                    dataType: "json",
                    success: function (resultData) {
                        if (resultData.status == 1 && resultData.response.status == 1) {
                           // $('#subscribe-payment-loading').modal('hide');
                            // location.reload();
                            redirectToConfirmationPage(packageId,freetrail,'kathalo-rajakumari','movie',null,null,resultData.response.orderNumber);
                        } else {
                            // $('#theater-payment-failed').modal('show');
                            redirectToBilling(packageId,duration,freetrail,currency,'kathalo-rajakumari','movie',null,null);
                        }
                    },
                    error: function (err) {
                        console.log("error - payment - " + err.statusText);
                    }
                });
            });

            $('#payment-cancel').on("click",function () {
                $('#yuppflix-subscribe-info').modal('hide');

            });
        </script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-542a85415671f6fc"></script>

    <script type="text/javascript">
             /* var loc = 'https://location.api.yuppcdn.net/auth/v1/serviceinfo';
        var v2 = 'https://prod.yupptv.com/yupptv/api/v2/';
        var lang = v2 + 'language/list';
        var session = 'YT-417f476a-d31a-42fa-95a8-45c4a9f341c7';
        var boxid = '1f80355312184be5';
        var sugg = 'https://prod.yupptv.com/search/api/v2/get/suggestions';*/
        var searchres = 'http://www.lyricstubes.com/search.php?type=all&data=';
       /* var uplang = 'https://prod.yupptv.com/auth/api/v1/viewer/preferences/update';
        var rooturl = 'https://www.yupptv.com';*/
    </script>
    <script src="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Scripts/js/common.js"></script>
    <script src="https://yuppstatic.akamaized.net/yupptv/yupptv_new/Web/minified/Scripts/js/IntersectionObserver.js"></script>
    <script>
            var nAgt = navigator.userAgent;
            var images = "";
             if ((nAgt.indexOf("MSIE") != -1) || nAgt.indexOf(".NET") != -1) {
                images = document.getElementsByTagName('img');
                for (var i = 0; i <= images.length - 1; i++) {
                    loadImage(images[i]);
                }

                function loadImage(img) {
                    var src = img.getAttribute('data-src');
                    if (!src) { return; }
                    img.src = src;
                    img.removeAttribute("data-src");
                }
            } else {
                images = document.querySelectorAll('[data-src]');
                var config1 = {
                    rootMargin: '0px 0px 50px 0px',
                    threshold: 0
                };
                var loaded = 0;

                var observer = new IntersectionObserver(function (entries, self) {
                    for (var k = 0; k <= entries.length - 1; k++) {
                        //console.debug(entries[k].isIntersecting);
                        if (entries[k].isIntersecting) {
                            preloadImage(entries[k].target);
                            self.unobserve(entries[k].target);
                        }
                    }
                    //entries.forEach(function (entry) {
                    //    console.debug(entry);
                    //    if (entry.isIntersecting) {
                    //        preloadImage(entry.target);
                    //        self.unobserve(entry.target);
                    //    }
                    //});
                }, config1);
                //images.forEach(function (image) { observer.observe(image); });

                for (var i = 0; i <= images.length - 1; i++) {
                    observer.observe(images[i]);
                }

                function preloadImage(img) {
                    var src = img.getAttribute('data-src');
                    if (!src) { return; }
                    img.src = src;
                    img.removeAttribute("data-src");
                }
            }

        </script>
		
		
		<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js" type="text/javascript"></script>
 <script src="https://cdn.datatables.net/buttons/1.5.6/js/dataTables.buttons.min.js" type="text/javascript"></script>
 <script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.flash.min.js" type="text/javascript"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" type="text/javascript"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js" type="text/javascript"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js" type="text/javascript"></script>
 <script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js" type="text/javascript"></script>
 <script src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.print.min.js" type="text/javascript"></script>
	
	
<script >
        $(document).ready(function() {
    $('#example').DataTable( {
        dom: 'Bfrtip',
        buttons: [
           
        ]
    } );
} );
</script>
		
</body>
</html>