mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
changes related to moved images
redo books.php page (phew!)
This commit is contained in:
@@ -33,8 +33,11 @@ function resize_image($img, $width=1, $height=1) {
|
||||
# return an IMG tag for a given file (relative to the images dir)
|
||||
#
|
||||
|
||||
function make_image($file, $alt=false, $align=false, $extras=false, $dir='/gifs', $border=0) {
|
||||
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)) {
|
||||
$image = sprintf('<img src="%s/%s" border="%d" %s ALT="%s" %s%s>',
|
||||
$dir,
|
||||
@@ -64,7 +67,7 @@ function make_image($file, $alt=false, $align=false, $extras=false, $dir='/gifs'
|
||||
# print an IMG tag for a given file
|
||||
#
|
||||
|
||||
function print_image($file, $alt=false, $align=false, $extras=false, $dir='/gifs', $border=0) {
|
||||
function print_image($file, $alt=false, $align=false, $extras=false, $dir=false, $border=0) {
|
||||
print make_image($file, $alt, $align, $extras, $dir);
|
||||
}
|
||||
|
||||
@@ -73,7 +76,10 @@ function print_image($file, $alt=false, $align=false, $extras=false, $dir='/gifs
|
||||
# make_submit()
|
||||
# - make a submit button image
|
||||
#
|
||||
function make_submit($file, $alt=false, $align=false, $extras=false, $dir='/gifs', $border=0) {
|
||||
function make_submit($file, $alt=false, $align=false, $extras=false, $dir=false, $border=0) {
|
||||
if (!$dir) {
|
||||
$dir = '/gifs';
|
||||
}
|
||||
$return = make_image($file, $alt, $align, $extras, $dir, $border);
|
||||
if ($return != "<img>") {
|
||||
$return = '<input type="image"'.substr($return,4);
|
||||
|
||||
1
news.php
1
news.php
@@ -3,7 +3,6 @@ require_once 'prepend.inc';
|
||||
commonHeader("PHP in the News");
|
||||
|
||||
function makeEntry($title,$author=false,$url=false,$date=false) {
|
||||
global $first;
|
||||
echo '<DT>';
|
||||
|
||||
echo hdelim();
|
||||
|
||||
@@ -5,7 +5,7 @@ body, td, th {
|
||||
|
||||
dd,p {
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
em {
|
||||
@@ -49,6 +49,11 @@ h2 {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.condensed {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
font-size: 14px;
|
||||
|
||||
26
usage.php
26
usage.php
@@ -2,13 +2,25 @@
|
||||
require_once 'prepend.inc';
|
||||
commonHeader("PHP Usage Stats");
|
||||
?>
|
||||
Jan 2001: PHP: 5104536 Domains, 832457 IP Addresses<br>
|
||||
Source: <a href="http://www.netcraft.com/Survey/">Netcraft</a><br>
|
||||
<img src="gifs/phpstats-200101.gif" width=780 height=350 alt="Graph"
|
||||
><br clear=left>
|
||||
<h1>
|
||||
Usage Stats for January 2001
|
||||
</h1>
|
||||
|
||||
<p>You can also see how popular PHP is relative to other Apache modules
|
||||
at <a href="http://www.securityspace.com/s_survey/">E-Soft Inc.'s
|
||||
web survey</a>. (Spoiler: PHP is the most popular)
|
||||
<p>
|
||||
<B>PHP:</B> 5,104,536 Domains, 832,457 IP Addresses
|
||||
</p>
|
||||
<p><small>
|
||||
Source: <? print_link("http://www.netcraft.com/Survey/", "Netcraft"); ?>
|
||||
</small></p>
|
||||
|
||||
<p>
|
||||
<? echo print_image("stats/phpstats-200101.gif", "Graph"); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You can also see how popular PHP is relative to other Apache modules
|
||||
at <? print_link("http://www.securityspace.com/s_survey/", "E-Soft Inc.'s Web Survey"); ?>.
|
||||
Spoiler: PHP is the most popular.
|
||||
</p>
|
||||
|
||||
<? commonFooter(); ?>
|
||||
|
||||
Reference in New Issue
Block a user