cvs: phpweb /include layout.inc

From: Date: Tue, 20 May 2003 22:08:51 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17866@lists.php.net to get a copy of this message
jacques Tue May 20 18:08:51 2003 EDT Modified files: /phpweb/include layout.inc Log: - Fixed $www_static_root not being echo'ed which caused stylesheet and a couple of graphics to not load. Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.158 phpweb/include/layout.inc:1.159 --- phpweb/include/layout.inc:1.158 Tue May 20 18:03:34 2003 +++ phpweb/include/layout.inc Tue May 20 18:08:51 2003 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.158 2003/05/20 22:03:34 jacques Exp $ */ +/* $Id: layout.inc,v 1.159 2003/05/20 22:08:51 jacques Exp $ */ $www_static_root = ($HTTP_SERVER_VARS['SERVER_NAME'] == 'www.php.net') ? 'http://static.php.net/www.php.net' : ''; @@ -203,9 +203,9 @@ <html> <head> <title>PHP<?php if ($title) echo ": $title";?></title> - <link rel="stylesheet" href="$www_static_root/style.css" /> - <link rel="shortcut icon" href="$www_static_root/favicon.ico" /> - <script language="Javascript" type="text/javascript" src="$www_static_root/userprefs.js"></script> + <link rel="stylesheet" href="<?php echo $www_static_root; ?>/style.css" /> + <link rel="shortcut icon" href="<?php echo $www_static_root; ?>/favicon.ico" /> + <script language="Javascript" type="text/javascript" src="<?php echo $www_static_root; ?>/userprefs.js"></script> <?php echo (isset($SEARCH_BASE) ? '<base href="' . $SEARCH_BASE . '" />' : ''); ?> </head> <body bgcolor="#ffffff" text="#000000" @@ -289,7 +289,7 @@ <tr valign="top"><td class="sidebar"><?php echo $SIDEBAR_DATA?></td></tr> </table> </td> - <td bgcolor="#cccccc" background="$www_static_root/images/checkerboard.gif" width="1"><?php spacer(); ?></td> + <td bgcolor="#cccccc" background="<?php echo $www_static_root; ?>/images/checkerboard.gif" width="1"><?php spacer(); ?></td> <?php endif; ?> <td> <table cellpadding="10" cellspacing="0" width="100%"> @@ -314,7 +314,7 @@ if ($enclosed) { echo "</td></tr></table></td>"; if (!empty($RSIDEBAR_DATA)) { ?> -<td bgcolor="#cccccc" background="$www_static_root/images/checkerboard.gif" width="1"><?php spacer(); ?></td> +<td bgcolor="#cccccc" background="<?php echo $www_static_root; ?>/images/checkerboard.gif" width="1"><?php spacer(); ?></td> <td width="175" bgcolor="#f0f0f0"> <table width="100%" cellpadding="4" cellspacing="0"> <tr valign="top"><td class="sidebar"><?php echo $RSIDEBAR_DATA?></td></tr>

« previous php.mirrors (#17866) next »