403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/members.ebonysinners.com/public_html/members/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/members.ebonysinners.com/public_html/members/js/tour.js
$( document ).ready(function() {


	$(".convert_unixtime").each( function(e) { 
		
		vx = $(this).html();
		vs = new Date(vx * 1000);
		
		$(this).html( convert_fromunixtime(vs) );
	});
	
	$(".hide_if_live").each( function(e) { 
		var t = $(this).data("time");
		var u = new Date(t * 1000);
		
		var c = new Date();
		
		if (c < u)
		{
			$(this).show();
		}
	});

	$(".show_if_live").each( function(e) { 
		
		var t = $(this).data("time");
		var u = new Date(t * 1000);
		
		var c = new Date();
		
		if (c >= u)
		{
			$(this).show();
		}
	});


	lsb = $("#live_show_box");

	st = $("#live_show_box").data("start")
	ed = $("#live_show_box").data("end")
	if (st == undefined) return;
	ct = $("#live_show_box").data("currtime")
	
	var s = new Date(st * 1000);
	var e = new Date(ed * 1000);
	
	var live_int = setInterval(function(){ 

		var c = new Date();
		
		fullt = convert_fromunixtime(s);
		
		if (c > e)
		{
			$(".live_show_wrapper").fadeOut();
			clearInterval(live_int);
		}		
		else if (s > c)
		{
			$("#live_show_fulltime").html(fullt);
			$("#live_show_fulltime").fadeIn();

			
			tm = Math.floor(s.getTime() - c.getTime() ) / 1000;
			
			st = Math.floor(tm / 86400);
			if (st < 10) st = "0" + st;
			tm = tm % 86400;
			$("#live_show_days").html(st);
			
			st = Math.floor(tm / 3600);
			if (st < 10) st = "0" + st;
			tm = tm % 3600;
			$("#live_show_hours").html(st);
			
			st = Math.floor(tm / 60);
			if (st < 10) st = "0" + st;
			tm = tm % 60;
			$("#live_show_minutes").html(st);
			
			st = Math.floor(tm);
			if (st < 10) st = "0" + st;
			tm = tm;
			$("#live_show_seconds").html(st);
			
			$("#live_show_now").fadeOut("400", function() { 
				$("#live_show_future").fadeIn();			
			});

		}
		else
		{
			if (lsb.data("refresh") == "1")
			{
				clearInterval(live_int);
				document.location.reload(); 
				return;
			}
			
			$("#live_show_days").html("00");		
			$("#live_show_hours").html("00");		
			$("#live_show_minutes").html("00");		
			$("#live_show_seconds").html("00");
			
			$("#live_show_fulltime").fadeOut(400, function() {
				$("#live_show_watchnow").fadeIn();
			});
			
			$("#live_show_future").fadeOut(400, function() { 			
				$("#live_show_now").fadeIn();	
			});
		}

	}, 1000);
});

function convert_fromunixtime(s)
{
	var w = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
	var m = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
	
	var h = s.getHours();
	var ampm = (h > 11) ? "pm" : "am";
	var min = s.getMinutes();

	h -= (h > 11) ? 12 : 0;
	h = (h == 0) ? 12 : h;

	if (min < 10) min = "0" + min;
	
	return w[s.getDay()] + " " + m[s.getMonth()] + " " + s.getDate() + ", " + s.getFullYear() + ", " + h + ":" + min + ampm;
}



function playFlash(v)
{
  ret = tlimit();
  if (ret == true)
  {
    window.open('showflash.php?m=' + v,'','width=700,height=500')
  }
}

ctlimit_name = 'tlimit';
function tlimit(){

	if(!(limit = getCookieTLimit(ctlimit_name))) //counter for this user doesn't exist
	{
		setCookieTLimit(ctlimit_name,1,dayslimit);
		return true;
	}
	else //counter for the user exist 
	{

		if(parseInt(getCookieTLimit(ctlimit_name)) >= maxClicks) // the limit of the counter is reached 
		{
			return false;
		}
		else	//increase the limit of the counter redirect to the members page  
		{		
			setCookieTLimit(ctlimit_name,parseInt(getCookieTLimit(ctlimit_name))+1,dayslimit);
			return true;
		}
	}
}



	
function setCookieTLimit(c_name,value,expiredays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie = c_name+ "=" +escape(value) + ";path=/" +((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function getCookieTLimit(c_name)
{
	if (document.cookie.length !=0)
	  {
		  c_start=document.cookie.indexOf(c_name + "=");
		  if (c_start!=-1)
		    { 
		    	c_start=c_start + c_name.length+1; 
		    	c_end=document.cookie.indexOf(";",c_start);
		    if (c_end==-1) c_end=document.cookie.length;
		    return unescape(document.cookie.substring(c_start,c_end));
	    	} 
	  }
	return false;
}

function loadbanner()
{
	if (remaining < 1)
	{
		$(".replay").hide();
	}

	$.fancybox( {href : '#hpromo', title : ttl,
    	helpers : {
    		title : {
    			type : 'inside'
    		},
	        overlay : {
	            css : {
	                'background' : 'rgba(50, 50, 50, 0.75)'
	            }
	        }
    	}} );
}


tvv = "";

function tload(v)
{ 
  tvv = v;

  ret = tlimit();

  lmt = getCookieTLimit(ctlimit_name)
  remaining = maxClicks - lmt;  

  ttl = "<span class='views_remaining'>You have " + Math.max(0, remaining) + " free video view(s) remaining.</span>";

  if (ret == true)
  {  
  	cont = "<div id=\"mediaspace\"></div>";
  	
  	if (document.getElementById("hiddensocial"))
  	{
	  	cont = cont + "<div align='center'>" + document.getElementById("hiddensocial").innerHTML + "</div>"	  	
  	}
  	
  		w = Math.min($(window).width() * 0.90, 960);
  		h = w / 16 * 9;
  	  	  
	  $.fancybox.open( 'grp', {
		fitToView: false, // to show videos in their own size
		content: cont,
		scrolling: 'no', // don't show scrolling bars in fancybox
		title: ttl,
		minWidth: w,
		minHeight:h,
		afterShow: function () {
			
			ext = v.split('.').pop().split("?").shift();
			
			txt = '<video width="' + w + '" height="' + h + '" id="mediabox">';
			txt = txt + "\n" + '<source type="video/' + ext + '" src="' + v + '" />';
			txt = txt + '</video>';
			
			// console.log(txt)
			
			$("#mediaspace").html(txt);
			
			$('#mediabox').mediaelementplayer({
				
				enablePluginSmoothing: true,
				
			    success: function(media, node, player) {
				    
			        media.play();
			        
	                media.addEventListener('ended', function(e){
						loadbanner();
	                });
				}
			});	
		},
    	helpers : {
    		title : {
    			type : 'inside'
    		},
	        overlay : {
	            css : {
	                'background' : 'rgba(50, 50, 50, 0.75)'
	            }
	        }
    	}
	  });
  }
  else
  {
  	loadbanner();
  }
}

function replay()
{
	tload(tvv);
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+ ";path=/" + 
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

/*
Instructions for rotating headers:

This code will rotate through a series of header images uploaded to the tour's images/header/ folder.

To change the number of headers it uses:
1) Change var numt = 5 to the number of headers you want to rotate
2) Change setCookie("numheader", rnd, 5) to the number of headers you want to rotate
*/

$(document).ready(function() {

	/** Splash page stuff **/

	$(window).load(function() {

		// If there's no mask, don't run any of this code.
		if ($('#mask').size() == 0)
		{
			$('#login-box').attr('closed', 1);
			return false;
		}
		
		// If there's a warning cookie in place, fade out the mask.
		var warn=getCookie("warn");
		if (warn!=null && warn!="")
		{
			$('#mask').fadeOut('100');
			$('#login-box').attr('closed', 1);
			return false;
		}		
		
		//Fade in the Popup
				
		if ($('#login-box').attr('closed') != "1")
		{
			$('#login-box').fadeIn(300);
		}
		
		return false;
	});
	
	// When clicking on the button close or the mask layer the popup closed
	$('a.close').on('click', function() { 

      $('#login-box').attr('closed', 1);

	  $('#mask , .login-popup').fadeOut(300 , function() {
		 setCookie("warn",1,30);
	     $('#mask').remove();
	  });
	  return false;
	});



	var numt = 5
	
	if (numt > 1)
	{
	  var oldcook = getCookie("numheader")
	
	  if (oldcook == "")
	  {
	     rnd = Math.floor(Math.random()*numt) + 1
	  }
	  else
	  {
	     do
	     {
	       rnd = Math.floor(Math.random()*numt) + 1
	     } while (rnd == oldcook)
	  }
	
	  setCookie("numheader", rnd, 5)
	}
	else
	{
	  var rnd = 1
	}
	if ($(".header_image").length > 0)
{
		$(".header_image").attr("src",      $(".header_image").attr("src").replace("header.jpg", "header" + rnd + ".jpg"))
	}

//	if ($(".join_header_image").length > 0)
//	{
//		$(".join_header_image").attr("src", $(".join_header_image").attr("src").replace("header.jpg", "header" + rnd + ".jpg"))
//	}
	
	if ($(".tour_header_image").length > 0)
	{
		$(".tour_header_image").attr("src",      $(".tour_header_image").attr("src").replace("header.jpg", "header" + rnd + ".jpg"))
	}
});








Youez - 2016 - github.com/yon3zu
LinuXploit