HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //proc/thread-self/root/old_home_backup/mycamden.co.uk/public_html/partners/App/lbNetNR.js
/*Cookie set & retrieval*/
var lbUser = "";
function lbUserSet(lbUser){
	var sellBy = new Date();
	var life = sellBy.getTime()+(60*86400000);
	sellBy.setTime(life);
	document.cookie = "lbNetUser="+escape(lbUser)+";expires="+sellBy.toGMTString()+";";
}
function lbUserGet(){	
	if(document.cookie){
		cookieData = unescape(document.cookie).split(";");
		for(k = 0; k < cookieData.length; k++){		
				myCookie = cookieData[k].split("=");
				if(myCookie[0].indexOf("lbNetUser") != -1){
					lbUser = myCookie[1];
					return lbUser;
				}
		}		
	}	
}
function urchinTracker(){
	return false;
}
function registerStats(type){
	//alert(type);
	urchinTracker('/Ingrid/' + type);
}
var clientUrl = document.location.href;
var filePath = "https://secure.livebookings.com/partners/App/";
var swfTgt = filePath + "lbNetGuiV7.swf";
// Embed XMLbooker
function embedLB(restlocationUID,linkUID,panelColour,borderSize,borderColour,countryCode,languageOptions,partnerName,subLocationUID,requestSession,requestCovers,requestDate){
	lbUserGet() == "undefined" ? userName = "": userName = lbUserGet();
	document.write("<OBJECT	CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' WIDTH='300' HEIGHT='350' CODEBASE='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,41,0'>" +
		"<PARAM NAME='MOVIE' VALUE='" + swfTgt +
			"?restlocationUID=" + restlocationUID + 
			"&linkUID=" + linkUID + 
			"&bookingid=0" +
			"&panelColour=" + panelColour + 
			"&border=" + borderSize + 
			"&bdrColour=" + borderColour +
			"&countryCode=" + countryCode +
			"&showLangOpts=" + languageOptions +
			"&restUID=" + subLocationUID +
			"&partnerName=" + partnerName +
			"&subLocationUID=" + subLocationUID +
			"&requestSession=" + requestSession +
			"&requestCovers=" + requestCovers +
			"&requestDate=" + requestDate +
			"&clientUrl=" + clientUrl +
			"&userName=" + userName + "'>" +
		"<PARAM NAME='PLAY' VALUE='true'>" +
		"<PARAM NAME='LOOP' VALUE='false'>" +
		"<PARAM NAME='QUALITY' VALUE='high'>" +
		"<PARAM NAME='MENU' VALUE='false'>" +
		"<PARAM NAME='BGCOLOR' VALUE='#FFFFFF'>" +
		"<EMBED SRC='" + swfTgt +
			"?restlocationUID=" + restlocationUID + 
			"&linkUID=" + linkUID + 
			"&bookingid=0" +
			"&panelColour=" + panelColour + 
			"&border=" + borderSize + 
			"&bdrColour=" + borderColour +
			"&countryCode=" + countryCode +
			"&showLangOpts=" + languageOptions +
			"&clientUrl=" + clientUrl +
			"&restUID=" + subLocationUID +
			"&partnerName=" + partnerName +
			"&subLocationUID=" + subLocationUID +
			"&requestSession=" + requestSession +
			"&requestCovers=" + requestCovers +
			"&requestDate=" + requestDate +
			"&userName=" + userName + "' " +
			"WIDTH='300' " +
			"HEIGHT='350' " +
			"PLAY='true' " +
			"LOOP='false' " +
			"QUALITY='high' " +
			"BGCOLOR='#FFFFFF' " +
			"MENU='false' " +
			"TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/flashplayer/'>" +
			"</EMBED>" +
			"</OBJECT>");
}
// Popup XML Booker
function popLB(restlocationUID,linkUID,panelColour,borderSize,borderColour,countryCode,languageOptions,partnerName,subLocationUID,requestSession,requestCovers,requestDate){
	height = 380; 
	width = 320;
  	xPos = (640 - width)/2;
	yPos = (480 - height)/2;
   	if (screen) {
		xPos = (screen.availWidth - width)/2;
        yPos = (screen.availHeight - height)/2; 		
    }else if(navigator.appName=="Netscape") {
		xPos = (window.innerWidth - width)/2;
        yPos = (window.innerHeight - height)/2; 
	}
		tgtUrl = 	filePath + "index.cfm" +
							"?restlocationUID=" + restlocationUID + 
							"&linkUID=" + linkUID + 
							"&panelColour=" + panelColour + 
							"&border=" + borderSize + 
							"&bdrColour=" + borderColour +
							"&country=" + countryCode +
							"&showLangOpts=" + languageOptions +
							"&restUID=" + subLocationUID +
							"&requestSession=" + requestSession +
							"&requestCovers=" + requestCovers +
							"&requestDate=" + requestDate +
							"&partnerName=" + partnerName;				
			args = 	"width=" + width + 
							",height=" + height + 
							",screenX=" + xPos + 
							",screenY=" + yPos +
							",left=" + xPos +
							",top=" + yPos +
							",resizable=1" + 
							",status=1";
			
    lbWindow = window.open(tgtUrl,'bkgWin',args);
		lbWindow.focus();				
}

// Display restaurant's credit card policy
function ccPolicy(countryCode){	
	height = 300; 
	width = 400;
    xPos = (640 - width)/2;
	yPos = (480 - height)/2;
    if (screen) {
		xPos = (screen.availWidth - width)/2;
        yPos = (screen.availHeight - height)/2;        
    }
	tgtUrl = "http://reservations.livebookings.com/" + countryCode + "/messages/ccPolicy.htm";
	args = 	"width=" + width + 
			",height=" + height + 
			",screenX=" + xPos + 
			",screenY=" + yPos +
			",left=" + xPos +
			",top=" + yPos +
			"status=1,scrollbars=0";
			
    ccWindow = window.open(tgtUrl,'ccWindow',args);
	ccWindow.focus();
	}
// Security code information
function ccSecurity(){
	height = 300; 
	width = 450;
    xPos = (640 - width)/2;
	yPos = (480 - height)/2;
    if (screen) {
		xPos = (screen.availWidth - width)/2;
        yPos = (screen.availHeight - height)/2;        
    }
	tgtUrl = "http://reservations.livebookings.com/uk/dsp_CCcode.cfm";
	args = 	"width=" + width + 
			",height=" + height + 
			",screenX=" + xPos + 
			",screenY=" + yPos +
			",left=" + xPos +
			",top=" + yPos +
			"status=1,scrollbars=1";
			
    ccWindow = window.open(tgtUrl,'ccWindow',args);
	ccWindow.focus();
}