cvs: pearweb /public_html accounts.php

From: Date: Mon, 05 Jul 2004 19:57:05 +0000
Subject: cvs: pearweb /public_html accounts.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21538@lists.php.net to get a copy of this message
danielc Mon Jul 5 15:57:05 2004 EDT Modified files: /pearweb/public_html accounts.php Log: * Use HTTP_HOST instead of SERVER_NAME. http://cvs.php.net/diff.php/pearweb/public_html/accounts.php?r1=1.16&r2=1.17&ty=u Index: pearweb/public_html/accounts.php diff -u pearweb/public_html/accounts.php:1.16 pearweb/public_html/accounts.php:1.17 --- pearweb/public_html/accounts.php:1.16 Mon Jul 5 15:52:55 2004 +++ pearweb/public_html/accounts.php Mon Jul 5 15:57:05 2004 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: accounts.php,v 1.16 2004/07/05 19:52:55 danielc Exp $ + $Id: accounts.php,v 1.17 2004/07/05 19:57:05 danielc Exp $ */ response_header("Accounts"); @@ -82,7 +82,7 @@ } print '</td><td rowspan="2" align="right">'; print '<form><input type="button" onclick="'; -$gourl = "http://" . $_SERVER['SERVER_NAME']; +$gourl = "http://" . $_SERVER['HTTP_HOST']; if ($_SERVER['SERVER_PORT'] != 80) { $gourl .= ":".$_SERVER['SERVER_PORT']; }

« previous php.pear.cvs (#21538) next »