Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
// CRUD ligne d'inventaire :
// In get : utf8
// In post : utf8
// out : utf8
Class CodeAsync extends DBAccessor {
function Inventory($config) {
$this->config=$config;
}
function getElement($uid){
// Controle detournement utilisateur
session_start();
$value=array();
$cle = urldecode($uid[0]);
$addr = "http://maps.google.com/maps?file=api&v=2&sensor=true&key=".$cle;
$script = file_get_contents($addr) ;
header("Content-Type: text/plain; charset=UTF-8");
$value = json_encode($script) ;
echo $value;
}
}
?>