Example #1
0
<?php

require_once 'inc/lib/rotten.class.php';
$rotten = new Rotten();
$movies = $rotten->get_movies_in_box_office();
$x = 0;
// iterator to switch between color classes with.
$use_full_image = true;
// use full size poster images - loads really slow.
$classes = array('bg1', 'bg2', 'bg3', 'bg4', 'bg5', 'bg6', 'bg7');
// bg color classes for titles
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1">

		<title>Rotten.</title>

		<link rel="stylesheet" media="screen" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:400,700,300|Montserrat:400,700">
		<link rel="stylesheet" media="screen" type="text/css" href="inc/css/animate.css" />
		<link rel="stylesheet" media="screen" type="text/css" href="inc/css/style.css" />

		<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
		<script src="inc/js/modernizr.custom.js"></script>
		<script src="inc/js/helper.js"></script>
		<script src="inc/js/grid3d.js"></script>
		<script src="inc/js/script.js"></script>
<?php

require_once 'rotten.class.php';
$rotten = new Rotten();
header('Access-Control-Allow-Origin: http://localhost:9000');
header('Content-Type: application/json');
echo $rotten->get_movies_in_box_office(false);
exit;