<?php require_once __DIR__ . '/allocine.class.php'; define('ALLOCINE_PARTNER_KEY', '100043982026'); define('ALLOCINE_SECRET_KEY', '29d185d98c984a359e6e6f26a0474269'); $allocine = new Allocine(ALLOCINE_PARTNER_KEY, ALLOCINE_SECRET_KEY); $allocine->debug = True; $result = $allocine->person(41339); echo $result;
<?php require_once __DIR__ . '/allocine.class.php'; define('ALLOCINE_PARTNER_KEY', '100043982026'); define('ALLOCINE_SECRET_KEY', '29d185d98c984a359e6e6f26a0474269'); $allocine = new Allocine(ALLOCINE_PARTNER_KEY, ALLOCINE_SECRET_KEY); $result = $allocine->reviewlist(27405); echo $result;
foreach ($div->getElementsByTagName("p") as $p) { if ($p->hasAttribute("class") and $p->getAttribute("class") == "fs11 lighten_hl") { preg_match("/depuis(.*)jours/i", $p->nodeValue, $matches); $buffer = trim($matches[1]); printf("SINCE:%s\n", $buffer); preg_match("/activit.*:(.*)/i", $p->nodeValue, $matches); $buffer = trim($matches[1]); printf("LASTACT:%s\n", $buffer); } } foreach ($div->getElementsByTagName("div") as $sdiv) { if ($sdiv->hasAttribute("class") and $sdiv->getAttribute("class") == "pos_rel") { $array = array("notes", "critiques", "suivis", "abo"); foreach ($array as $value) { if (eregi($value, $sdiv->nodeValue)) { preg_match("/([0-9]+)/", $sdiv->nodeValue, $matches); print $value . ":" . trim($matches[1]) . "\n"; } } } // fi } // foreach } // fi } // foreach } } $allocine = new Allocine('100043982026', '29d185d98c984a359e6e6f26a0474269'); $allocine->getMember("Z20040827093310567684711");
<?php require_once __DIR__ . '/allocine.class.php'; define('ALLOCINE_PARTNER_KEY', '100043982026'); define('ALLOCINE_SECRET_KEY', '29d185d98c984a359e6e6f26a0474269'); $allocine = new Allocine(ALLOCINE_PARTNER_KEY, ALLOCINE_SECRET_KEY); $result = $allocine->search('Oblivion'); echo $result;
<?php require_once __DIR__ . '/allocine.class.php'; define('ALLOCINE_PARTNER_KEY', '100043982026'); define('ALLOCINE_SECRET_KEY', '29d185d98c984a359e6e6f26a0474269'); $allocine = new Allocine(ALLOCINE_PARTNER_KEY, ALLOCINE_SECRET_KEY); $result = $allocine->movie(27405); echo $result;
<?php require 'framework/simple_html_dom.php'; require 'framework/functions.php'; require 'framework/allocine.php'; require 'framework/imdb.php'; if (!isset($_GET['AllocineID']) || empty($_GET['AllocineID']) || !is_numeric($_GET['AllocineID'])) { exit; } $allocine = new Allocine(); $allocine->loadPage($_GET['AllocineID']); $json['allocine'] = json_decode($allocine->getJSON()); if (isset($_GET['html'])) { include 'html.php'; } else { header('Content-Type: application/json'); print $allocine->getJSON(); }
<?php require_once __DIR__ . '/allocine.class.php'; define('ALLOCINE_PARTNER_KEY', '100043982026'); define('ALLOCINE_SECRET_KEY', '29d185d98c984a359e6e6f26a0474269'); $allocine = new Allocine(ALLOCINE_PARTNER_KEY, ALLOCINE_SECRET_KEY); $result = $allocine->get(27405); echo $result;
<?php /* Original code based on showtimelist.php writed by Sébastien Dabet (sdabet) */ require_once __DIR__ . '/allocine.class.php'; define('ALLOCINE_PARTNER_KEY', '100043982026'); define('ALLOCINE_SECRET_KEY', '29d185d98c984a359e6e6f26a0474269'); $allocine = new Allocine(ALLOCINE_PARTNER_KEY, ALLOCINE_SECRET_KEY); $zip = "75001"; // Zip code of location to search $radius = "10"; // Radius of area $response = $allocine->showtimelist($zip, $radius); print $response; $json = json_decode($response); // Parse the returned json $theaters = $json->feed->theaterShowtimes; // Retrieve list of theaters $table = array(); // Array of data to display $max_length = array(0, 0, 0, 0, 0); // Array of max column length (to display equal length columns) $index = 0; // Index of current movie // Iterate over all theaters and fill table with movies information foreach ($theaters as $theater) { $times = $theater->movieShowtimes; foreach ($times as $i => $time) { // Append times in an array $horaires = $time->scr; $today = $horaires[0]; $formatted_times = array();