cvs: pearweb /public_html accounts.php
| From: | Daniel Convissor | Date: | Mon, 05 Jul 2004 19:52:56 +0000 |
| Subject: | cvs: pearweb /public_html accounts.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21537@lists.php.net to get a copy of this message | ||
danielc Mon Jul 5 15:52:56 2004 EDT
Modified files:
/pearweb/public_html accounts.php
Log:
* Use $_SERVER rather than $HTTP_SERVER_VARS.
http://cvs.php.net/diff.php/pearweb/public_html/accounts.php?r1=1.15&r2=1.16&ty=u
Index: pearweb/public_html/accounts.php
diff -u pearweb/public_html/accounts.php:1.15 pearweb/public_html/accounts.php:1.16
--- pearweb/public_html/accounts.php:1.15 Mon Jun 21 12:04:19 2004
+++ pearweb/public_html/accounts.php Mon Jul 5 15:52:55 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: accounts.php,v 1.15 2004/06/21 16:04:19 danielc Exp $
+ $Id: accounts.php,v 1.16 2004/07/05 19:52:55 danielc Exp $
*/
response_header("Accounts");
@@ -82,9 +82,9 @@
}
print '</td><td rowspan="2" align="right">';
print '<form><input type="button" onclick="';
-$gourl = "http://" .
$HTTP_SERVER_VARS['SERVER_NAME'];
-if ($HTTP_SERVER_VARS['SERVER_PORT'] != 80) {
- $gourl .= ":".$HTTP_SERVER_VARS['SERVER_PORT'];
+$gourl = "http://" . $_SERVER['SERVER_NAME'];
+if ($_SERVER['SERVER_PORT'] != 80) {
+ $gourl .= ":".$_SERVER['SERVER_PORT'];
}
$gourl .= "/user/";
print "u=prompt('Go to
account:','');if(u)location.href='$gourl'+u;";