Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
416 aurelien 1
<?php
765 aurelien 2
Class CodeAsync extends Cel {
416 aurelien 3
 
4
	function getElement($uid){
5
 
6
	   // Controle detournement utilisateur
7
	    session_start();
8
		$value=array();
9
 
10
		$cle = urldecode($uid[0]);
11
 
12
		$addr = "http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=".$cle;
13
 
14
		$script = file_get_contents($addr) ;
15
		header("Content-Type: text/plain; charset=UTF-8");
16
		$value = json_encode($script) ;
17
 
18
		echo $value;
19
	}
20
}
21
?>