<?php if(strpos($_GET['exit'], 'http')===false){ $exiturl='https://cdn.gamesapi.net/close.php'; }else{ $exiturl=$_GET['exit']; }
if($_GET['language']=='ru'){ $lang='ru'; }else{ $lang='en'; }
if($_GET['device']>0){ $device=1; }else{ $device=0; } //0 - PC. 1, 2 - Mobile.
$quickspinsessionid='d2k3wptpwv4u4d';
if($device==0){ $quickspindevice='casino'; }else{ $quickspindevice='mcasino'; }
$pragmaticcurrency='EUR';
if($device==0){ $yggdrasildevice='pc'; }else{ $yggdrasildevice='mobile'; }
$yggdrasilcurrency='EUR';
$gameUrls=array(
//Quickspin
'6888'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/arcanegems/index.html?gameid=arcanegems&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6891'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/dragonchase/index.html?gameid=dragonchase&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'4187'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/dragonshrine/index.html?gameid=dragonshrine&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'4185'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/goldlab/index.html?gameid=goldlab&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6810'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/goldilocks2/index.html?gameid=goldilocks2&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6889'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/hammerofvulcan/index.html?gameid=hammerofvulcan&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6821'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/hiddenvalley2/index.html?gameid=hiddenvalley2&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6801'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/hotsync/index.html?gameid=hotsync&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6816'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/panthersreign/index.html?gameid=panthersreign&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6814'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/polarpaws/index.html?gameid=polarpaws&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6800'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/sakurafortune/index.html?gameid=sakurafortune&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'7002'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/secondstrike/index.html?gameid=secondstrike&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'4186'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/spinions/index.html?gameid=spinions&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6815'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/talesofdoctordolittle/index.html?gameid=talesofdoctordolittle&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6809'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/wildchase/index.html?gameid=wildchase&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,
'6890'=>'https://'.$quickspinsessionid.'.cloudfront.net/'.$quickspindevice.'/quickspin/tigersglory/index.html?gameid=tigersglory&moneymode=fun&partnerid=quickspin&lang='.$lang.'&homeurl='.$exiturl,

//Pragmatic
'7657'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25kingdoms&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7667'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243lions&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7675'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243lionsgold&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7019'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs7monkeys&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7526'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs7pigs&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7659'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20eightdragons&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7679'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50amt&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7649'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50amt&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7534'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10egypt&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7539'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10egypt&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7669'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25asgard&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7535'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5aztecgems&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7655'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs40beowulf&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7762'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10bbbonanza&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7685'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs75bronco&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7021'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs4096bufking&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'6997'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243caishien&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7662'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243fortune&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'6998'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25chilli&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7761'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20xmascarol&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7757'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10cowgold&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7683'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243dancingpar&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7522'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25dragonkingdom&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7514'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25dwarves&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7520'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25dwarves_new&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7544'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20egypttrs&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7543'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10fruity2&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7665'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs7fire88&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7549'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10firestrike&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7687'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20fruitparty&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7018'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs40frrainbow&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7760'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20olympgate&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7513'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20rome&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7531'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25goldrush&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7658'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs3train&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'6994'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20gorilla&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7009'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20rhino&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7028'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20rhinoluxe&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7686'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vswaysrhino&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7680'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243fortseren&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7656'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50hercules&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7515'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20hockey&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7517'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs9hockey&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7678'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20honey&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7759'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25hotfiesta&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7017'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25safari&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'6995'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5hotburn&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7676'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs7776secrets&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7554'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10bookoftut&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7548'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25scarabqueen&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7025'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25jokerking&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7020'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5joker&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7521'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25journey&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'6993'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50juicyfr&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7511'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20gorilla&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7660'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs4096jurassic&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7651'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20godiva&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7654'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50chinesecharms&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7533'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25newyear&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7537'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10madame&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7755'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vswaysmadame&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7650'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243crystalcave&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7682'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs1masterjoker&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7652'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50kingkong&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7551'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25mmouse&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7004'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs243mwarrior&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7671'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25mustang&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7527'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25pandagold&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7523'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25pantherqueen&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7538'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25peking&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7661'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50pixie&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7558'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25pyramid&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7519'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25romeoandjuliet&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'6992'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs50safariking&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7528'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20santa&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7510'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs40spartaking&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7688'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs117649starz&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7689'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs40streetracer&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7648'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20cm&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7006'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5super7&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7546'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20fruitsw&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7550'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20sbxmas&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7512'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20egypt&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7516'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs9catz&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7653'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs30catz&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7668'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25champ&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7674'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20doghouse&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7011'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vswaysdogs&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7758'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20midas&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7557'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10threestar&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7541'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs18mashang&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7677'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs1fortunetree&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7540'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5trdragons&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7545'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5trjokers&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7529'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs1tigers&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7556'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20hburnhs&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7756'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs5ultra&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7547'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs10vampwolf&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7670'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20vegasmagic&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7670'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25gladiator&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7670'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs20wildpix&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7670'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25wildspells&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7670'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs40wildwest&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,
'7670'=>'https://demogamesfree.ppgames.net/gs2c/openGame.do?lang='.$lang.'&cur='.$pragmaticcurrency.'&gameSymbol=vs25wolfgold&websiteUrl=https%3A%2F%2Fdemogamesfree.pragmaticplay.net&jurisdiction=99&lobbyURL='.$exiturl,

//Yggdrasil
'6827'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=1003&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'6842'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7326&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'6832'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7328&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'6846'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7308&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7569'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7315&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7586'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7334&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7568'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7313&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7567'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7310&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7595'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7353&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7594'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7318&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7592'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7346&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7593'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7304&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7591'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7343&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7571'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7322&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7576'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7320&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7577'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7321&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7572'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7301&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7575'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7327&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7579'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7319&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7590'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=8301&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7589'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7350&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7585'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7335&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7588'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7340&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7583'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7336&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7566'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7305&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7587'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7342&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7564'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7371&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7573'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7323&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7584'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7338&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7580'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7330&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7563'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7364&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7582'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7341&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7570'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7316&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7561'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7366&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl,
'7562'=>'https://staticpff.yggdrasilgaming.com/init/launchClient.html?currency='.$yggdrasilcurrency.'&gameid=7370&lang='.$lang.'&channel='.$yggdrasildevice.'&home='.$exiturl);
function query($query) {
global $url;
$query=json_encode($query);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($query),
'Accept: */*')
);

$response = curl_exec($ch);
$response=json_decode($response);
return $response;
}
$url="https://yourserver/API/openGame/";
$balance=5000;
$maxID=200;
$hall="id";
$hall_key="key";
$db=new mysqli('localhost', 'database', 'keydb', 'counter');
if (!isset($_GET['game'])) {
die("Ошибка! не указан id игры");
} else {
$id=$db->query("SELECT * FROM `counter` WHERE id=1");
$id=$id->fetch_assoc()['count']+0;
$id=$id%$maxID+1;
$db->query("UPDATE `counter` SET count=$id WHERE id=1");
$db->query("INSERT INTO `log` (count,game,ip,`type`,datetime) VALUES ($id,'{$_GET['game']}','{$_SERVER['REMOTE_ADDR']}','tbs2_demo',NOW())");
if (isset($gameUrls[$_GET['game']])) {
$response= (object)array(
'iframe'=>1,
'url'=>$gameUrls[$_GET['game']]
);
} else {
$response=query(array(
"cmd" => "openGame",
"hall" => $hall,
"key" => $hall_key,
"login" => 'demo'.$id,
"gameId" => $_GET['game'],
"demo" => "1",
"domain" => "https://sfrom where open.com/demo/close.php"
))->content->game;
}
}
if (strpos($response->url,http)===0) {
$code='<iframe id="frame" src="'.$response->url.'" allowfullscreen></iframe>';
} else {
$code=$response->url;
}
?>
<html>
<head>
<style type="text/css">
html,body, iframe{
      left: 0px;
      top: 0px;
      position: relative;
      display: flex;
      align-items: center;
	  background-color: black;
      margin: 0px;
      padding: 0px;
      width: 100%;
      height: 100%;
      border: 0px;
}
</style>
<script>function closeGame(){
window.location.href='<?php echo $exiturl; ?>'; }
window.gclose=closeGame;
window.close=closeGame;
window.onmessage=function(event){
if (event.data=='closeGame' || event.data=='close' || event.data.indexOf("GAME_MODE:LOBBY")>=0) {
closeGame(); } }</script>
</head>
<body>
<?php echo $code ?>
</body>
</html>