cvs: php-hosts-web /include layout.inc

From: Date: Sun, 21 Apr 2002 02:40:30 +0000
Subject: cvs: php-hosts-web /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9712@lists.php.net to get a copy of this message
jimw Sat Apr 20 22:40:30 2002 EDT Modified files: /php-hosts-web/include layout.inc Log: set up paths to deal with nested directories Index: php-hosts-web/include/layout.inc diff -u php-hosts-web/include/layout.inc:1.2 php-hosts-web/include/layout.inc:1.3 --- php-hosts-web/include/layout.inc:1.2 Sat Apr 20 22:34:01 2002 +++ php-hosts-web/include/layout.inc Sat Apr 20 22:40:30 2002 @@ -38,7 +38,7 @@ } $path = $_SERVER['DOCUMENT_ROOT']."/$dir/$file"; if ($size = @getimagesize($path)) { - $image = sprintf('<img src="%s/%s" border="%d" %s alt="%s" %s%s>', + $image = sprintf('<img src="/%s/%s" border="%d" %s alt="%s" %s%s>', $dir, $file, $border, @@ -158,7 +158,7 @@ ?><html> <head> <title><?php echo $title ? $title : 'PHP Hosting Companies' ?></title> - <link rel="stylesheet" href="style.css" /> + <link rel="stylesheet" href="/style.css" /> </head> <body

« previous php.mirrors (#9712) next »