source: spip-zone/_plugins_/google-maps/googlekey.php @ 117558

Last change on this file since 117558 was 21568, checked in by jerome.breton@…, 12 years ago

[google-maps] Initial import.

File size: 331 bytes
Line 
1<?php
2//Enregistre la nouvelle clé
3if(!empty($_POST['key']))
4{
5        $fp = fopen('../../tmp/googlekey.txt','w');
6        fwrite($fp,$_POST['key']);
7        fclose($fp);
8}
9//Retourne l'ancienne clé
10$filename='../../tmp/googlekey.txt';
11if($handle=@fopen($filename,'r'))
12{       echo @fread($handle, filesize($filename));
13        @fclose($handle);
14}
15?>
Note: See TracBrowser for help on using the repository browser.