Exemple #1
0
            $sounds[$ext] = array();
        }
        $sounds[$ext][] = $sound . '.' . $ext;
    }
}
//ensure uptodate tigers minified
getJSFile('js/tigers.js', true);
$custom_key = false;
if (file_exists('tmp/flikr_key')) {
    $custom_key = file_get_contents('tmp/flikr_key');
}
?>
(function(){
	<?php 
//inject dependency loader script
echo getJSFile('js/requireScript.js', true);
?>
	if(window.tiger_game_loaded) return;

	window.tiger_config={};
	tiger_config.sounds = <?php 
echo json_encode($sounds);
?>
;
	tiger_config.serverURL="http://<?php 
echo $_SERVER['SERVER_NAME'] . dirname($_SERVER['REQUEST_URI']);
?>
";
	tiger_config.soundServer='tigersounds.php';
	<?php 
if ($custom_key) {
Exemple #2
0
<?php

require 'lib/enableGZIP.php';
require 'lib/getJSFile.php';
$code = getJSFile('js/tigercage.js', true);
$clean_code = trim(json_encode(array($code)), '[]');
?>
<!DOCTYPE html>
<html>
<head>
	<title>TIGERS!!!!!!!!!!!</title>
	<link href='http://fonts.googleapis.com/css?family=Crimson+Text' rel='stylesheet' type='text/css'>
	<style>
		body{
			margin:0;
			padding:0;
			background:#000;
			color:#fff;
			font-size:14px;
			font-family: 'Crimson Text', arial, serif;
		}

		#main{
			width:900px;
			margin:0px auto;
		}

		#page{
			border:3px solid orange;
			background-color:#fff;
			color:#000;