]> granicus.if.org Git - php/commitdiff
make sure the images on the phpinfo() page point to PHP-enabled pages
authorStig Bakken <ssb@php.net>
Sat, 17 Apr 1999 01:52:58 +0000 (01:52 +0000)
committerStig Bakken <ssb@php.net>
Sat, 17 Apr 1999 01:52:58 +0000 (01:52 +0000)
ext/standard/info.c

index 9d5ff9dfe0d45cd92758171ce30a66d5a23dae2f..a89460747ebc802d028ab8d6301b3c59d03b0753 100644 (file)
@@ -107,7 +107,9 @@ void _php3_info(void)
 #endif
 
 
-       PUTS("<img src=\"?=PHPE9568F34-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"56\" align=\"right\">\n");
+       PUTS("<img src=\"");
+       PUTS(GLOBAL(php3_rqst)->uri);
+       PUTS("?=PHPE9568F34-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"56\" align=\"right\">\n");
        php3_printf("<center><h1>PHP Version %s</h1></center>\n", PHP_VERSION);
        PUTS("<p>by <a href=\"mailto:rasmus@lerdorf.on.ca\">Rasmus Lerdorf</a>,\n");
        PUTS("<a href=\"mailto:andi@zend.com\">Andi Gutmans</a>,\n");
@@ -384,7 +386,9 @@ void _php3_info(void)
        PUTS("<hr>\n");
        PUTS("<table width=\"100%%\"><tr>\n");
        php3_printf("<td><h2>Zend</h2>This program makes use of the Zend scripting language engine:<br><pre>%s</pre></td>", get_zend_version());
-       PUTS("<td width=\"100\"><a href=\"http://www.zend.com/\"><img src=\"?=PHPE9568F35-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"89\"></a></td>\n");
+       PUTS("<td width=\"100\"><a href=\"http://www.zend.com/\"><img src=\"");
+       PUTS(GLOBAL(php3_rqst)->uri);
+       PUTS("?=PHPE9568F35-D428-11d2-A769-00AA001ACF42\" border=\"0\" width=\"100\" height=\"89\"></a></td>\n");
        PUTS("</tr></table>\n");
 
        SECTION("PHP License");