Subversion Repositories eFlore/Applications.cel

Rev

Rev 798 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
Class CodeAsync extends Cel {

        function getElement($uid){

           // Controle detournement utilisateur
                if(!isset($_SESSION)) {session_start();}
                $value=array();

                $cle = urldecode($uid[0]);
                
                $addr = "http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=".$cle;
                
                $script = file_get_contents($addr) ;
                header("Content-Type: text/plain; charset=UTF-8");
                $value = json_encode($script) ;

                echo $value;
        }
}
?>