cvs: phpweb(NEW_LOOK_2001) / index.php style.css /include layout.inc shared.inc

From: Date: Tue, 06 Feb 2001 20:37:13 +0000
Subject: cvs: phpweb(NEW_LOOK_2001) / index.php style.css /include layout.inc shared.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-3800@lists.php.net to get a copy of this message
cmv Tue Feb 6 12:37:13 2001 EDT Modified files: (Branch: NEW_LOOK_2001) /phpweb index.php style.css /phpweb/include layout.inc shared.inc Log: Better (?) spacing on main page

Index: phpweb/index.php diff -u phpweb/index.php:1.31.2.1 phpweb/index.php:1.31.2.2 --- phpweb/index.php:1.31.2.1 Tue Feb 6 11:03:12 2001 +++ phpweb/index.php Tue Feb 6 12:37:12 2001 @@ -3,84 +3,171 @@ echo "\n<!--$MYSITE-->\n"; ?> -<h2>Patch Level 1 released for PHP 4.0.4</h2> +<h2> +Patch Level 1 Released For PHP 4.0.4 +</h2> +<p> Due to two security issues found in the Apache module version of PHP 4.0, PHP 4.0.4pl1 has been released. This bug-fix release also fixes a few party-crashing bugs that were discovered in PHP 4.0.4. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> -<h2>New usage stats for January available</h2> + +<h2> +<? print_link("/usage.php", make_image("stats-small.gif", "PHP Usage Stats", "right") ); ?> +New Usage Stats For January Available +</h2> <p> -<a href="/usage.php"><img align=right src="gifs/stats-small.gif" border=0 height=64 width=121 alt="PHP Usage Stats"></a> -<a href="http://www.netcraft.com/">Netcraft</a> and <a -href="http://www.securityspace.com/s_survey/">E-Soft</a> have +<? print_link("http://www.netcraft.com/", "Netcraft"); ?> and +<? print_link("http://www.securityspace.com/s_survey/", "E-Soft" ); ?> have published the January results for their Web Server surveys - both -of which continue to show impressive growth for PHP. Check out the <a -href="usage.php">usage page</a>. +of which continue to show impressive growth for PHP. Check out the +<? print_link("/usage.php", "usage page"); ?>. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> + + +<h2> +<? print_link("http://conferences.oreilly.com/oscon2001/", make_image("osscon.gif", "OSSCon", "right") ); ?> +PHP Conference - Call For Participation +</h2> +<p> +The conference will be part of the <? print_link("http://conferences.oreilly.com/oscon2001/", +"O'Reilly Open Source Convention"); ?> alongside the 5th annual Perl Conference at the +<? print_link("http://www.sheraton.com/property.taf?prop=127&lc=en", +"Sheraton San Diego Hotel and Marina"); ?>, San Diego, California, July 23-27, 2001. +All the details on submitting talks are in the full <? print_link("/cfp.php", "CFP"); ?>. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> + + +<h2> +PHP 4.0.4 Released +</h2> +<p> +19-Dec-2000 -- This release includes improvements for a large number of defects +and numerous enhancements in the PHP core, the language implementation and +extensions. <? print_link("/downloads.php", "Download"); ?> and +<? print_link("/ChangeLog-4.php", "ChangeLog"); ?>. <br clear="all"> +</p> -<a href="http://conferences.oreilly.com/oscon2001/"><img src="gifs/osscon.gif" align="right" border=0></a> -<h2>PHP Conference - <a href="cfp.php">Call for Participation</a></h2> -The conference will be part of the <a -href="http://conferences.oreilly.com/oscon2001/">O'Reilly Open Source -Convention</a> alongside the 5th annual Perl Conference at the <a -href="http://www.sheraton.com/property.taf?prop=127&lc=en">Sheraton San -Diego Hotel and Marina</a>, San Diego, California, July 23-27, 2001. All the -details on submitting talks are in the full <a href="cfp.php">CFP</a>. - -<h2>PHP 4.0.4 Released</h2> -Dec 19, 2000. This release includes -improvements for a large number of defects -and numerous enhancements in the PHP core, -the language implementation and -extensions. <a href="downloads.php">Download</a>, -<a href="ChangeLog-4.php">ChangeLog</a>. -<h2>PHP 3.0.18 released</h2> -October 21, 2000. PHP 3.0.18 was released. This is a bug-fix release, including +<? echo hdelim(); ?> + + +<h2> +PHP 3.0.18 Released +</h2> +<p> +21-Oct-2000 -- PHP 3.0.18 was released. This is a bug-fix release, including fixes for file uploads and a backported imagetypes() function from PHP 4.0. The -<a href="http://cvs.php.net/viewcvs.cgi/php3/ChangeLog?rev=1.854">ChangeLog</a> +<? print_link("http://cvs.php.net/viewcvs.cgi/php3/ChangeLog?rev=1.854", "ChangeLog"); ?> contains a full list of changes. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> -<h2>Improve your PHP skills</h2> + +<h2> +Improve Your PHP Skills +</h2> +<p> Looking for clear and useful guides to build dynamic web-sites using -PHP? Our <a href="/books.php">Books Resource Center</a> lists now +PHP? Our <? print_link("/books.php", "Books Resource Center"); ?> lists now more than a dozen books in eight different languages. If you know about more PHP-related books, tell us about them! +<br clear="all"> +</p> -<h2>Manual Search Tip</h2> + +<? echo hdelim(); ?> + + +<h2> +Manual Search Tip +</h2> +<p> You can go directly to PHP manual pages with a URL such as -<a href="http://php.net/strlen">php.net/strlen</a>. +<? print_link("http://www.php.net/strlen", "www.php.net/strlen"); ?>. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> + + +<h2> +Tips and Tricks Section +</h2> +<p> +Check out our <? print_link("/tips.php", "tips"); ?> page for some "neat" things, +PHP-related. It's a little sparse right now, but feel free to make suggestions! +<br clear="all"> +</p> + + +<? echo hdelim(); ?> -<h2>Tips and Tricks Section</h2> -Check out our <A HREF="/tips.php">tips</A> page for some "neat" things, PHP-related. -It's a little sparse right now, but feel free to make suggestions! - -<img src="gifs/ZendOptimizer.gif" align="right"> -<h2>Zend Optimizer Released!</h2> -<a href="http://www.zend.com">Zend Technologies</a> has announced the availability of -the Zend Optimizer for PHP 4.0. The optimizer is available for -<a href="http://www.zend.com/zend/optimizer.php">free download</a>. -<h2>What is PHP?</h2> -<P> +<h2> +<? print_image("ZendOptimizer.gif", "Zend", "right"); ?> +Zend Optimizer Released +</h2> +<p> +<? print_link("http://www.zend.com", "Zend Technologies"); ?> has announced the +availability of the Zend Optimizer for PHP 4.0. The optimizer is available for +<? print_link("http://www.zend.com/zend/optimizer.php", "free download"); ?>. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> + + +<h2> +What Is PHP? +</h2> +<p> PHP is a server-side, cross-platform, HTML embedded scripting language. If you are completely new to PHP and want to get some idea of how it works, -have a look at the <a href="tut.php">Introductory Tutorial</a>. Once you get -beyond that have a look at the example archive sites and some of the other -resources available in the <a href="links.php">Links</a> section. -</P> +have a look at the <? print_link("/tut.php", "Introductory Tutorial"); ?>. +Once you get beyond that, have a look at the example archive sites and some +of the other resources available in the <? print_link("/links.php", "Links"); ?> section. +<br clear="all"> +</p> + + +<? echo hdelim(); ?> -<h2>So, how much does it cost?</h2> -<P> + +<h2> +So, How Much Does It Cost? +</h2> +<p> This may sound a little foreign to all you folks coming from a non-Unix background, but PHP doesn't cost anything. You can use it for commercial and/or non-commercial use all you want. You can give it to your friends, print it out and hang it on your wall or eat it for lunch. Welcome to -the world of <a href="http://www.opensource.org">Open Source</a> software! +the world of <? print_link("http://www.opensource.org", "Open Source"); ?> software! Smile, be happy, the world is good. For the full legalese, see the -official <a href="license.html">license</a>. -</P> +official <? print_link("/license.html", "license"); ?>. +<br clear="all"> +</p> <? commonFooter(); +?> Index: phpweb/style.css diff -u phpweb/style.css:1.1.2.2 phpweb/style.css:1.1.2.3 --- phpweb/style.css:1.1.2.2 Tue Feb 6 11:03:12 2001 +++ phpweb/style.css Tue Feb 6 12:37:12 2001 @@ -1,6 +1,6 @@ body, td, th { font-family: arial,helvetica,sans-serif; - font-size: 12px; + font-size: 13px; } p { @@ -36,7 +36,8 @@ font-size: 18px; font-weight: bold; color: #000066; - margin-bottom: 5px; + margin-top: 8px; + margin-bottom: 8px; } h2 { @@ -44,7 +45,8 @@ font-size: 16px; font-weight: bold; color: #000066; - margin-bottom: 5px; + margin-top: 8px; + margin-bottom: 8px; } h3 { @@ -52,6 +54,8 @@ font-size: 14px; font-weight: bold; color: #000066; + margin-top: 8px; + margin-bottom: 8px; } small { @@ -67,7 +71,7 @@ .tableTitle { font-family: arial,helvetica,sans-serif; - font-size: 12px; + font-size: 13px; font-weight: bold; } @@ -80,12 +84,12 @@ input { font-family: arial,helvetica,sans-serif; - font-size: 11px; + font-size: 13px; } textarea { font-family: "andale mono", "monotype.com", "courier new", monospace; - font-size: 11px; + font-size: 13px; } input.small, select.small { @@ -104,3 +108,4 @@ // manual stuff + Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.1.2.2 phpweb/include/layout.inc:1.1.2.3 --- phpweb/include/layout.inc:1.1.2.2 Tue Feb 6 11:03:13 2001 +++ phpweb/include/layout.inc Tue Feb 6 12:37:12 2001 @@ -1,8 +1,8 @@ <?php -/* $Id: layout.inc,v 1.1.2.2 2001/02/06 19:03:13 cmv Exp $ */ +/* $Id: layout.inc,v 1.1.2.3 2001/02/06 20:37:12 cmv Exp $ */ -# spc() +# spacer() # print a IMG tag for a sized spacer GIF # @@ -16,12 +16,26 @@ +# resize_image() +# tag the output of make_image() and resize it manually +# + +function resize_image($img, $width=1, $height=1) { + $str = preg_replace('/width=\"([0-9]+?)\"/i', '', $img ); + $str = preg_replace('/height=\"([0-9]+?)\"/i', '', $str ); + $str = substr($str,0,-1) . sprintf(' height="%s" width="%s">', $height, $width ); + return $str; +} + + + # make_image() # 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) { - if ($size = @getimagesize($GLOBALS[BASE_DIR].$dir.'/'.$file)) { + global $HTTP_SERVER_VARS; + if ($size = @getimagesize($HTTP_SERVER_VARS['DOCUMENT_ROOT'].$dir.'/'.$file)) { $image = sprintf('<img src="%s/%s" border="%d" %s ALT="%s" %s%s>', $dir, $file, @@ -84,6 +98,19 @@ +# hdelim() +# print a horizontal delimiter (just a wide line); +# + +function hdelim($color="#000000") { + if (!$color) { + return '<HR noshade size="1">'; + } + return sprintf('<HR noshade size="1" color="%s">', $color ); +} + + + # make_link() # return a hyperlink to something, within the site # @@ -203,7 +230,20 @@ <?php if (!$dont_enclose): $enclosed = 1;?> -<table width="700" cellpadding="4" cellspacing="0"><tr><td valign="top"> +<!-- sidebar --> +<table width="20" height="100%" + bgcolor="#ffffff" + align="left" + cellpadding="2" cellspacing="0" +><tr><td valign="top"> +<BR> +</td></tr></table> +<!-- main section --> + +<table width="600" + align="left" + cellpadding="10" cellspacing="0" +><tr><td valign="top"> <?php endif; } @@ -219,6 +259,7 @@ global $SCRIPT_NAME,$PHP_SELF,$MIRRORS,$MYSITE,$COUNTRIES,$enclosed; if ($enclosed):?> </td></tr></table> +<br clear=all> <?php endif; ?> Index: phpweb/include/shared.inc diff -u phpweb/include/shared.inc:1.124.2.4 phpweb/include/shared.inc:1.124.2.5 --- phpweb/include/shared.inc:1.124.2.4 Tue Feb 6 11:03:13 2001 +++ phpweb/include/shared.inc Tue Feb 6 12:37:12 2001 @@ -1,15 +1,8 @@ <?php // -*- C++ -*- -/* $Id: shared.inc,v 1.124.2.4 2001/02/06 19:03:13 cmv Exp $ */ +/* $Id: shared.inc,v 1.124.2.5 2001/02/06 20:37:12 cmv Exp $ */ require_once 'site.inc'; require_once 'layout.inc'; - - -# figure out the directory root - -if (!$BASE_DIR) { - $BASE_DIR = ereg_replace("/[^/]+/[^/]+$", "", $INCLUDE_DIR); -} if($SCRIPT_NAME=="/bugs.php" || $SCRIPT_NAME=="/bugstats.php") {
« previous php.mirrors (#3800) next »