cvs: pearweb /include layout.php

From: Date: Tue, 16 Sep 2003 19:42:07 +0000
Subject: cvs: pearweb /include layout.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12782@lists.php.net to get a copy of this message
mj Tue Sep 16 15:42:07 2003 EDT Modified files: /pearweb/include layout.php Log: * Using $_SERVER instead of $HTTP_SERVER_VARS Index: pearweb/include/layout.php diff -u pearweb/include/layout.php:1.71 pearweb/include/layout.php:1.72 --- pearweb/include/layout.php:1.71 Tue Sep 16 15:36:15 2003 +++ pearweb/include/layout.php Tue Sep 16 15:42:07 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: layout.php,v 1.71 2003/09/16 19:36:15 mj Exp $ + $Id: layout.php,v 1.72 2003/09/16 19:42:07 mj Exp $ */ if (empty($prevsearch)) $prevsearch = ''; @@ -53,11 +53,10 @@ // function make_image($file, $alt=false, $align=false, $extras=false, $dir=false, $border=0) { - global $HTTP_SERVER_VARS; if (!$dir) { $dir = '/gifs'; } - if ($size = @getimagesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].$dir.'/'.$file)) { + if ($size = @getimagesize($_SERVER['DOCUMENT_ROOT'].$dir.'/'.$file)) { $image = sprintf('<img src="%s/%s" border="%d" %s alt="%s" %s%s />', $dir, $file,

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