Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
416 aurelien 1
<?php
2
// CRUD ligne d'inventaire :
3
// In get : utf8
4
// In post : utf8
5
// out : utf8
6
 
7
Class CodeAsync extends DBAccessor {
8
 
9
	function Inventory($config) {
10
 
11
		$this->config=$config;
12
	}
13
 
14
 
15
	function getElement($uid){
16
 
17
	   // Controle detournement utilisateur
18
	    session_start();
19
		$value=array();
20
 
21
		$cle = urldecode($uid[0]);
22
 
23
		$addr = "http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=".$cle;
24
 
25
		$script = file_get_contents($addr) ;
26
		header("Content-Type: text/plain; charset=UTF-8");
27
		$value = json_encode($script) ;
28
 
29
		echo $value;
30
	}
31
}
32
?>