cvs: pearweb /public_html account-edit.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 31 May 2008 20:26:52 +0000 |
| Subject: | cvs: pearweb /public_html account-edit.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7586@lists.php.net to get a copy of this message | ||
dufuz Sat May 31 20:26:52 2008 UTC
Modified files:
/pearweb/public_html account-edit.php
Log:
Don't use a hardcoded API key from Google
http://cvs.php.net/viewvc.cgi/pearweb/public_html/account-edit.php?r1=1.63&r2=1.64&diff_format=u
Index: pearweb/public_html/account-edit.php
diff -u pearweb/public_html/account-edit.php:1.63 pearweb/public_html/account-edit.php:1.64
--- pearweb/public_html/account-edit.php:1.63 Sat May 31 20:12:42 2008
+++ pearweb/public_html/account-edit.php Sat May 31 20:26:52 2008
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: account-edit.php,v 1.63 2008/05/31 20:12:42 dufuz Exp $
+ $Id: account-edit.php,v 1.64 2008/05/31 20:26:52 dufuz Exp $
*/
include_once 'HTML/QuickForm.php';
@@ -36,12 +36,7 @@
exit();
}
-ob_start();
-
-// FIXME uses a hardcoded api key, bad bad bad
-$map = '
-<script language="javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjPqDvnoTwt1l2d9kE7aeSRSaX3uuPis-gsi6PocQln0mfq-TehSSt5OZ9q0OyzKSOAfNu8NuLlNgWA"></script>
-';
+$map = '<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key='
. $_SERVER['Google_API_Key'] . '"></script>';
response_header('Edit Profile :: ' . $handle, false, $map);
print '<h1>Edit Profile: ';
@@ -323,5 +318,4 @@
$form->addElement('hidden', 'command', 'change_password');
$form->display();
-ob_end_flush();
-response_footer();
+response_footer();
\ No newline at end of file