[git] web/php.git branch NEW_LOOK_2008 created. 0b9fa96

From: Date: Mon, 23 Jan 2012 01:01:50 +0000
Subject: [git] web/php.git branch NEW_LOOK_2008 created. 0b9fa96
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-12863@lists.php.net to get a copy of this message
The branch, NEW_LOOK_2008 on web/php.git has been created at 0b9fa96ac7e04e2527471a53a3e3d335e772c3cc (commit) -- Log ---------------------------------------- commit 0b9fa96ac7e04e2527471a53a3e3d335e772c3cc Author: Gwynne Raskind <gwynne@php.net> Date: Thu Jul 16 08:10:50 2009 +0000 one more attempt at ridding us of some of those annoying mime types commit 94087a92df7ab9389239e4632d06e276e7039106 Author: Hannes Magnusson <bjori@php.net> Date: Fri Sep 26 11:47:14 2008 +0000 Make sure we are working with an array diff --git a/bin/createNewsEntry b/bin/createNewsEntry index ab00e00..ba0af65 100755 --- a/bin/createNewsEntry +++ b/bin/createNewsEntry @@ -1,4 +1,4 @@ -#!/usr/local/bin/php +#!/usr/share/php <?php PHP_SAPI == 'cli' or die("Please run this script using the cli sapi"); $BASE = "http://www.php.net"; @@ -9,7 +9,7 @@ function ce(DOMDocument $d, $name, $value, array $attrs = array(), DOMNode $to = } else { $n = $d->createElement($name); } - foreach($attrs as $k => $v) { + foreach((array)$attrs as $k => $v) { $n->setAttribute($k, $v); } if ($to) { commit b33283fc7119a8cb1e4faf164ee3bbe077ad9041 Author: Hannes Magnusson <bjori@php.net> Date: Thu Sep 11 13:45:18 2008 +0000 Nuke long outdated include_path requirement (thanks Josip Rodin!) diff --git a/mirroring.php b/mirroring.php index df4d1af..76089c9 100644 --- a/mirroring.php +++ b/mirroring.php @@ -239,7 +239,7 @@ $minute = rand(0, 59); </p> <p> - Change the DocumentRoot and include_path settings as appropriate, + Change the DocumentRoot setting as appropriate, specify the mirror's preferred language, and provide settings according to your stats setup, if your mirror is going to provide it. For the preferred language setting, choose one from those available as commit 1a6a4a12da652b1b717a4d0c2b893ba6e0de0d2b Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 12:50:17 2008 +0000 Use h2 diff --git a/support.php b/support.php index 9de37fc..455529a 100644 --- a/support.php +++ b/support.php @@ -7,7 +7,7 @@ site_header("Getting Help"); column_box(COLUMN_MAIN); ?> -<h1>Documentation</h1> +<h2>Documentation</h2> <p> A good place to start is by skimming through the ever-growing list of @@ -16,7 +16,7 @@ column_box(COLUMN_MAIN); <a href="/docs.php">documentation</a> section. </p> -<h1>Books</h1> +<h2>Books</h2> <p> Books are convenient resources to begin exploring or extend your PHP knowledge. There are literally thousands of books available in @@ -29,7 +29,7 @@ column_box(COLUMN_MAIN); and search there. </p> -<h1>Mailing Lists</h1> +<h2>Mailing Lists</h2> <p> There are a number of mailing lists devoted to talking about PHP and related @@ -38,7 +38,7 @@ column_box(COLUMN_MAIN); subscribe to the lists. </p> -<h1>Newsgroups</h1> +<h2>Newsgroups</h2> <p> The PHP language newsgroup is <tt>comp.lang.php</tt>, available on any @@ -55,7 +55,7 @@ column_box(COLUMN_MAIN); that these newsgroups are only available on this server. </p> -<h1>User Groups</h1> +<h2>User Groups</h2> <p> Christopher R. Moewes-Bystrom is running a PHP user group registry at <a @@ -67,7 +67,7 @@ column_box(COLUMN_MAIN); opportunity to get together. </p> -<h1>Events &amp; Training</h1> +<h2>Events &amp; Training</h2> <p> A list of upcoming events (such as user group meetings and PHP training @@ -77,7 +77,7 @@ column_box(COLUMN_MAIN); href="/submit-event.php">on this page</a>. </p> -<h1>Sample Code</h1> +<h2>Sample Code</h2> <p> Looking for some more sample PHP scripts? Our <a @@ -86,7 +86,7 @@ column_box(COLUMN_MAIN); your searching pleasure! </p> <!-- -<h1>Knowledge Base</h1> +<h2>Knowledge Base</h2> <p> The knowledge base is a growing collection of PHP related information in @@ -95,7 +95,7 @@ column_box(COLUMN_MAIN); at <a href="http://php.faqts.com/">http://php.faqts.com/</a>. </p> --> -<h1>Instant Resource Center</h1> +<h2>Instant Resource Center</h2> <p> Otherwise known as IRC or Internet Relay Chat. Here you can usually find @@ -109,7 +109,7 @@ column_box(COLUMN_MAIN); <a href="http://www.freenode.net/">freenode</a>). </p> -<h1>PHP.net webmasters</h1> +<h2>PHP.net webmasters</h2> <p> If you have a problem or suggestion <em>in connection with the PHP.net commit 841d3bf194f3bc54a7ec5b626dfa26a56397ddec Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 12:49:45 2008 +0000 Fix missing closing element diff --git a/include/shared-manual.inc b/include/shared-manual.inc index b385e09..1d0da98 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -149,6 +149,7 @@ SIDEBAR; if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { echo "</ul></li>"; } + echo "</ul>\n"; column_box(); } commit 05dce71bdc369df1af9b6cd01b02de1c717d1598 Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 12:01:12 2008 +0000 centerfy the top-menu diff --git a/styles/style_uncompressed.css b/styles/style_uncompressed.css index 10e46cd..64477ee 100644 --- a/styles/style_uncompressed.css +++ b/styles/style_uncompressed.css @@ -1080,6 +1080,9 @@ #header { margin-bottom: 0; } +#main-menu { + text-align: center; +} /***** }}} *****/ /***** {{{ Additional styling, mostly for the manual *****/ #main-column .tip { commit a32651d72755b84ba96717e549f5e3c7a2ee986b Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 11:58:59 2008 +0000 Remove the header bottom margin diff --git a/styles/style_uncompressed.css b/styles/style_uncompressed.css index 7d74f27..10e46cd 100644 --- a/styles/style_uncompressed.css +++ b/styles/style_uncompressed.css @@ -1077,6 +1077,9 @@ #root { margin: 0; } +#header { + margin-bottom: 0; +} /***** }}} *****/ /***** {{{ Additional styling, mostly for the manual *****/ #main-column .tip { commit a602b6a71d218f91b581c494c570ebe5501fd410 Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 11:37:13 2008 +0000 Add back our customizations diff --git a/styles/style_uncompressed.css b/styles/style_uncompressed.css index 628fde8..7d74f27 100644 --- a/styles/style_uncompressed.css +++ b/styles/style_uncompressed.css @@ -1051,6 +1051,44 @@ .zoom{ overflow:hidden; } + +/***** {{{ REMOVE ME *****/ +/* + * This is only during development so that users of docs.php.net can get a big + * fat red warning about that thei are browser developmental server. + */ +#main-menu { + margin-bottom: 0; +} + +#warning { + background:#ffffff; + padding:1em; + margin: 0px; + border-bottom:1px solid #D0D0D0; + color:#6F0000; + margin-bottom: 6px; + text-align: center; + font-weight: bold; + font-size:1.17em; +} +/***** }}} *****/ +/***** {{{ Overwrite styles from AOEMedia *****/ +#root { + margin: 0; +} +/***** }}} *****/ +/***** {{{ Additional styling, mostly for the manual *****/ +#main-column .tip { + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; + color: #000066; +} + +/***** }}} *****/ + } commit 4c178cbd14650cc218f3e03048d533e84305731a Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 11:28:07 2008 +0000 WS diff --git a/styles/ie.css b/styles/ie.css index e94e1c5..e8d1824 100644 --- a/styles/ie.css +++ b/styles/ie.css @@ -7,7 +7,7 @@ html {filter: expression(document.execCommand("BackgroundImageCache", false, tru #root { - width: expression(document.body.clientWidth < 971 ? "970px" : document.body.clientWidth > 2509 ? "2508px" : "auto"); + width: expression(document.body.clientWidth < 971 ? "970px" : document.body.clientWidth > 2509 ? "2508px" : "auto"); } .zoom, @@ -20,7 +20,7 @@ html {filter: expression(document.execCommand("BackgroundImageCache", false, tru * html .clear{ height: 1% } .wordwrap { - word-wrap: break-word; + word-wrap: break-word; } #contributed-notes .ncontent { @@ -36,9 +36,14 @@ sup { input, select, textarea { - vertical-align:middle; + vertical-align:middle; } .calendar p { border:1px solid #DADADA; } + +/* + * vim: ts=2 sw=2 et + */ + diff --git a/styles/style_uncompressed.css b/styles/style_uncompressed.css index 8bff9ed..628fde8 100644 --- a/styles/style_uncompressed.css +++ b/styles/style_uncompressed.css @@ -46,35 +46,35 @@ quotes: "" ""; } - - + + /* Main styles *******************************/ html { - height: 100%; - margin-bottom: 1px;/* force vertical scrollbars */ + height: 100%; + margin-bottom: 1px;/* force vertical scrollbars */ } body { - background: #E2E2E2; - color: #000; - font-size: 62.5%; - text-align: left; + background: #E2E2E2; + color: #000; + font-size: 62.5%; + text-align: left; } /* Default fonts *******************************/ - body { font-family: Tahoma, Arial, sans-serif, serif, monospace } + body { font-family: Tahoma, Arial, sans-serif, serif, monospace } input, - select { font-family: Tahoma, Arial, Helvetica, sans-serif; } + select { font-family: Tahoma, Arial, Helvetica, sans-serif; } textarea, pre, tt, kbd, var, - code { font-family:"Courier New", Courier, monospace; } + code { font-family:"Courier New", Courier, monospace; } /* Header elements *******************************/ @@ -95,26 +95,26 @@ /* Text elements *******************************/ - p { margin: 0 0 1em 0; text-align: left; } + p { margin: 0 0 1em 0; text-align: left; } p.last, - p.cite { margin-bottom:0; } - p.first { margin-top:1em; } - p.img { float: left; margin:0 1em 1em 0; padding:0; } - p.top-border { border-top: 1px dotted #000; padding-top:1em; } - - blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } - strong { font-weight: bold; } - em { font-style: italic; } - pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } - small { font-size: .9em; } + p.cite { margin-bottom:0; } + p.first { margin-top:1em; } + p.img { float: left; margin:0 1em 1em 0; padding:0; } + p.top-border { border-top: 1px dotted #000; padding-top:1em; } + + blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } + strong { font-weight: bold; } + em { font-style: italic; } + pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } + small { font-size: .9em; } code { /*style*/ } ins { text-decoration:none; } /*remove underline from text*/ del { text-decoration:line-through; } sub { vertical-align:sub;font-size: .9em; } sup { vertical-align:super;font-size: .9em; } acronym { border-bottom:1px dotted #666; } - abbr { /*style*/ } - dfn { font-style:italic; } + abbr { /*style*/ } + dfn { font-style:italic; } bdo { /*style*/ } /*quotes*/ @@ -126,12 +126,12 @@ q:before { content: "\00ab"; } hr { - color: #fff; - background:transparent; - margin: 0 0 0.5em 0; - padding: 0 0 0.5em 0; - border:0; - border-bottom: 1px #000 dotted; + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 dotted; } /*links*/ @@ -139,28 +139,28 @@ a:visited, a:focus, a:hover, - a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } + a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } - a:hover { } + a:hover { } a:active, - a:focus { outline: 0; } /*remove border in ff*/ + a:focus { outline: 0; } /*remove border in ff*/ /* - a:visited { color:#849BCA } + a:visited { color:#849BCA } */ /* Images *******************************/ - img { vertical-align:middle; outline:0 } + img { vertical-align:middle; outline:0 } /* Form styles *******************************/ input, select, textarea { - font-size:1.0em;/*by default font-size is bigger*/ - vertical-align:baseline; + font-size:1.0em;/*by default font-size is bigger*/ + vertical-align:baseline; } input.text, @@ -174,9 +174,9 @@ /* Main styles *******************************/ #root { - margin: 10px 10px 0; - padding-bottom:10px; - min-width: 970px; + margin: 10px 10px 0; + padding-bottom:10px; + min-width: 970px; } /* Corners @@ -185,69 +185,69 @@ .corners-bottom, .corners-top span, .corners-bottom span { - font-size: 1px; - line-height: 1px; - display: block; - height: 11px; - background-repeat: no-repeat; - background-image: none; + font-size: 1px; + line-height: 1px; + display: block; + height: 11px; + background-repeat: no-repeat; + background-image: none; } .corners-top { - margin: 0 -11px; + margin: 0 -11px; } .corners-bottom { - margin: 0 -11px; - clear: both; + margin: 0 -11px; + clear: both; } /* Header *******************************/ #header { - background: url(/images/header-corners.jpg) repeat-x 0 -232px; - height: 116px; + background: url(/images/header-corners.jpg) repeat-x 0 -232px; + height: 116px; margin-bottom: 6px; - clear:both; + clear:both; } #header .side-left, #header .side-right { - display: block; - width: 13px; - height: 116px; - background: url(/images/header-corners.jpg) no-repeat; + display: block; + width: 13px; + height: 116px; + background: url(/images/header-corners.jpg) no-repeat; } #header .side-left { - background-position: 0 0; - float: left; + background-position: 0 0; + float: left; } #header .side-right { - background-position: 100% -116px; - float: right; + background-position: 100% -116px; + float: right; } #header .content { - margin: 0 13px; - padding:20px 11px; + margin: 0 13px; + padding:20px 11px; } #header h1 a { - background:url(/images/header-logo.jpg) left top no-repeat; - float:left; - width:434px; - height:76px; + background:url(/images/header-logo.jpg) left top no-repeat; + float:left; + width:434px; + height:76px; text-indent: -9999px; } /* search box */ #search-box { - text-align:right; - margin-left:440px; - padding:26px 0; - font-size:1.1em; - color:#B5B5E9; + text-align:right; + margin-left:440px; + padding:26px 0; + font-size:1.1em; + color:#B5B5E9; } #search-box span { @@ -255,7 +255,7 @@ } #search-box label { - padding-left:8px; + padding-left:8px; } #search-box input.text, @@ -263,13 +263,13 @@ } #search-box input.text { - width:20%; + width:20%; line-height:1; padding:0; } #search-box select { - width:20%; + width:20%; } #search-box input.button { @@ -287,21 +287,21 @@ #main-menu, #news-line, #main-column .adv-block { - font-size: 1.1em; - line-height:1.2; - margin-bottom: 6px; - padding: 0 11px; - background: none left bottom repeat-x #F6F6F6; + font-size: 1.1em; + line-height:1.2; + margin-bottom: 6px; + padding: 0 11px; + background: none left bottom repeat-x #F6F6F6; } #main-menu, #main-column .adv-block { background-image: url(/images/menu-corners-back.gif); - clear:both; + clear:both; } #news-line { - background-image: url(/images/news-line-back.gif); + background-image: url(/images/news-line-back.gif); } /* main corners */ @@ -309,34 +309,34 @@ #main-menu .corners-bottom, #main-column .adv-block .corners-top, #main-column .adv-block .corners-bottom{ - background-image: url(/images/corners-left.gif); + background-image: url(/images/corners-left.gif); } #main-menu .corners-top, #main-column .adv-block .corners-top { - background-position:0 -22px; + background-position:0 -22px; } #main-menu .corners-bottom, #main-column .adv-block .corners-bottom { - background-position:0 -33px; + background-position:0 -33px; } #main-menu .corners-top span, #main-menu .corners-bottom span, #main-column .adv-block .corners-top span, #main-column .adv-block .corners-bottom span { - background-image: url(/images/corners-right.gif); + background-image: url(/images/corners-right.gif); } #main-menu .corners-top span, #main-column .adv-block .corners-top span { - background-position:100% -22px; + background-position:100% -22px; } #main-menu .corners-bottom span, #main-column .adv-block .corners-bottom span { - background-position:100% -33px; + background-position:100% -33px; } /* end main corners */ @@ -346,7 +346,7 @@ #news-line ul ul, #main-menu ul { - margin-left: 12px; + margin-left: 12px; } #news-line ul ul{ @@ -356,29 +356,29 @@ #news-line li li, #main-menu li { display: inline; - padding:0 1%; - border-right:1px solid #CDCDCD; + padding:0 1%; + border-right:1px solid #CDCDCD; } #news-line li .first, #main-menu .first { - padding-left:0; + padding-left:0; } #news-line li .last, #main-menu .last { - border:0; + border:0; } #news-line ul span { - float: left; - margin-left: 12px; - width: 140px; + float: left; + margin-left: 12px; + width: 140px; } #news-line .corners-top, #news-line .corners-bottom { - background-image: url(/images/corners-left.gif); + background-image: url(/images/corners-left.gif); } #news-line .corners-top { @@ -391,7 +391,7 @@ #news-line .corners-top span, #news-line .corners-bottom span { - background-image: url(/images/corners-right.gif); + background-image: url(/images/corners-right.gif); } #news-line .corners-top span { @@ -404,7 +404,7 @@ /* main column top and bottom blocks */ #main-column .adv-block { - font-size:0.92em; + font-size:0.92em; line-height:1.4em; } @@ -412,29 +412,29 @@ } #main-column .adv-block .prev { - background:url(/images/block_sprites.gif) no-repeat 0 -27px; - float:left; - padding:5px 0 6px 40px; + background:url(/images/block_sprites.gif) no-repeat 0 -27px; + float:left; + padding:5px 0 6px 40px; } #main-column .adv-block .next { - background:url(/images/block_sprites.gif) no-repeat 100% -51px; - float:right; - padding:5px 40px 6px 0; + background:url(/images/block_sprites.gif) no-repeat 100% -51px; + float:right; + padding:5px 40px 6px 0; } #main-column .adv-block p { - text-align:center; - margin:0 160px; + text-align:center; + margin:0 160px; } #main-column .adv-block select { - width:25%; + width:25%; } #main-column .adv-block input { background:url(/images/block_sprites.gif) 0 -77px no-repeat; - width:57px; + width:57px; height:26px; border:0; color:#6181B7; @@ -446,49 +446,49 @@ *******************************/ #content { font-size: 1.2em; - line-height:1.4; + line-height:1.4; } #content-columns { - overflow: hidden; + overflow: hidden; } /* every left column */ #left-column { - float: left; - overflow: hidden; - width: 22%; + float: left; + overflow: hidden; + width: 22%; } /* mid column on first page */ #mid-column { - float: left; - overflow: hidden; - width: 57%; + float: left; + overflow: hidden; + width: 57%; } /* main column on other pages */ #main-column { - float: left; - overflow: hidden; - width: 78%; + float: left; + overflow: hidden; + width: 78%; } /* simple page area */ #page-area { - overflow: hidden; - width: 100%; + overflow: hidden; + width: 100%; } /* right column on first page */ #right-column { - float: left; - overflow: hidden; - width: 21%; + float: left; + overflow: hidden; + width: 21%; } #mid-column .content{ - margin: 0 6px; + margin: 0 6px; } #main-column .content { @@ -497,65 +497,65 @@ #content-columns .block, #page-area .content { - background: url(/images/main-corners-back.gif) 0 100% repeat-x #F0F0F0; - margin-bottom: 6px; - padding: 0 11px; + background: url(/images/main-corners-back.gif) 0 100% repeat-x #F0F0F0; + margin-bottom: 6px; + padding: 0 11px; } #content-columns .block .corners-top, #content-columns .block .corners-bottom, #page-area .content .corners-top, #page-area .content .corners-bottom { - background-image: url(/images/corners-left.gif); + background-image: url(/images/corners-left.gif); } #content-columns .block .corners-top, #page-area .content .corners-top { - background-position:0 0; + background-position:0 0; } #content-columns .block .corners-bottom, #page-area .content .corners-bottom { - background-position:0 -11px; + background-position:0 -11px; } #content-columns .block .corners-top span, #content-columns .block .corners-bottom span, #page-area .content .corners-top span, #page-area .content .corners-bottom span { - background-image: url(/images/corners-right.gif); + background-image: url(/images/corners-right.gif); } #content-columns .block .corners-top span, #page-area .content .corners-top span { - background-position:100% 0; + background-position:100% 0; } #content-columns .block .corners-bottom span, #page-area .content .corners-bottom span { - background-position:100% -11px; + background-position:100% -11px; } /* set min-height for info blocks */ #content-columns .block .info { - min-height: 127px; - height: auto!important; - height: 127px; + min-height: 127px; + height: auto!important; + height: 127px; } /* news item*/ #content-columns .news-date { - border-bottom:1px dotted #000000; - color:#A0A0A0; - padding-bottom:1em; - margin:0 0 1em 0; - text-align:right; + border-bottom:1px dotted #000000; + color:#A0A0A0; + padding-bottom:1em; + margin:0 0 1em 0; + text-align:right; } #content-columns .news-update { - border-top:1px dotted #000000; - margin: 1.6em 0 1em 0; - padding-top:1.6em; + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; } @@ -564,115 +564,115 @@ /* download-button link */ .download-button { - overflow:hidden; - margin:0 0 2em 14%; + overflow:hidden; + margin:0 0 2em 14%; } .download-button a { - background: url(/images/download-button.gif) no-repeat 100% 0; - height: 43px; - display:block; - width:76%; - text-align:center; - padding-right: 5%; /* sliding doors padding */ - text-decoration: none; + background: url(/images/download-button.gif) no-repeat 100% 0; + height: 43px; + display:block; + width:76%; + text-align:center; + padding-right: 5%; /* sliding doors padding */ + text-decoration: none; } .download-button a span { background: url(/images/download-button.gif) no-repeat 0 100%!important; display: block; - font-weight:bold; + font-weight:bold; line-height: 15px; padding: 14px 0 14px 5%; } /* styles for every info-block */ #root .content .info { - padding:.4em 1em 1.6em 1em; - position:relative; + padding:.4em 1em 1.6em 1em; + position:relative; } /* set default styles for elements in info blocks */ .content .info ul, .content .info ol { - margin: 0 0 1em 2em; + margin: 0 0 1em 2em; } .content .info ul { - list-style-type:square; + list-style-type:square; } .content .info ol { - list-style-type:decimal; + list-style-type:decimal; } .content .info ul li, .content .info ol li { - line-height:2; + line-height:2; } .content .info .simple { - list-style:none; - list-style-image:none; - margin: 0 0 1em 1em; + list-style:none; + list-style-image:none; + margin: 0 0 1em 1em; } .content .info .simple li { - line-height:1.2; + line-height:1.2; } .content .info .simplelist li { - line-height:1.2; + line-height:1.2; } .content .info h3 { - font-size:1.17em; - font-weight:bold; - line-height:1.3; + font-size:1.17em; + font-weight:bold; + line-height:1.3; } .content .info h4 { - font-size:1em; - font-weight:bold; + font-size:1em; + font-weight:bold; } .content .info h3 a { - color:#000; + color:#000; } /* right column specific styles */ .events { - border-top:1px dotted #000000; - margin: 1.6em 0 1em 0; - padding-top:1.6em; + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; } .info .events ul.simple { - margin-left:0; + margin-left:0; } .info .events h3 { - margin-bottom:1em; + margin-bottom:1em; } .upcoming-events { - padding-bottom:1.4em; + padding-bottom:1.4em; } .calendar { - background: #DADADA; - margin-bottom: 6px; - padding: 0 11px; + background: #DADADA; + margin-bottom: 6px; + padding: 0 11px; } .calendar h4 { - line-height:1; + line-height:1; } .calendar p { - margin:1em 0 0 0; - text-align:center; + margin:1em 0 0 0; + text-align:center; } .calendar .year { @@ -680,14 +680,14 @@ } .calendar .month { - margin-right:2%; - width:58%; + margin-right:2%; + width:58%; } #right-column .calendar .corners-top, #right-column .calendar .corners-bottom { - background-repeat:no-repeat; - background-image: url(/images/corners-left.gif); + background-repeat:no-repeat; + background-image: url(/images/corners-left.gif); } #right-column .calendar .corners-top { @@ -700,8 +700,8 @@ #right-column .calendar .corners-top span, #right-column .calendar .corners-bottom span { - background-repeat:no-repeat; - background-image: url(/images/corners-right.gif); + background-repeat:no-repeat; + background-image: url(/images/corners-right.gif); } #right-column .calendar .corners-top span { @@ -716,8 +716,8 @@ *******************************/ #main-column .func-descr, #main-column .func-date { - line-height:1; - margin:0; + line-height:1; + margin:0; } #main-column .func-ver { @@ -725,19 +725,19 @@ } #main-column .func-date span { - color:#888; + color:#888; } #main-column .func-descr { - font-size:1.17em; - font-style:normal; + font-size:1.17em; + font-style:normal; } #main-column .func-date { - text-align:right; + text-align:right; } #main-column h4 { - padding:1.2em 0; + padding:1.2em 0; } #main-column .info-block h4 { @@ -748,14 +748,14 @@ #main-column .warning, #main-column .notes, #main-column dd { - background:#ffffff; - padding:1em; - margin-bottom:1em; - border-bottom:1px solid #D0D0D0; + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; } #main-column dt { - line-height:1.6; + line-height:1.6; } #main-column .warning { @@ -781,9 +781,9 @@ } #functions-list li li { - padding-bottom:6px; - list-style:none; - background:none; + padding-bottom:6px; + list-style:none; + background:none; } #functions-list li li a { @@ -810,7 +810,7 @@ *******************************/ .add-note { float:right; - padding:12px 0; + padding:12px 0; line-height:1; font-weight:bold; background:url(/images/block_sprites.gif) 100% 6px no-repeat; @@ -858,28 +858,28 @@ #contributed-notes .note .corners-top, #contributed-notes .note .corners-bottom { - background-image: url(/images/corners-left.gif); + background-image: url(/images/corners-left.gif); } #contributed-notes .note .corners-top { - background-position:0 -66px; + background-position:0 -66px; } #contributed-notes .note .corners-bottom { - background-position:0 -77px; + background-position:0 -77px; } #contributed-notes .note .corners-top span, #contributed-notes .note .corners-bottom span { - background-image: url(/images/corners-right.gif); + background-image: url(/images/corners-right.gif); } #contributed-notes .note .corners-top span { - background-position:100% -66px; + background-position:100% -66px; } #contributed-notes .note .corners-bottom span { - background-position:100% -77px; + background-position:100% -77px; } /* Forms @@ -911,76 +911,76 @@ /* Footer *******************************/ #footer { - font-size: 1.1em; - padding: 0 11px; - background: url(/images/footer-back.gif) 0 100% repeat-x #CECECE; + font-size: 1.1em; + padding: 0 11px; + background: url(/images/footer-back.gif) 0 100% repeat-x #CECECE; } #footer .corners-top, #footer .corners-bottom { - background-image: url(/images/corners-left.gif); + background-image: url(/images/corners-left.gif); } #footer .corners-top { - background-position:0 -88px; + background-position:0 -88px; } #footer .corners-bottom { - background-position:0 -99px; + background-position:0 -99px; } #footer .corners-top span, #footer .corners-bottom span { - background-image: url(/images/corners-right.gif); + background-image: url(/images/corners-right.gif); } #footer .corners-top span { - background-position:100% -88px; + background-position:100% -88px; } #footer .corners-bottom span { - background-position:100% -99px; + background-position:100% -99px; } #footer .info { - line-height:1.4; - padding:18px 12px; + line-height:1.4; + padding:18px 12px; } #copyright { - float:left; + float:left; } #footer-menu { - text-align:right; + text-align:right; } #footer-menu ul { - display:inline; - color: #6280B2; + display:inline; + color: #6280B2; } #footer-menu ul li { - display:inline; + display:inline; border-right:1px solid #6280B2; - padding: 0 1%; + padding: 0 1%; } #footer-menu ul .last { - border:0; - padding-right:0; + border:0; + padding-right:0; } #footer-menu ul .first { - padding-left:0; + padding-left:0; } #footer-menu small { - color:#7C7C7C; + color:#7C7C7C; } #footer-menu small a { - color:#000; + color:#000; } @@ -993,63 +993,63 @@ /* Text size *******************************/ - .em18 { font-size: 1.8em; } - .em16 { font-size: 1.6em; } - .em12 { font-size: 1.2em; } - .em11 { font-size: 1.1em; } - .em10 { font-size: 1.0em; } - .em9 { font-size: 0.9em; } + .em18 { font-size: 1.8em; } + .em16 { font-size: 1.6em; } + .em12 { font-size: 1.2em; } + .em11 { font-size: 1.1em; } + .em10 { font-size: 1.0em; } + .em9 { font-size: 0.9em; } /* Text decorations *******************************/ - .bold { font-weight: bold; } - .normal { font-weight: normal; } - .italic { font-style: italic } - .underline { text-decoration: underline; } + .bold { font-weight: bold; } + .normal { font-weight: normal; } + .italic { font-style: italic } + .underline { text-decoration: underline; } /* Float *******************************/ - .f-right { float: right; } - .f-left { float: left; } - .f-none { float: none; } + .f-right { float: right; } + .f-left { float: left; } + .f-none { float: none; } /* Text align *******************************/ - .t-right { text-align: right; } - .t-left { text-align: left; } - .t-center { text-align: center; } - .t-justify { text-align: justify; } + .t-right { text-align: right; } + .t-left { text-align: left; } + .t-center { text-align: center; } + .t-justify { text-align: justify; } /* Width *******************************/ - .w_25 { width:2.5em; } - .w_30 { width:3em; } - .w_50 { width:5em; } - .w_70 { width:7em; } - .w_100 { width:10em; } - .w_150 { width:15em; } - .w_200 { width:20em; } - .w_250 { width:25em; } - .w_300 { width:30em; } + .w_25 { width:2.5em; } + .w_30 { width:3em; } + .w_50 { width:5em; } + .w_70 { width:7em; } + .w_100 { width:10em; } + .w_150 { width:15em; } + .w_200 { width:20em; } + .w_250 { width:25em; } + .w_300 { width:30em; } /* Text transform *******************************/ - .lower { text-transform: lowercase; } - .upper { text-transform: uppercase; } - .capitalize { text-transform: capitalize; } + .lower { text-transform: lowercase; } + .upper { text-transform: uppercase; } + .capitalize { text-transform: capitalize; } /* Other *******************************/ .clear:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden } .zoom{ - overflow:hidden; + overflow:hidden; } } @@ -1089,40 +1089,40 @@ /* Links decoration *******************************/ a { - color:black; - text-decoration:none; + color:black; + text-decoration:none; } a img { - border-width:0; + border-width:0; } /* Headings *******************************/ h1, h2, h3,h4 { - margin:1em 0 .5em; - font-family:Georgia,Serif; - font-weight:normal; - clear:both; + margin:1em 0 .5em; + font-family:Georgia,Serif; + font-weight:normal; + clear:both; } h1 { - margin-top:.5em; - font-size:180%; - } + margin-top:.5em; + font-size:180%; + } h2 { - font-size:240%; - margin:.3em 0 0 0; - padding-bottom:0; - } + font-size:240%; + margin:.3em 0 0 0; + padding-bottom:0; + } h3 { - font-size:150%; - margin-bottom:0; - } + font-size:150%; + margin-bottom:0; + } h4 { - font-size:120%; - margin-bottom:0; - } - p{ + font-size:120%; + margin-bottom:0; + } + p { margin:0 0 .6em 0; } blockquote{ @@ -1145,3 +1145,8 @@ content: " (http://php.net/" attr(href) ") "; } } + +/* + * vim: ts=2 sw=2 et + */ + commit 9a2e9a82218e836f9e2f36da97de8476d7837d33 Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 31 11:12:30 2008 +0000 - Combine all the CSS files - Add missing images diff --git a/images/back.gif b/images/back.gif new file mode 100644 index 0000000..3ce7e29 Binary files /dev/null and b/images/back.gif differ diff --git a/images/block_sprites.gif b/images/block_sprites.gif index d3bd450..728edd0 100644 Binary files a/images/block_sprites.gif and b/images/block_sprites.gif differ diff --git a/images/note-corners-back.gif b/images/note-corners-back.gif new file mode 100644 index 0000000..7fbec27 Binary files /dev/null and b/images/note-corners-back.gif differ diff --git a/images/usernote.gif b/images/usernote.gif new file mode 100644 index 0000000..8a36b9a Binary files /dev/null and b/images/usernote.gif differ diff --git a/include/layout.inc b/include/layout.inc index 1361521..fcc41c2 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -159,9 +159,7 @@ function site_header($title = '', $config = array()) <head{$profile}> <title>PHP{$title}</title> <meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" /> - <link type="text/css" media="screen" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/screen.css" /> - <link type="text/css" media="print" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/print.css" /> - <link type="text/css" media="handfield" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/handfield.css" /> + <link type="text/css" media="all" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/style_uncompressed.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="{$_SERVER['STATIC_ROOT']}/styles/ie.css" /> <![endif]--> diff --git a/styles/base.css b/styles/base.css deleted file mode 100644 index 55164fb..0000000 --- a/styles/base.css +++ /dev/null @@ -1,126 +0,0 @@ -/* Main styles -*******************************/ -html { - height: 100%; - margin-bottom: 1px;/* force vertical scrollbars */ -} - -body { - background: #E2E2E2; - color: #000; - font-size: 62.5%; - text-align: left; - margin: 0; - padding: 0; -} - -/* Default fonts -*******************************/ -body { font-family: Tahoma, Arial, sans-serif, serif, monospace } - -input, -select { font-family: Tahoma, Arial, Helvetica, sans-serif; } - -textarea, -pre, -tt, -kbd, -var, -code { font-family:"Courier New", Courier, monospace; } - - -/* Header elements -*******************************/ -h1, -h2, -h3, -h4, -h5, -h6 { font-weight:normal; } - -h1 { font-size: 1.7em; line-height: 2.4em; } -h2 { font-size: 1.6em; line-height: 2.2em; } -h3 { font-size: 1.4em; line-height: 2.0em; } -h4 { font-size: 1.3em; line-height: 1.8em; } -h5 { font-size: 1.2em; line-height: 1.6em; } -h6 { font-size: 1.1em; line-height: 1.2em; } - - -/* Text elements -*******************************/ -p { margin: 0 0 1em 0; text-align: left; } -p.last, -p.cite { margin-bottom:0; } -p.first { margin-top:1em; } -p.img { float: left; margin:0 1em 1em 0; padding:0; } -p.top-border { border-top: 1px dotted #000; padding-top:1em; } - -blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } -strong { font-weight: bold; } -em { font-style: italic; } -pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } -small { font-size: .9em; } -code { /*style*/ } -ins { text-decoration:none; } /*remove underline from text*/ -del { text-decoration:line-through; } -sub { vertical-align:sub;font-size: .9em; } -sup { vertical-align:super;font-size: .9em; } -acronym { border-bottom:1px dotted #666; } -abbr { /*style*/ } -dfn { font-style:italic; } -bdo { /*style*/ } - -/*quotes*/ -q { font-style:italic; } -cite { font-style:italic; quotes: "\00ab" "\00bb"; } -cite:after, -q:after { content: "\00bb"; } -cite:before, -q:before { content: "\00ab"; } - -hr { - color: #fff; - background:transparent; - margin: 0 0 0.5em 0; - padding: 0 0 0.5em 0; - border:0; - border-bottom: 1px #000 dotted; -} - -/*links*/ -a:link, -a:visited, -a:focus, -a:hover, -a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } - -a:hover { } - -a:active, -a:focus { outline: 0; } /*remove border in ff*/ -/* -a:visited { color:#849BCA } -*/ - - -/* Images -*******************************/ -img { vertical-align:middle; outline:0 } - -/* Form styles -*******************************/ -input, -select, -textarea { - font-size:1.0em;/*by default font-size is bigger*/ - vertical-align:baseline; -} - -input.text, -input.file { cursor:text; } - -input.button { cursor:pointer; } - -input.radio, -input.checkbox { border: 0;padding: 0; } - diff --git a/styles/content.css b/styles/content.css deleted file mode 100644 index 9252988..0000000 --- a/styles/content.css +++ /dev/null @@ -1,895 +0,0 @@ -/* Main styles - *******************************/ -#root { - padding-bottom:10px; - min-width: 970px; -} - - -/* Corners - *******************************/ -.corners-top, -.corners-bottom, -.corners-top span, -.corners-bottom span { - font-size: 1px; - line-height: 1px; - display: block; - height: 11px; - background-repeat: no-repeat; - background-image: none; -} - -.corners-top { - margin: 0 -11px; -} - -.corners-bottom { - margin: 0 -11px; - clear: both; -} - -/* Header - *******************************/ -#header { - background: url(../images/header-corners.jpg) repeat-x 0 -232px; - height: 116px; - clear:both; -} - -#header .side-left, -#header .side-right { - display: block; - width: 13px; - height: 116px; - background: url(../images/header-corners.jpg) no-repeat; -} - -#header .side-left { - background-position: 0 0; - float: left; -} -#header .side-right { - background-position: 100% -116px; - float: right; -} - -#header .content { - margin: 0 13px; - padding:20px 11px; -} - -#header h1 a { - background:url(../images/header-logo.jpg) left top no-repeat; - float:left; - width:434px; - height:76px; - text-indent: -9999px; -} - -/* search box */ -#search-box { - text-align:right; - margin-left:440px; - padding:26px 0; - font-size:1.1em; - color:#B5B5E9; -} - -#search-box span { - padding-left:8px; -} - -#search-box label { - padding-left:8px; -} - -#search-box input.text, -#search-box select { -} - -#search-box input.text { - width:20%; - line-height:1; - padding:0; -} - -#search-box select { - width:20%; -} - -#search-box input.button { - background:url(../images/block_sprites.gif) 0 -104px no-repeat; - width:69px; - border:0; - height:24px; - line-height:1.2; - color:#56518B; -} - - -/* Main menu & Newsline styles - *******************************/ -#main-menu, -#news-line, -#main-column .adv-block { - font-size: 1.1em; - line-height:1.2; - margin-bottom: 6px; - padding: 0 11px; - background: none left bottom repeat-x #F6F6F6; -} - -#main-menu, -#main-column .adv-block { - background-image: url(../images/menu-corners-back.gif); - clear:both; -} - -#news-line { - background-image: url(../images/news-line-back.gif); -} - -/* main corners */ -#main-menu .corners-top, -#main-menu .corners-bottom, -#main-column .adv-block .corners-top, -#main-column .adv-block .corners-bottom{ - background-image: url(../images/corners-left.gif); -} - -#main-menu .corners-top, -#main-column .adv-block .corners-top { - background-position:0 -22px; -} - -#main-menu .corners-bottom, -#main-column .adv-block .corners-bottom { - background-position:0 -33px; -} - -#main-menu .corners-top span, -#main-menu .corners-bottom span, -#main-column .adv-block .corners-top span, -#main-column .adv-block .corners-bottom span { - background-image: url(../images/corners-right.gif); -} - -#main-menu .corners-top span, -#main-column .adv-block .corners-top span { - background-position:100% -22px; -} - -#main-menu .corners-bottom span, -#main-column .adv-block .corners-bottom span { - background-position:100% -33px; -} -/* end main corners */ - -#main-menu ul { - padding:8px 0; - text-align: center; -} - -#news-line ul ul, -#main-menu ul { - margin-left: 12px; -} - -#news-line ul ul{ - display:inline; -} - -#news-line li li, -#main-menu li { - display: inline; - padding:0 1%; - border-right:1px solid #CDCDCD; -} - -#news-line li .first, -#main-menu .first { - padding-left:0; -} - -#news-line li .last, -#main-menu .last { - border:0; -} - -#news-line ul span { - float: left; - margin-left: 12px; - width: 140px; -} - -#news-line .corners-top, -#news-line .corners-bottom { - background-image: url(../images/corners-left.gif); -} - -#news-line .corners-top { - background-position:0 -44px; -} - -#news-line .corners-bottom { - background-position:0 -55px; -} - -#news-line .corners-top span, -#news-line .corners-bottom span { - background-image: url(../images/corners-right.gif); -} - -#news-line .corners-top span { - background-position:100% -44px; -} - -#news-line .corners-bottom span { - background-position:100% -55px; -} - -/* main column top and bottom blocks */ -#main-column .adv-block { - font-size:0.92em; - line-height:1.4em; -} - -#main-column .adv-block a { -} - -#main-column .adv-block .prev { - background:url(../images/block_sprites.gif) no-repeat 0 -27px; - float:left; - padding:5px 0 5px 40px; -} - -#main-column .adv-block .next { - background:url(../images/block_sprites.gif) no-repeat 100% -51px; - float:right; - padding:5px 40px 5px 0; -} - -#main-column .adv-block p { - text-align:center; - margin:0 160px; -} - -#main-column .adv-block select { - width:25%; -} - -#main-column .adv-block input { - background:url(../images/block_sprites.gif) 0 -77px no-repeat; - width:57px; - height:26px; - border:0; - color:#6181B7; - text-indent: -9999px; - cursor:pointer; -} - -/* Content - *******************************/ -#content { - font-size: 1.2em; - line-height:1.4; -} - -#content-columns { - overflow: hidden; -} - -/* every left column */ -#left-column { - float: left; - overflow: hidden; - width: 22%; -} - -/* mid column on first page */ -#mid-column { - float: left; - overflow: hidden; - width: 57%; -} - -/* main column on other pages */ -#main-column { - float: left; - overflow: hidden; - width: 78%; -} - -/* simple page area */ -#page-area { - overflow: hidden; - width: 100%; -} - -/* right column on first page */ -#right-column { - float: left; - overflow: hidden; - width: 21%; -} - -#mid-column .content{ - margin: 0 6px; -} - -#main-column .content { - margin-left:6px; -} - -#content-columns .block, -#page-area .content { - background: url(../images/main-corners-back.gif) left bottom repeat-x #F0F0F0; - margin-bottom: 6px; - padding: 0 11px; -} - -#content-columns .block .corners-top, -#content-columns .block .corners-bottom, -#page-area .content .corners-top, -#page-area .content .corners-bottom { - background-image: url(../images/corners-left.gif); -} - -#content-columns .block .corners-top, -#page-area .content .corners-top { - background-position:0 0; -} - -#content-columns .block .corners-bottom, -#page-area .content .corners-bottom { - background-position:0 -11px; -} - -#content-columns .block .corners-top span, -#content-columns .block .corners-bottom span, -#page-area .content .corners-top span, -#page-area .content .corners-bottom span { - background-image: url(../images/corners-right.gif); -} - -#content-columns .block .corners-top span, -#page-area .content .corners-top span { - background-position:100% 0; -} - -#content-columns .block .corners-bottom span, -#page-area .content .corners-bottom span { - background-position:100% -11px; -} - -/* set min-height for info blocks */ -#content-columns .block .info { - min-height: 127px; - height: auto!important; - height: 127px; -} - -/* news item*/ -#content-columns .news-date { - border-bottom:1px dotted #000000; - color:#A0A0A0; - padding-bottom:1em; - margin:0 0 1em 0; - text-align:right; -} - -#content-columns .news-update { - border-top:1px dotted #000000; - margin: 1.6em 0 1em 0; - padding-top:1.6em; -} - - -/* Project specific styles - *******************************/ - -/* download-button link */ -.download-button { - overflow:hidden; - margin:0 0 2em 14%; -} - -.download-button a { - background: url(../images/download-button.gif) no-repeat 100% 0; - height: 43px; - display:block; - width:76%; - text-align:center; - padding-right: 5%; /* sliding doors padding */ - text-decoration: none; -} - -.download-button a span { - background: url(../images/download-button.gif) no-repeat bottom left!important; - display: block; - font-weight:bold; - line-height: 15px; - padding: 14px 0 14px 5%; -} - -/* styles for every info-block */ -#root .content .info { - padding:.4em 1em 1.6em 1em; - position:relative; -} - -/* set default styles for elements in info blocks */ - -.content .info ul, -.content .info ol { - margin: 0 0 1em 2em; -} - -.content .info ul { - list-style-type:square; -} - -.content .info ol { - list-style-type:decimal; -} - -.content .info ul li, -.content .info ol li { - line-height:2; -} - -.content .info .simple { - list-style:none; - list-style-image:none; - margin: 0 0 1em 1em; -} -.content .info .simple li { - line-height:1.2; -} - -.content .info .simplelist li { - line-height:1.2; -} - -.content .info h3 { - font-size:1.17em; - font-weight:bold; - line-height:1.3; -} - -.content .info h4 { - font-size:1em; - font-weight:bold; -} - -.content .info h3 a { - color:#000; -} - - -/* right column specific styles */ -.events { - border-top:1px dotted #000000; - margin: 1.6em 0 1em 0; - padding-top:1.6em; -} - -.info .events ul.simple { - margin-left:0; -} - -.info .events h3 { - margin-bottom:1em; -} - -.upcoming-events { - padding-bottom:1.4em; -} - -.calendar { - background: #DADADA; - margin-bottom: 6px; - padding: 0 11px; -} - -.calendar h4 { - line-height:1; -} - -.calendar p { - margin:1em 0 0 0; - text-align:center; -} - -.calendar .year { - width:38%; -} - -.calendar .month { - margin-right:2%; - width:58%; -} - -#right-column .calendar .corners-top, -#right-column .calendar .corners-bottom { - background-repeat:no-repeat; - background-image: url(../images/corners-left.gif); -} - -#right-column .calendar .corners-top { - background-position:0 -110px; -} - -#right-column .calendar .corners-bottom { - background-position:0 -121px; -} - -#right-column .calendar .corners-top span, -#right-column .calendar .corners-bottom span { - background-repeat:no-repeat; - background-image: url(../images/corners-right.gif); -} - -#right-column .calendar .corners-top span { - background-position:100% -110px; -} - -#right-column .calendar .corners-bottom span { - background-position:100% -121px; -} - -/* Main area - *******************************/ -#main-column .func-descr, -#main-column .func-date { - line-height:1; - margin:0; -} - -#main-column .verinfo { - margin-bottom:0; -} - -#main-column .func-date span { - color:#888; -} - -#main-column .func-descr { - font-size:1.17em; - font-style:normal; -} -#main-column .func-date { - text-align:right; -} - -#main-column h4 { - padding:1.2em 0; -} - -#main-column .info-block h4 { - padding:0 0 1em 0; -} - -#main-column .info-block, -#main-column .warning, -#main-column .tip, -#main-column .notes, -#main-column dd { - background:#ffffff; - padding:1em; - margin-bottom:1em; - border-bottom:1px solid #D0D0D0; -} - -#main-column dt { - line-height:1.6; -} - -#main-column .tip { - color:#006; -} - -#main-column .warning { - color:#6F0000; -} - -#main-column .notes { - color:#A2754B; -} - -/* Function list - *******************************/ -#functions-list { - margin:2em 0 0 1em; - font-weight:bold; - list-style:none; -} - -#functions-list li { - line-height:1; - padding:0 0 1em 14px; - background:url(../images/block_sprites.gif) -14px -131px no-repeat; -} - -#functions-list li li { - padding-bottom:6px; - list-style:none; - background:none; -} - -#functions-list li li a { - text-decoration:none; -} - -#functions-list ul { - margin: 1em 0 1em -14px; - font-weight:normal; - list-style:none; -} - -#functions-list li .sel { - background:url(../images/block_sprites.gif) 0 -147px no-repeat; -} - -#functions-list li .sel a { - color:#000; - font-weight:bold; -} - - -/* Contributed Notes - *******************************/ -.add-note { - float:right; - padding:12px 0; - line-height:1; - font-weight:bold; - background:url(../images/block_sprites.gif) 100% 6px no-repeat; -} - -.add-note a { - padding-right:34px; - -} - -#contributed-notes { - margin:0; - list-style:none; -} - -#contributed-notes li { - padding-top:12px; -} - -#contributed-notes .username { - background:url(../images/note-username-back.jpg) bottom right no-repeat; - color:#808080; - line-height:1.2; - padding:0 60px 6px 0; - float:left; -} - -#contributed-notes .username strong { - font-size:1.08em; -} - -#contributed-notes .username a { - font-size:.83em; -} - -#contributed-notes .ncontent { - clear:left; -} - -#contributed-notes .note { - padding:0 11px; - line-height:1.2; - background:url(../images/note-corners-back.gif) 0 100% repeat-x #FFFFFF; -} - -#contributed-notes .note .corners-top, -#contributed-notes .note .corners-bottom { - background-image: url(../images/corners-left.gif); -} - -#contributed-notes .note .corners-top { - background-position:0 -66px; -} - -#contributed-notes .note .corners-bottom { - background-position:0 -77px; -} - -#contributed-notes .note .corners-top span, -#contributed-notes .note .corners-bottom span { - background-image: url(../images/corners-right.gif); -} - -#contributed-notes .note .corners-top span { - background-position:100% -66px; -} - -#contributed-notes .note .corners-bottom span { - background-position:100% -77px; -} - -/* Forms - *******************************/ -.form dt { - width:20%; - font-weight:bold; - float:left; - padding-bottom:1em; -} - -.form dd { - margin-left:20%; - padding-bottom:1em; -} - -.form .max{ - width:50%; -} - -.errors { - border:1px dotted #ff0000; - padding:1em; - list-style:inside; - margin-left:0!important; -} - - -/* Footer - *******************************/ -#footer { - font-size: 1.1em; - padding: 0 11px; - background: url(../images/footer-back.gif) left bottom repeat-x #CECECE; -} - -#footer .corners-top, -#footer .corners-bottom { - background-image: url(../images/corners-left.gif); -} - -#footer .corners-top { - background-position:0 -88px; -} - -#footer .corners-bottom { - background-position:0 -99px; -} - -#footer .corners-top span, -#footer .corners-bottom span { - background-image: url(../images/corners-right.gif); -} - -#footer .corners-top span { - background-position:100% -88px; -} - -#footer .corners-bottom span { - background-position:100% -99px; -} - -#footer .info { - line-height:1.4; - padding:18px 12px; -} - -#copyright { - float:left; -} - -#footer-menu { - text-align:right; -} - -#footer-menu ul { - display:inline; - color: #6280B2; -} - -#footer-menu ul li { - display:inline; - border-right:1px solid #6280B2; - padding: 0 1%; -} - -#footer-menu ul .last { - border:0; - padding-right:0; -} - -#footer-menu ul .first { - padding-left:0; -} - -#footer-menu small { - color:#7C7C7C; -} - -#footer-menu small a { - color:#000; -} - -/* Manual tweaks - *******************************/ -.refnamediv { - margin: 0 0 0.5em 0; - padding: 0 0 0.5em 0; - border:0; - border-bottom: 1px #000 dotted; -} - -.methodsynopsis { - padding:.4em 1em 1.6em 1em; - position:relative; - background:#ffffff; - padding:1em; - margin-bottom:1em; - border-bottom:1px solid #D0D0D0; -} - -#main-column b.tip, -#main-column b.warning { - padding: 0; -} -#main-column .notes { - background: inherit; - padding:1em; - margin-bottom:1em; - border-bottom:1px solid #D0D0D0; -} -#main-column .notes blockquote { - border: 0; - border-bottom:1px solid #D0D0D0; - padding: 1em; - background: #ffffff; -} - -#root .content .examples { - position:relative; - background:#ffffff; - padding:1em; - margin-bottom:1em; - border-bottom:1px solid #D0D0D0; -} - -#main-column .examples h3 { - padding:0 0 1em 0; -} -#main-column .example-contents { - background-color: #fff; - border: 1px solid #e2e2e2; - padding: 5px 10px; -} -#main-column .example-contents p { - margin-bottom: 0px; -} - -/***** {{{ REMOVE ME *****/ -/* - * This is only during development so that users of docs.php.net can get a big - * fat red warning about that thei are browser developmental server. - */ -#main-menu { - margin-bottom: 0; -} - -#warning { - background:#ffffff; - padding:1em; - margin: 0px; - border-bottom:1px solid #D0D0D0; - color:#6F0000; - margin-bottom: 6px; - text-align: center; - font-weight: bold; - font-size:1.17em; -} -/***** }}} *****/ - - diff --git a/styles/handfield.css b/styles/handfield.css deleted file mode 100644 index 046c8c3..0000000 --- a/styles/handfield.css +++ /dev/null @@ -1,9 +0,0 @@ -/* Screen version -*******************************/ -@import 'reset.css'; - -@import 'base.css'; - -@import 'content.css'; - -@import 'helpers.css'; \ No newline at end of file diff --git a/styles/helpers.css b/styles/helpers.css deleted file mode 100644 index 9b452f4..0000000 --- a/styles/helpers.css +++ /dev/null @@ -1,67 +0,0 @@ -/* Code colors -*******************************/ -.default { color:#0000BB; } -.keyword { color:#009900; } -.string { color:#BB0000; } -.comment { color:#FF9900; } - -/* Text size -*******************************/ -.em18 { font-size: 1.8em; } -.em16 { font-size: 1.6em; } -.em12 { font-size: 1.2em; } -.em11 { font-size: 1.1em; } -.em10 { font-size: 1.0em; } -.em9 { font-size: 0.9em; } - -/* Text decorations -*******************************/ -.bold { font-weight: bold; } -.normal { font-weight: normal; } -.italic { font-style: italic } -.underline { text-decoration: underline; } - -/* Float -*******************************/ -.f-right { float: right; } -.f-left { float: left; } -.f-none { float: none; } - -/* Text align -*******************************/ -.t-right { text-align: right; } -.t-left { text-align: left; } -.t-center { text-align: center; } -.t-justify { text-align: justify; } - -/* Width -*******************************/ -.w_25 { width:2.5em; } -.w_30 { width:3em; } -.w_50 { width:5em; } -.w_70 { width:7em; } -.w_100 { width:10em; } -.w_150 { width:15em; } -.w_200 { width:20em; } -.w_250 { width:25em; } -.w_300 { width:30em; } - -/* Text transform -*******************************/ -.lower { text-transform: lowercase; } -.upper { text-transform: uppercase; } -.capitalize { text-transform: capitalize; } - -/* Other -*******************************/ -.clear:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden -} - -.zoom{ - overflow:hidden; -} \ No newline at end of file diff --git a/styles/print.css b/styles/print.css deleted file mode 100644 index f34c463..0000000 --- a/styles/print.css +++ /dev/null @@ -1,89 +0,0 @@ -body { - margin:.2in .55in; - padding:0; - font:12pt "Times New Roman", serif; - } - -/* Hide and reset blocks - *******************************/ -#mid-column, -#main-column, -#right-column, -#header, -#content { - margin:0; - list-style:none; - -} - -#left-column, -#footer, -.adv-block, -#main-menu, -#search-box, -#news-line, -.releases, -.calendar, -.add-event, -.add-note { - display:none; -} - -/* Links decoration - *******************************/ -a { - color:black; - text-decoration:none; - } -a img { - border-width:0; - } - -/* Headings - *******************************/ -h1, h2, h3,h4 { - margin:1em 0 .5em; - font-family:Georgia,Serif; - font-weight:normal; - clear:both; - } - h1 { - margin-top:.5em; - font-size:180%; - } - h2 { - font-size:240%; - margin:.3em 0 0 0; - padding-bottom:0; - } - h3 { - font-size:150%; - margin-bottom:0; - } - - h4 { - font-size:120%; - margin-bottom:0; - } -p{ - margin:0 0 .6em 0; - } -blockquote{ - font-style:italic; - } -h3+blockquote, h2+blockquote, p+ul, h2+ul, h3+ul{ - margin-top:.2em; - } - -/* Etc - *******************************/ -.content a[href]:after, -.secondary a[href]:after, -#footer a[href]:after { - content: " (" attr(href) ") "; - font-size: 90%; - } -.content a[href^="/"]:after, -.secondary a[href^="/"]:after { - content: " (http://php.net/" attr(href) ") "; - } \ No newline at end of file diff --git a/styles/reset.css b/styles/reset.css deleted file mode 100644 index 952bffd..0000000 --- a/styles/reset.css +++ /dev/null @@ -1,44 +0,0 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { -margin: 0; -padding: 0; -border: 0; -outline: 0; -font-weight: inherit; -font-style: inherit; -font-size: 100%; -font-family: inherit; -vertical-align: baseline; -} -:focus { -outline: 0; -} -body { -line-height: 1; -color: black; -background: white; -} -ol, ul { -list-style: none; -} -table { -border-collapse: separate; -border-spacing: 0; -} -caption, th, td { -text-align: left; -font-weight: normal; -} -blockquote:before, blockquote:after, -q:before, q:after { -content: ""; -} -blockquote, q { -quotes: "" ""; -} diff --git a/styles/screen.css b/styles/screen.css deleted file mode 100644 index 046c8c3..0000000 --- a/styles/screen.css +++ /dev/null @@ -1,9 +0,0 @@ -/* Screen version -*******************************/ -@import 'reset.css'; - -@import 'base.css'; - -@import 'content.css'; - -@import 'helpers.css'; \ No newline at end of file diff --git a/styles/style_uncompressed.css b/styles/style_uncompressed.css new file mode 100644 index 0000000..8bff9ed --- /dev/null +++ b/styles/style_uncompressed.css @@ -0,0 +1,1147 @@ +@media screen { + /* Reset styles + *******************************/ + html, body, div, span, applet, object, iframe, + h1, h2, h3, h4, h5, h6, p, blockquote, pre, + a, abbr, acronym, address, big, cite, code, + del, dfn, em, font, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; + } + :focus { + outline: 0; + } + body { + line-height: 1; + color: black; + background: white; + } + ol, ul { + list-style: none; + } + table { + border-collapse: separate; + border-spacing: 0; + } + caption, th, td { + text-align: left; + font-weight: normal; + } + blockquote:before, blockquote:after, + q:before, q:after { + content: ""; + } + blockquote, q { + quotes: "" ""; + } + + + + /* Main styles + *******************************/ + html { + height: 100%; + margin-bottom: 1px;/* force vertical scrollbars */ + } + + body { + background: #E2E2E2; + color: #000; + font-size: 62.5%; + text-align: left; + } + + /* Default fonts + *******************************/ + body { font-family: Tahoma, Arial, sans-serif, serif, monospace } + + input, + select { font-family: Tahoma, Arial, Helvetica, sans-serif; } + + textarea, + pre, + tt, + kbd, + var, + code { font-family:"Courier New", Courier, monospace; } + + /* Header elements + *******************************/ + h1, + h2, + h3, + h4, + h5, + h6 { font-weight:normal; } + + h1 { font-size: 1.7em; line-height: 2.4em; } + h2 { font-size: 1.6em; line-height: 2.2em; } + h3 { font-size: 1.4em; line-height: 2.0em; } + h4 { font-size: 1.3em; line-height: 1.8em; } + h5 { font-size: 1.2em; line-height: 1.6em; } + h6 { font-size: 1.1em; line-height: 1.2em; } + + + /* Text elements + *******************************/ + p { margin: 0 0 1em 0; text-align: left; } + p.last, + p.cite { margin-bottom:0; } + p.first { margin-top:1em; } + p.img { float: left; margin:0 1em 1em 0; padding:0; } + p.top-border { border-top: 1px dotted #000; padding-top:1em; } + + blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } + strong { font-weight: bold; } + em { font-style: italic; } + pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } + small { font-size: .9em; } + code { /*style*/ } + ins { text-decoration:none; } /*remove underline from text*/ + del { text-decoration:line-through; } + sub { vertical-align:sub;font-size: .9em; } + sup { vertical-align:super;font-size: .9em; } + acronym { border-bottom:1px dotted #666; } + abbr { /*style*/ } + dfn { font-style:italic; } + bdo { /*style*/ } + + /*quotes*/ + q { font-style:italic; } + cite { font-style:italic; quotes: "\00ab" "\00bb"; } + cite:after, + q:after { content: "\00bb"; } + cite:before, + q:before { content: "\00ab"; } + + hr { + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 dotted; + } + + /*links*/ + a:link, + a:visited, + a:focus, + a:hover, + a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } + + a:hover { } + + a:active, + a:focus { outline: 0; } /*remove border in ff*/ + /* + a:visited { color:#849BCA } + */ + + + /* Images + *******************************/ + img { vertical-align:middle; outline:0 } + + /* Form styles + *******************************/ + input, + select, + textarea { + font-size:1.0em;/*by default font-size is bigger*/ + vertical-align:baseline; + } + + input.text, + input.file { cursor:text; } + + input.button { cursor:pointer; } + + input.radio, + input.checkbox { border: 0;padding: 0; } + + /* Main styles + *******************************/ + #root { + margin: 10px 10px 0; + padding-bottom:10px; + min-width: 970px; + } + + /* Corners + *******************************/ + .corners-top, + .corners-bottom, + .corners-top span, + .corners-bottom span { + font-size: 1px; + line-height: 1px; + display: block; + height: 11px; + background-repeat: no-repeat; + background-image: none; + } + + .corners-top { + margin: 0 -11px; + } + + .corners-bottom { + margin: 0 -11px; + clear: both; + } + + /* Header + *******************************/ + #header { + background: url(/images/header-corners.jpg) repeat-x 0 -232px; + height: 116px; + margin-bottom: 6px; + clear:both; + } + + #header .side-left, + #header .side-right { + display: block; + width: 13px; + height: 116px; + background: url(/images/header-corners.jpg) no-repeat; + } + + #header .side-left { + background-position: 0 0; + float: left; + } + #header .side-right { + background-position: 100% -116px; + float: right; + } + + #header .content { + margin: 0 13px; + padding:20px 11px; + } + + #header h1 a { + background:url(/images/header-logo.jpg) left top no-repeat; + float:left; + width:434px; + height:76px; + text-indent: -9999px; + } + + /* search box */ + #search-box { + text-align:right; + margin-left:440px; + padding:26px 0; + font-size:1.1em; + color:#B5B5E9; + } + + #search-box span { + padding-left:8px; + } + + #search-box label { + padding-left:8px; + } + + #search-box input.text, + #search-box select { + } + + #search-box input.text { + width:20%; + line-height:1; + padding:0; + } + + #search-box select { + width:20%; + } + + #search-box input.button { + background:url(/images/block_sprites.gif) 0 -104px no-repeat; + width:69px; + border:0; + height:24px; + line-height:1.2; + color:#56518B; + } + + + /* Main menu & Newsline styles + *******************************/ + #main-menu, + #news-line, + #main-column .adv-block { + font-size: 1.1em; + line-height:1.2; + margin-bottom: 6px; + padding: 0 11px; + background: none left bottom repeat-x #F6F6F6; + } + + #main-menu, + #main-column .adv-block { + background-image: url(/images/menu-corners-back.gif); + clear:both; + } + + #news-line { + background-image: url(/images/news-line-back.gif); + } + + /* main corners */ + #main-menu .corners-top, + #main-menu .corners-bottom, + #main-column .adv-block .corners-top, + #main-column .adv-block .corners-bottom{ + background-image: url(/images/corners-left.gif); + } + + #main-menu .corners-top, + #main-column .adv-block .corners-top { + background-position:0 -22px; + } + + #main-menu .corners-bottom, + #main-column .adv-block .corners-bottom { + background-position:0 -33px; + } + + #main-menu .corners-top span, + #main-menu .corners-bottom span, + #main-column .adv-block .corners-top span, + #main-column .adv-block .corners-bottom span { + background-image: url(/images/corners-right.gif); + } + + #main-menu .corners-top span, + #main-column .adv-block .corners-top span { + background-position:100% -22px; + } + + #main-menu .corners-bottom span, + #main-column .adv-block .corners-bottom span { + background-position:100% -33px; + } + /* end main corners */ + + #main-menu ul { + padding:8px 0; + } + + #news-line ul ul, + #main-menu ul { + margin-left: 12px; + } + + #news-line ul ul{ + display:inline; + } + + #news-line li li, + #main-menu li { + display: inline; + padding:0 1%; + border-right:1px solid #CDCDCD; + } + + #news-line li .first, + #main-menu .first { + padding-left:0; + } + + #news-line li .last, + #main-menu .last { + border:0; + } + + #news-line ul span { + float: left; + margin-left: 12px; + width: 140px; + } + + #news-line .corners-top, + #news-line .corners-bottom { + background-image: url(/images/corners-left.gif); + } + + #news-line .corners-top { + background-position:0 -44px; + } + + #news-line .corners-bottom { + background-position:0 -55px; + } + + #news-line .corners-top span, + #news-line .corners-bottom span { + background-image: url(/images/corners-right.gif); + } + + #news-line .corners-top span { + background-position:100% -44px; + } + + #news-line .corners-bottom span { + background-position:100% -55px; + } + + /* main column top and bottom blocks */ + #main-column .adv-block { + font-size:0.92em; + line-height:1.4em; + } + + #main-column .adv-block a { + } + + #main-column .adv-block .prev { + background:url(/images/block_sprites.gif) no-repeat 0 -27px; + float:left; + padding:5px 0 6px 40px; + } + + #main-column .adv-block .next { + background:url(/images/block_sprites.gif) no-repeat 100% -51px; + float:right; + padding:5px 40px 6px 0; + } + + #main-column .adv-block p { + text-align:center; + margin:0 160px; + } + + #main-column .adv-block select { + width:25%; + } + + #main-column .adv-block input { + background:url(/images/block_sprites.gif) 0 -77px no-repeat; + width:57px; + height:26px; + border:0; + color:#6181B7; + text-indent: -9999px; + cursor:pointer; + } + + /* Content + *******************************/ + #content { + font-size: 1.2em; + line-height:1.4; + } + + #content-columns { + overflow: hidden; + } + + /* every left column */ + #left-column { + float: left; + overflow: hidden; + width: 22%; + } + + /* mid column on first page */ + #mid-column { + float: left; + overflow: hidden; + width: 57%; + } + + /* main column on other pages */ + #main-column { + float: left; + overflow: hidden; + width: 78%; + } + + /* simple page area */ + #page-area { + overflow: hidden; + width: 100%; + } + + /* right column on first page */ + #right-column { + float: left; + overflow: hidden; + width: 21%; + } + + #mid-column .content{ + margin: 0 6px; + } + + #main-column .content { + margin-left:6px; + } + + #content-columns .block, + #page-area .content { + background: url(/images/main-corners-back.gif) 0 100% repeat-x #F0F0F0; + margin-bottom: 6px; + padding: 0 11px; + } + + #content-columns .block .corners-top, + #content-columns .block .corners-bottom, + #page-area .content .corners-top, + #page-area .content .corners-bottom { + background-image: url(/images/corners-left.gif); + } + + #content-columns .block .corners-top, + #page-area .content .corners-top { + background-position:0 0; + } + + #content-columns .block .corners-bottom, + #page-area .content .corners-bottom { + background-position:0 -11px; + } + + #content-columns .block .corners-top span, + #content-columns .block .corners-bottom span, + #page-area .content .corners-top span, + #page-area .content .corners-bottom span { + background-image: url(/images/corners-right.gif); + } + + #content-columns .block .corners-top span, + #page-area .content .corners-top span { + background-position:100% 0; + } + + #content-columns .block .corners-bottom span, + #page-area .content .corners-bottom span { + background-position:100% -11px; + } + + /* set min-height for info blocks */ + #content-columns .block .info { + min-height: 127px; + height: auto!important; + height: 127px; + } + + /* news item*/ + #content-columns .news-date { + border-bottom:1px dotted #000000; + color:#A0A0A0; + padding-bottom:1em; + margin:0 0 1em 0; + text-align:right; + } + + #content-columns .news-update { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; + } + + + /* Project specific styles + *******************************/ + + /* download-button link */ + .download-button { + overflow:hidden; + margin:0 0 2em 14%; + } + + .download-button a { + background: url(/images/download-button.gif) no-repeat 100% 0; + height: 43px; + display:block; + width:76%; + text-align:center; + padding-right: 5%; /* sliding doors padding */ + text-decoration: none; + } + + .download-button a span { + background: url(/images/download-button.gif) no-repeat 0 100%!important; + display: block; + font-weight:bold; + line-height: 15px; + padding: 14px 0 14px 5%; + } + + /* styles for every info-block */ + #root .content .info { + padding:.4em 1em 1.6em 1em; + position:relative; + } + + /* set default styles for elements in info blocks */ + + .content .info ul, + .content .info ol { + margin: 0 0 1em 2em; + } + + .content .info ul { + list-style-type:square; + } + + .content .info ol { + list-style-type:decimal; + } + + .content .info ul li, + .content .info ol li { + line-height:2; + } + + .content .info .simple { + list-style:none; + list-style-image:none; + margin: 0 0 1em 1em; + } + .content .info .simple li { + line-height:1.2; + } + + .content .info .simplelist li { + line-height:1.2; + } + + .content .info h3 { + font-size:1.17em; + font-weight:bold; + line-height:1.3; + } + + .content .info h4 { + font-size:1em; + font-weight:bold; + } + + .content .info h3 a { + color:#000; + } + + + /* right column specific styles */ + .events { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; + } + + .info .events ul.simple { + margin-left:0; + } + + .info .events h3 { + margin-bottom:1em; + } + + .upcoming-events { + padding-bottom:1.4em; + } + + .calendar { + background: #DADADA; + margin-bottom: 6px; + padding: 0 11px; + } + + .calendar h4 { + line-height:1; + } + + .calendar p { + margin:1em 0 0 0; + text-align:center; + } + + .calendar .year { + width:38%; + } + + .calendar .month { + margin-right:2%; + width:58%; + } + + #right-column .calendar .corners-top, + #right-column .calendar .corners-bottom { + background-repeat:no-repeat; + background-image: url(/images/corners-left.gif); + } + + #right-column .calendar .corners-top { + background-position:0 -110px; + } + + #right-column .calendar .corners-bottom { + background-position:0 -121px; + } + + #right-column .calendar .corners-top span, + #right-column .calendar .corners-bottom span { + background-repeat:no-repeat; + background-image: url(/images/corners-right.gif); + } + + #right-column .calendar .corners-top span { + background-position:100% -110px; + } + + #right-column .calendar .corners-bottom span { + background-position:100% -121px; + } + + /* Main area + *******************************/ + #main-column .func-descr, + #main-column .func-date { + line-height:1; + margin:0; + } + + #main-column .func-ver { + margin-bottom:0; + } + + #main-column .func-date span { + color:#888; + } + + #main-column .func-descr { + font-size:1.17em; + font-style:normal; + } + #main-column .func-date { + text-align:right; + } + + #main-column h4 { + padding:1.2em 0; + } + + #main-column .info-block h4 { + padding:0 0 1em 0; + } + + #main-column .info-block, + #main-column .warning, + #main-column .notes, + #main-column dd { + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; + } + + #main-column dt { + line-height:1.6; + } + + #main-column .warning { + color:#6F0000; + } + + #main-column .notes { + color:#A2754B; + } + + /* Function list + *******************************/ + #functions-list { + margin:2em 0 0 1em; + font-weight:bold; + list-style:none; + } + + #functions-list li { + line-height:1; + padding:0 0 1em 14px; + background:url(/images/block_sprites.gif) -14px -131px no-repeat; + } + + #functions-list li li { + padding-bottom:6px; + list-style:none; + background:none; + } + + #functions-list li li a { + text-decoration:none; + } + + #functions-list ul { + margin: 1em 0 1em -14px; + font-weight:normal; + list-style:none; + } + + #functions-list li .sel { + background:url(/images/block_sprites.gif) 0 -147px no-repeat; + } + + #functions-list li .sel a { + color:#000; + font-weight:bold; + } + + + /* Contributed Notes + *******************************/ + .add-note { + float:right; + padding:12px 0; + line-height:1; + font-weight:bold; + background:url(/images/block_sprites.gif) 100% 6px no-repeat; + } + + .add-note a { + padding-right:34px; + + } + + #contributed-notes { + margin:0; + list-style:none; + } + + #contributed-notes li { + padding-top:12px; + } + + #contributed-notes .username { + background:url(/images/usernote.gif) 100% 100% no-repeat; + color:#808080; + line-height:1.2; + padding:0 60px 6px 0; + float:left; + } + + #contributed-notes .username strong { + font-size:1.08em; + } + + #contributed-notes .username a { + font-size:.83em; + } + + #contributed-notes .ncontent { + clear:left; + } + + #contributed-notes .note { + padding:0 11px; + line-height:1.2; + background:url(/images/note-corners-back.gif) 0 100% repeat-x #FFFFFF; + } + + #contributed-notes .note .corners-top, + #contributed-notes .note .corners-bottom { + background-image: url(/images/corners-left.gif); + } + + #contributed-notes .note .corners-top { + background-position:0 -66px; + } + + #contributed-notes .note .corners-bottom { + background-position:0 -77px; + } + + #contributed-notes .note .corners-top span, + #contributed-notes .note .corners-bottom span { + background-image: url(/images/corners-right.gif); + } + + #contributed-notes .note .corners-top span { + background-position:100% -66px; + } + + #contributed-notes .note .corners-bottom span { + background-position:100% -77px; + } + + /* Forms + *******************************/ + .form dt { + width:20%; + font-weight:bold; + float:left; + padding-bottom:1em; + } + + .form dd { + margin-left:20%; + padding-bottom:1em; + } + + .form .max{ + width:50%; + } + + .errors { + border:1px dotted #ff0000; + padding:1em; + list-style:inside; + margin-left:0!important; + } + + + /* Footer + *******************************/ + #footer { + font-size: 1.1em; + padding: 0 11px; + background: url(/images/footer-back.gif) 0 100% repeat-x #CECECE; + } + + #footer .corners-top, + #footer .corners-bottom { + background-image: url(/images/corners-left.gif); + } + + #footer .corners-top { + background-position:0 -88px; + } + + #footer .corners-bottom { + background-position:0 -99px; + } + + #footer .corners-top span, + #footer .corners-bottom span { + background-image: url(/images/corners-right.gif); + } + + #footer .corners-top span { + background-position:100% -88px; + } + + #footer .corners-bottom span { + background-position:100% -99px; + } + + #footer .info { + line-height:1.4; + padding:18px 12px; + } + + #copyright { + float:left; + } + + #footer-menu { + text-align:right; + } + + #footer-menu ul { + display:inline; + color: #6280B2; + } + + #footer-menu ul li { + display:inline; + border-right:1px solid #6280B2; + padding: 0 1%; + } + + #footer-menu ul .last { + border:0; + padding-right:0; + } + + #footer-menu ul .first { + padding-left:0; + } + + #footer-menu small { + color:#7C7C7C; + } + + #footer-menu small a { + color:#000; + } + + + /* Code colors + *******************************/ + .default { color:#0000BB; } + .keyword { color:#009900; } + .string { color:#BB0000; } + .comment { color:#FF9900; } + + /* Text size + *******************************/ + .em18 { font-size: 1.8em; } + .em16 { font-size: 1.6em; } + .em12 { font-size: 1.2em; } + .em11 { font-size: 1.1em; } + .em10 { font-size: 1.0em; } + .em9 { font-size: 0.9em; } + + /* Text decorations + *******************************/ + .bold { font-weight: bold; } + .normal { font-weight: normal; } + .italic { font-style: italic } + .underline { text-decoration: underline; } + + /* Float + *******************************/ + .f-right { float: right; } + .f-left { float: left; } + .f-none { float: none; } + + /* Text align + *******************************/ + .t-right { text-align: right; } + .t-left { text-align: left; } + .t-center { text-align: center; } + .t-justify { text-align: justify; } + + /* Width + *******************************/ + .w_25 { width:2.5em; } + .w_30 { width:3em; } + .w_50 { width:5em; } + .w_70 { width:7em; } + .w_100 { width:10em; } + .w_150 { width:15em; } + .w_200 { width:20em; } + .w_250 { width:25em; } + .w_300 { width:30em; } + + /* Text transform + *******************************/ + .lower { text-transform: lowercase; } + .upper { text-transform: uppercase; } + .capitalize { text-transform: capitalize; } + + /* Other + *******************************/ + .clear:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden + } + + .zoom{ + overflow:hidden; + } + +} + + +@media print { + body { + margin:.2in .55in; + padding:0; + font:12pt "Times New Roman", serif; + } + + /* Hide and reset blocks + *******************************/ + #mid-column, + #main-column, + #right-column, + #header, + #content { + margin:0; + list-style:none; + } + + #left-column, + #footer, + .adv-block, + #main-menu, + #search-box, + #news-line, + .releases, + .calendar, + .add-event, + .add-note { + display:none; + } + + /* Links decoration + *******************************/ + a { + color:black; + text-decoration:none; + } + a img { + border-width:0; + } + + /* Headings + *******************************/ + h1, h2, h3,h4 { + margin:1em 0 .5em; + font-family:Georgia,Serif; + font-weight:normal; + clear:both; + } + h1 { + margin-top:.5em; + font-size:180%; + } + h2 { + font-size:240%; + margin:.3em 0 0 0; + padding-bottom:0; + } + h3 { + font-size:150%; + margin-bottom:0; + } + + h4 { + font-size:120%; + margin-bottom:0; + } + p{ + margin:0 0 .6em 0; + } + blockquote{ + font-style:italic; + } + h3+blockquote, h2+blockquote, p+ul, h2+ul, h3+ul{ + margin-top:.2em; + } + + /* Etc + *******************************/ + .content a[href]:after, + .secondary a[href]:after, + #footer a[href]:after { + content: " (" attr(href) ") "; + font-size: 90%; + } + .content a[href^="/"]:after, + .secondary a[href^="/"]:after { + content: " (http://php.net/" attr(href) ") "; + } +} commit d74bcd857129a6a0b0ea1d88152b8898b8965f9b Author: Hannes Magnusson <bjori@php.net> Date: Mon Aug 25 20:38:23 2008 +0000 Update to July 1st markup/css diff --git a/design/css/base.css b/design/css/base.css deleted file mode 100644 index 89ecacb..0000000 --- a/design/css/base.css +++ /dev/null @@ -1,124 +0,0 @@ -/* Main styles -*******************************/ -html { - height: 100%; - margin-bottom: 1px;/* force vertical scrollbars */ -} - -body { - background: #E2E2E2; - color: #000; - font-size: 62.5%; - text-align: left; -} - -/* Default fonts -*******************************/ -body { font-family: Tahoma, Arial, sans-serif, serif, monospace } - -input, -select { font-family: Tahoma, Arial, Helvetica, sans-serif; } - -textarea, -pre, -tt, -kbd, -var, -code { font-family:"Courier New", Courier, monospace; } - - -/* Header elements -*******************************/ -h1, -h2, -h3, -h4, -h5, -h6 { font-weight:normal; } - -h1 { font-size: 1.7em; line-height: 2.4em; } -h2 { font-size: 1.6em; line-height: 2.2em; } -h3 { font-size: 1.4em; line-height: 2.0em; } -h4 { font-size: 1.3em; line-height: 1.8em; } -h5 { font-size: 1.2em; line-height: 1.6em; } -h6 { font-size: 1.1em; line-height: 1.2em; } - - -/* Text elements -*******************************/ -p { margin: 0 0 1em 0; text-align: left; } -p.last, -p.cite { margin-bottom:0; } -p.first { margin-top:1em; } -p.img { float: left; margin:0 1em 1em 0; padding:0; } -p.top-border { border-top: 1px dotted #000; padding-top:1em; } - -blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } -strong { font-weight: bold; } -em { font-style: italic; } -pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } -small { font-size: .9em; } -code { /*style*/ } -ins { text-decoration:none; } /*remove underline from text*/ -del { text-decoration:line-through; } -sub { vertical-align:sub;font-size: .9em; } -sup { vertical-align:super;font-size: .9em; } -acronym { border-bottom:1px dotted #666; } -abbr { /*style*/ } -dfn { font-style:italic; } -bdo { /*style*/ } - -/*quotes*/ -q { font-style:italic; } -cite { font-style:italic; quotes: "\00ab" "\00bb"; } -cite:after, -q:after { content: "\00bb"; } -cite:before, -q:before { content: "\00ab"; } - -hr { - color: #fff; - background:transparent; - margin: 0 0 0.5em 0; - padding: 0 0 0.5em 0; - border:0; - border-bottom: 1px #000 dotted; -} - -/*links*/ -a:link, -a:visited, -a:focus, -a:hover, -a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } - -a:hover { } - -a:active, -a:focus { outline: 0; } /*remove border in ff*/ -/* -a:visited { color:#849BCA } -*/ - - -/* Images -*******************************/ -img { vertical-align:middle; outline:0 } - -/* Form styles -*******************************/ -input, -select, -textarea { - font-size:1.0em;/*by default font-size is bigger*/ - vertical-align:baseline; -} - -input.text, -input.file { cursor:text; } - -input.button { cursor:pointer; } - -input.radio, -input.checkbox { border: 0;padding: 0; } - diff --git a/design/css/content.css b/design/css/content.css deleted file mode 100644 index 3b610c4..0000000 --- a/design/css/content.css +++ /dev/null @@ -1,812 +0,0 @@ -/* Main styles - *******************************/ -#root { - margin: 10px 10px 0; - padding-bottom:10px; - min-width: 970px; -} - - -/* Corners - *******************************/ -.corners-top, -.corners-bottom, -.corners-top span, -.corners-bottom span { - font-size: 1px; - line-height: 1px; - display: block; - height: 11px; - background-repeat: no-repeat; - background-image: none; -} - -.corners-top { - margin: 0 -11px; -} - -.corners-bottom { - margin: 0 -11px; - clear: both; -} - -/* Header - *******************************/ -#header { - background: url(../img/header-corners.jpg) repeat-x 0 -232px; - height: 116px; - margin-bottom: 6px; - clear:both; -} - -#header .side-left, -#header .side-right { - display: block; - width: 13px; - height: 116px; - background: url(../img/header-corners.jpg) no-repeat; -} - -#header .side-left { - background-position: 0 0; - float: left; -} -#header .side-right { - background-position: 100% -116px; - float: right; -} - -#header .content { - margin: 0 13px; - padding:20px 11px; -} - -#header h1 a { - background:url(../img/header-logo.jpg) left top no-repeat; - float:left; - width:434px; - height:76px; - text-indent: -9999px; -} - -/* search box */ -#search-box { - text-align:right; - margin-left:440px; - padding:26px 0; - font-size:1.1em; - color:#B5B5E9; -} - -#search-box span { - padding-left:8px; -} - -#search-box label { - padding-left:8px; -} - -#search-box input.text, -#search-box select { -} - -#search-box input.text { - width:20%; - line-height:1; - padding:0; -} - -#search-box select { - width:20%; -} - -#search-box input.button { - background:url(../img/block_sprites.gif) 0 -104px no-repeat; - width:69px; - border:0; - height:24px; - line-height:1.2; - color:#56518B; -} - - -/* Main menu & Newsline styles - *******************************/ -#main-menu, -#news-line, -#main-column .adv-block { - font-size: 1.1em; - line-height:1.2; - margin-bottom: 6px; - padding: 0 11px; - background: none left bottom repeat-x #F6F6F6; -} - -#main-menu, -#main-column .adv-block { - background-image: url(../img/menu-corners-back.gif); - clear:both; -} - -#news-line { - background-image: url(../img/news-line-back.gif); -} - -/* main corners */ -#main-menu .corners-top, -#main-menu .corners-bottom, -#main-column .adv-block .corners-top, -#main-column .adv-block .corners-bottom{ - background-image: url(../img/corners-left.gif); -} - -#main-menu .corners-top, -#main-column .adv-block .corners-top { - background-position:0 -22px; -} - -#main-menu .corners-bottom, -#main-column .adv-block .corners-bottom { - background-position:0 -33px; -} - -#main-menu .corners-top span, -#main-menu .corners-bottom span, -#main-column .adv-block .corners-top span, -#main-column .adv-block .corners-bottom span { - background-image: url(../img/corners-right.gif); -} - -#main-menu .corners-top span, -#main-column .adv-block .corners-top span { - background-position:100% -22px; -} - -#main-menu .corners-bottom span, -#main-column .adv-block .corners-bottom span { - background-position:100% -33px; -} -/* end main corners */ - -#main-menu ul { - padding:8px 0; -} - -#news-line ul ul, -#main-menu ul { - margin-left: 12px; -} - -#news-line ul ul{ - display:inline; -} - -#news-line li li, -#main-menu li { - display: inline; - padding:0 1%; - border-right:1px solid #CDCDCD; -} - -#news-line li .first, -#main-menu .first { - padding-left:0; -} - -#news-line li .last, -#main-menu .last { - border:0; -} - -#news-line ul span { - float: left; - margin-left: 12px; - width: 140px; -} - -#news-line .corners-top, -#news-line .corners-bottom { - background-image: url(../img/corners-left.gif); -} - -#news-line .corners-top { - background-position:0 -44px; -} - -#news-line .corners-bottom { - background-position:0 -55px; -} - -#news-line .corners-top span, -#news-line .corners-bottom span { - background-image: url(../img/corners-right.gif); -} - -#news-line .corners-top span { - background-position:100% -44px; -} - -#news-line .corners-bottom span { - background-position:100% -55px; -} - -/* main column top and bottom blocks */ -#main-column .adv-block { - font-size:0.92em; - line-height:1.4em; -} - -#main-column .adv-block a { -} - -#main-column .adv-block .prev { - background:url(../img/block_sprites.gif) no-repeat 0 -27px; - float:left; - padding:5px 0 5px 40px; -} - -#main-column .adv-block .next { - background:url(../img/block_sprites.gif) no-repeat 100% -51px; - float:right; - padding:5px 40px 5px 0; -} - -#main-column .adv-block p { - text-align:center; - margin:0 160px; -} - -#main-column .adv-block select { - width:25%; -} - -#main-column .adv-block input { - background:url(../img/../img/block_sprites.gif) 0 -77px no-repeat; - width:57px; - height:26px; - border:0; - color:#6181B7; - text-indent: -9999px; - cursor:pointer; -} - -/* Content - *******************************/ -#content { - font-size: 1.2em; - line-height:1.4; -} - -#content-columns { - overflow: hidden; -} - -/* every left column */ -#left-column { - float: left; - overflow: hidden; - width: 22%; -} - -/* mid column on first page */ -#mid-column { - float: left; - overflow: hidden; - width: 57%; -} - -/* main column on other pages */ -#main-column { - float: left; - overflow: hidden; - width: 78%; -} - -/* simple page area */ -#page-area { - overflow: hidden; - width: 100%; -} - -/* right column on first page */ -#right-column { - float: left; - overflow: hidden; - width: 21%; -} - -#mid-column .content{ - margin: 0 6px; -} - -#main-column .content { - margin-left:6px; -} - -#content-columns .block, -#page-area .content { - background: url(../img/main-corners-back.gif) left bottom repeat-x #F0F0F0; - margin-bottom: 6px; - padding: 0 11px; -} - -#content-columns .block .corners-top, -#content-columns .block .corners-bottom, -#page-area .content .corners-top, -#page-area .content .corners-bottom { - background-image: url(../img/corners-left.gif); -} - -#content-columns .block .corners-top, -#page-area .content .corners-top { - background-position:0 0; -} - -#content-columns .block .corners-bottom, -#page-area .content .corners-bottom { - background-position:0 -11px; -} - -#content-columns .block .corners-top span, -#content-columns .block .corners-bottom span, -#page-area .content .corners-top span, -#page-area .content .corners-bottom span { - background-image: url(../img/corners-right.gif); -} - -#content-columns .block .corners-top span, -#page-area .content .corners-top span { - background-position:100% 0; -} - -#content-columns .block .corners-bottom span, -#page-area .content .corners-bottom span { - background-position:100% -11px; -} - -/* set min-height for info blocks */ -#content-columns .block .info { - min-height: 127px; - height: auto!important; - height: 127px; -} - -/* news item*/ -#content-columns .news-date { - border-bottom:1px dotted #000000; - color:#A0A0A0; - padding-bottom:1em; - margin:0 0 1em 0; - text-align:right; -} - -#content-columns .news-update { - border-top:1px dotted #000000; - margin: 1.6em 0 1em 0; - padding-top:1.6em; -} - - -/* Project specific styles - *******************************/ - -/* download-button link */ -.download-button { - overflow:hidden; - margin:0 0 2em 14%; -} - -.download-button a { - background: url(../img/download-button.gif) no-repeat 100% 0; - height: 43px; - display:block; - width:76%; - text-align:center; - padding-right: 5%; /* sliding doors padding */ - text-decoration: none; -} - -.download-button a span { - background: url(../img/download-button.gif) no-repeat bottom left!important; - display: block; - font-weight:bold; - line-height: 15px; - padding: 14px 0 14px 5%; -} - -/* styles for every info-block */ -#root .content .info { - padding:.4em 1em 1.6em 1em; - position:relative; -} - -/* set default styles for elements in info blocks */ - -.content .info ul, -.content .info ol { - margin: 0 0 1em 2em; -} - -.content .info ul { - list-style-type:square; -} - -.content .info ol { - list-style-type:decimal; -} - -.content .info ul li, -.content .info ol li { - line-height:2; -} - -.content .info .simple { - list-style:none; - list-style-image:none; - margin: 0 0 1em 1em; -} -.content .info .simple li { - line-height:1.2; -} - -.content .info .simplelist li { - line-height:1.2; -} - -.content .info h3 { - font-size:1.17em; - font-weight:bold; - line-height:1.3; -} - -.content .info h4 { - font-size:1em; - font-weight:bold; -} - -.content .info h3 a { - color:#000; -} - - -/* right column specific styles */ -.events { - border-top:1px dotted #000000; - margin: 1.6em 0 1em 0; - padding-top:1.6em; -} - -.info .events ul.simple { - margin-left:0; -} - -.info .events h3 { - margin-bottom:1em; -} - -.upcoming-events { - padding-bottom:1.4em; -} - -.calendar { - background: #DADADA; - margin-bottom: 6px; - padding: 0 11px; -} - -.calendar h4 { - line-height:1; -} - -.calendar p { - margin:1em 0 0 0; - text-align:center; -} - -.calendar .year { - width:38%; -} - -.calendar .month { - margin-right:2%; - width:58%; -} - -#right-column .calendar .corners-top, -#right-column .calendar .corners-bottom { - background-repeat:no-repeat; - background-image: url(../img/corners-left.gif); -} - -#right-column .calendar .corners-top { - background-position:0 -110px; -} - -#right-column .calendar .corners-bottom { - background-position:0 -121px; -} - -#right-column .calendar .corners-top span, -#right-column .calendar .corners-bottom span { - background-repeat:no-repeat; - background-image: url(../img/corners-right.gif); -} - -#right-column .calendar .corners-top span { - background-position:100% -110px; -} - -#right-column .calendar .corners-bottom span { - background-position:100% -121px; -} - -/* Main area - *******************************/ -#main-column .func-descr, -#main-column .func-date { - line-height:1; - margin:0; -} - -#main-column .func-ver { - margin-bottom:0; -} - -#main-column .func-date span { - color:#888; -} - -#main-column .func-descr { - font-size:1.17em; - font-style:normal; -} -#main-column .func-date { - text-align:right; -} - -#main-column h4 { - padding:1.2em 0; -} - -#main-column .info-block h4 { - padding:0 0 1em 0; -} - -#main-column .info-block, -#main-column .warning, -#main-column .notes, -#main-column dd { - background:#ffffff; - padding:1em; - margin-bottom:1em; - border-bottom:1px solid #D0D0D0; -} - -#main-column dt { - line-height:1.6; -} - -#main-column .warning { - color:#6F0000; -} - -#main-column .notes { - color:#A2754B; -} - -/* Function list - *******************************/ -#functions-list { - margin:2em 0 0 1em; - font-weight:bold; - list-style:none; -} - -#functions-list li { - line-height:1; - padding:0 0 1em 14px; - background:url(../img/block_sprites.gif) -14px -131px no-repeat; -} - -#functions-list li li { - padding-bottom:6px; - list-style:none; - background:none; -} - -#functions-list li li a { - text-decoration:none; -} - -#functions-list ul { - margin: 1em 0 1em -14px; - font-weight:normal; - list-style:none; -} - -#functions-list li .sel { - background:url(../img/block_sprites.gif) 0 -147px no-repeat; -} - -#functions-list li .sel a { - color:#000; - font-weight:bold; -} - - -/* Contributed Notes - *******************************/ -.add-note { - float:right; - padding:12px 0; - line-height:1; - font-weight:bold; - background:url(../img/../img/block_sprites.gif) 100% 6px no-repeat; -} - -.add-note a { - padding-right:34px; - -} - -#contributed-notes { - margin:0; - list-style:none; -} - -#contributed-notes li { - padding-top:12px; -} - -#contributed-notes .username { - background:url(../img/note-username-back.jpg) bottom right no-repeat; - color:#808080; - line-height:1.2; - padding:0 60px 6px 0; - float:left; -} - -#contributed-notes .username strong { - font-size:1.08em; -} - -#contributed-notes .username a { - font-size:.83em; -} - -#contributed-notes .ncontent { - clear:left; -} - -#contributed-notes .note { - padding:0 11px; - line-height:1.2; - background:url(../img/note-corners-back.gif) 0 100% repeat-x #FFFFFF; -} - -#contributed-notes .note .corners-top, -#contributed-notes .note .corners-bottom { - background-image: url(../img/corners-left.gif); -} - -#contributed-notes .note .corners-top { - background-position:0 -66px; -} - -#contributed-notes .note .corners-bottom { - background-position:0 -77px; -} - -#contributed-notes .note .corners-top span, -#contributed-notes .note .corners-bottom span { - background-image: url(../img/corners-right.gif); -} - -#contributed-notes .note .corners-top span { - background-position:100% -66px; -} - -#contributed-notes .note .corners-bottom span { - background-position:100% -77px; -} - -/* Forms - *******************************/ -.form dt { - width:20%; - font-weight:bold; - float:left; - padding-bottom:1em; -} - -.form dd { - margin-left:20%; - padding-bottom:1em; -} - -.form .max{ - width:50%; -} - -.errors { - border:1px dotted #ff0000; - padding:1em; - list-style:inside; - margin-left:0!important; -} - - -/* Footer - *******************************/ -#footer { - font-size: 1.1em; - padding: 0 11px; - background: url(../img/footer-back.gif) left bottom repeat-x #CECECE; -} - -#footer .corners-top, -#footer .corners-bottom { - background-image: url(../img/corners-left.gif); -} - -#footer .corners-top { - background-position:0 -88px; -} - -#footer .corners-bottom { - background-position:0 -99px; -} - -#footer .corners-top span, -#footer .corners-bottom span { - background-image: url(../img/corners-right.gif); -} - -#footer .corners-top span { - background-position:100% -88px; -} - -#footer .corners-bottom span { - background-position:100% -99px; -} - -#footer .info { - line-height:1.4; - padding:18px 12px; -} - -#copyright { - float:left; -} - -#footer-menu { - text-align:right; -} - -#footer-menu ul { - display:inline; - color: #6280B2; -} - -#footer-menu ul li { - display:inline; - border-right:1px solid #6280B2; - padding: 0 1%; -} - -#footer-menu ul .last { - border:0; - padding-right:0; -} - -#footer-menu ul .first { - padding-left:0; -} - -#footer-menu small { - color:#7C7C7C; -} - -#footer-menu small a { - color:#000; -} \ No newline at end of file diff --git a/design/css/handfield.css b/design/css/handfield.css deleted file mode 100644 index 046c8c3..0000000 --- a/design/css/handfield.css +++ /dev/null @@ -1,9 +0,0 @@ -/* Screen version -*******************************/ -@import 'reset.css'; - -@import 'base.css'; - -@import 'content.css'; - -@import 'helpers.css'; \ No newline at end of file diff --git a/design/css/helpers.css b/design/css/helpers.css deleted file mode 100644 index 9b452f4..0000000 --- a/design/css/helpers.css +++ /dev/null @@ -1,67 +0,0 @@ -/* Code colors -*******************************/ -.default { color:#0000BB; } -.keyword { color:#009900; } -.string { color:#BB0000; } -.comment { color:#FF9900; } - -/* Text size -*******************************/ -.em18 { font-size: 1.8em; } -.em16 { font-size: 1.6em; } -.em12 { font-size: 1.2em; } -.em11 { font-size: 1.1em; } -.em10 { font-size: 1.0em; } -.em9 { font-size: 0.9em; } - -/* Text decorations -*******************************/ -.bold { font-weight: bold; } -.normal { font-weight: normal; } -.italic { font-style: italic } -.underline { text-decoration: underline; } - -/* Float -*******************************/ -.f-right { float: right; } -.f-left { float: left; } -.f-none { float: none; } - -/* Text align -*******************************/ -.t-right { text-align: right; } -.t-left { text-align: left; } -.t-center { text-align: center; } -.t-justify { text-align: justify; } - -/* Width -*******************************/ -.w_25 { width:2.5em; } -.w_30 { width:3em; } -.w_50 { width:5em; } -.w_70 { width:7em; } -.w_100 { width:10em; } -.w_150 { width:15em; } -.w_200 { width:20em; } -.w_250 { width:25em; } -.w_300 { width:30em; } - -/* Text transform -*******************************/ -.lower { text-transform: lowercase; } -.upper { text-transform: uppercase; } -.capitalize { text-transform: capitalize; } - -/* Other -*******************************/ -.clear:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden -} - -.zoom{ - overflow:hidden; -} \ No newline at end of file diff --git a/design/css/print.css b/design/css/print.css deleted file mode 100644 index f34c463..0000000 --- a/design/css/print.css +++ /dev/null @@ -1,89 +0,0 @@ -body { - margin:.2in .55in; - padding:0; - font:12pt "Times New Roman", serif; - } - -/* Hide and reset blocks - *******************************/ -#mid-column, -#main-column, -#right-column, -#header, -#content { - margin:0; - list-style:none; - -} - -#left-column, -#footer, -.adv-block, -#main-menu, -#search-box, -#news-line, -.releases, -.calendar, -.add-event, -.add-note { - display:none; -} - -/* Links decoration - *******************************/ -a { - color:black; - text-decoration:none; - } -a img { - border-width:0; - } - -/* Headings - *******************************/ -h1, h2, h3,h4 { - margin:1em 0 .5em; - font-family:Georgia,Serif; - font-weight:normal; - clear:both; - } - h1 { - margin-top:.5em; - font-size:180%; - } - h2 { - font-size:240%; - margin:.3em 0 0 0; - padding-bottom:0; - } - h3 { - font-size:150%; - margin-bottom:0; - } - - h4 { - font-size:120%; - margin-bottom:0; - } -p{ - margin:0 0 .6em 0; - } -blockquote{ - font-style:italic; - } -h3+blockquote, h2+blockquote, p+ul, h2+ul, h3+ul{ - margin-top:.2em; - } - -/* Etc - *******************************/ -.content a[href]:after, -.secondary a[href]:after, -#footer a[href]:after { - content: " (" attr(href) ") "; - font-size: 90%; - } -.content a[href^="/"]:after, -.secondary a[href^="/"]:after { - content: " (http://php.net/" attr(href) ") "; - } \ No newline at end of file diff --git a/design/css/reset.css b/design/css/reset.css deleted file mode 100644 index 952bffd..0000000 --- a/design/css/reset.css +++ /dev/null @@ -1,44 +0,0 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { -margin: 0; -padding: 0; -border: 0; -outline: 0; -font-weight: inherit; -font-style: inherit; -font-size: 100%; -font-family: inherit; -vertical-align: baseline; -} -:focus { -outline: 0; -} -body { -line-height: 1; -color: black; -background: white; -} -ol, ul { -list-style: none; -} -table { -border-collapse: separate; -border-spacing: 0; -} -caption, th, td { -text-align: left; -font-weight: normal; -} -blockquote:before, blockquote:after, -q:before, q:after { -content: ""; -} -blockquote, q { -quotes: "" ""; -} diff --git a/design/css/screen.css b/design/css/screen.css deleted file mode 100644 index 046c8c3..0000000 --- a/design/css/screen.css +++ /dev/null @@ -1,9 +0,0 @@ -/* Screen version -*******************************/ -@import 'reset.css'; - -@import 'base.css'; - -@import 'content.css'; - -@import 'helpers.css'; \ No newline at end of file diff --git a/design/css/style.css b/design/css/style.css new file mode 100644 index 0000000..e6816e9 --- /dev/null +++ b/design/css/style.css @@ -0,0 +1,219 @@ +@media screen { +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;margin:0;padding:0;} +body{line-height:1;background:#E2E2E2;color:#000;font-size:62.5%;text-align:left;font-family:Tahoma, Arial, sans-serif, serif, monospace;} +ol,ul{list-style:none;} +table{border-collapse:separate;border-spacing:0;} +caption,th,td{text-align:left;font-weight:400;} +blockquote:before,blockquote:after,q:before,q:after{content:"";} +blockquote,q{quotes:"" "";} +html{height:100%;margin-bottom:1px;} +input,select{font-family:Tahoma, Arial, Helvetica, sans-serif;} +textarea,pre,tt,kbd,var,code{font-family:"Courier New", Courier, monospace;} +h1{font-size:1.7em;line-height:2.4em;} +h2{font-size:1.6em;line-height:2.2em;} +h3{font-size:1.4em;line-height:2em;} +h4{font-size:1.3em;line-height:1.8em;} +h5{font-size:1.2em;line-height:1.6em;} +h6{font-size:1.1em;line-height:1.2em;} +p{text-align:left;margin:0 0 1em;} +p.first{margin-top:1em;} +p.img{float:left;margin:0 1em 1em 0;padding:0;} +p.top-border{border-top:1px dotted #000;padding-top:1em;} +blockquote{border:1px dotted #666;margin:0 0 2em 2em;padding:1em;} +pre{border:1px solid #ddd;margin-bottom:1.2em;padding:1.2em;} +del{text-decoration:line-through;} +sub{vertical-align:sub;font-size:.9em;} +sup{vertical-align:super;font-size:.9em;} +acronym{border-bottom:1px dotted #666;} +cite{font-style:italic;quotes:"\00ab" "\00bb";} +cite:after,q:after{content:"\00bb";} +cite:before,q:before{content:"\00ab";} +hr{color:#fff;background:transparent;border:0;border-bottom:1px #000 dotted;margin:0 0 .5em;padding:0 0 .5em;} +a:link,a:visited,a:focus,a:hover,a:active{color:#6181B7;text-decoration:underline;cursor:pointer;} +img{vertical-align:middle;outline:0;} +input,select,textarea{font-size:1em;vertical-align:baseline;} +input.text,input.file{cursor:text;} +input.button{cursor:pointer;} +input.radio,input.checkbox{border:0;padding:0;} +#root{padding-bottom:10px;min-width:970px;margin:10px 10px 0;} +.corners-top,.corners-bottom,.corners-top span,.corners-bottom span{font-size:1px;line-height:1px;display:block;height:11px;background-repeat:no-repeat;background-image:none;} +.corners-top{margin:0 -11px;} +.corners-bottom{clear:both;margin:0 -11px;} +#header{background:url(../img/header-corners.jpg) repeat-x 0 -232px;height:116px;margin-bottom:6px;clear:both;} +#header .side-left,#header .side-right{display:block;width:13px;height:116px;background:url(../img/header-corners.jpg) no-repeat;} +#header .side-left{background-position:0 0;float:left;} +#header .side-right{background-position:100% -116px;float:right;} +#header .content{margin:0 13px;padding:20px 11px;} +#header h1 a{background:url(../img/header-logo.jpg) left top no-repeat;float:left;width:434px;height:76px;text-indent:-9999px;} +#search-box{text-align:right;margin-left:440px;font-size:1.1em;color:#B5B5E9;padding:26px 0;} +#search-box input.text{width:20%;line-height:1;padding:0;} +#search-box select{width:20%;} +#search-box input.button{background:url(../img/block_sprites.gif) 0 -104px no-repeat;width:69px;border:0;height:24px;line-height:1.2;color:#56518B;} +#main-menu,#news-line,#main-column .adv-block{font-size:1.1em;line-height:1.2;margin-bottom:6px;background:none left bottom repeat-x #F6F6F6;padding:0 11px;} +#main-menu,#main-column .adv-block{background-image:url(../img/menu-corners-back.gif);clear:both;} +#news-line{background-image:url(../img/news-line-back.gif);} +#main-menu .corners-top,#main-column .adv-block .corners-top{background-position:0 -22px;} +#main-menu .corners-bottom,#main-column .adv-block .corners-bottom{background-position:0 -33px;} +#main-menu .corners-top span,#main-column .adv-block .corners-top span{background-position:100% -22px;} +#main-menu .corners-bottom span,#main-column .adv-block .corners-bottom span{background-position:100% -33px;} +#main-menu ul{padding:8px 0;} +#news-line ul ul,#main-menu ul{margin-left:12px;} +#news-line ul ul{display:inline;} +#news-line li li,#main-menu li{display:inline;border-right:1px solid #CDCDCD;padding:0 1%;} +#news-line li .last,#main-menu .last{border:0;} +#news-line ul span{float:left;margin-left:12px;width:140px;} +#news-line .corners-top{background-position:0 -44px;} +#news-line .corners-bottom{background-position:0 -55px;} +#news-line .corners-top span{background-position:100% -44px;} +#news-line .corners-bottom span{background-position:100% -55px;} +#main-column .adv-block{font-size:.92em;line-height:1.4em;} +#main-column .adv-block .prev{background:url(../img/block_sprites.gif) no-repeat 0 -27px;float:left;padding:5px 0 6px 40px;} +#main-column .adv-block .next{background:url(../img/block_sprites.gif) no-repeat 100% -51px;float:right;padding:5px 40px 6px 0;} +#main-column .adv-block p{text-align:center;margin:0 160px;} +#main-column .adv-block select{width:25%;} +#main-column .adv-block input{background:url(../img/block_sprites.gif) 0 -77px no-repeat;width:57px;height:26px;border:0;color:#6181B7;text-indent:-9999px;cursor:pointer;} +#content{font-size:1.2em;line-height:1.4;} +#left-column{float:left;overflow:hidden;width:22%;} +#mid-column{float:left;overflow:hidden;width:57%;} +#main-column{float:left;overflow:hidden;width:78%;} +#page-area{overflow:hidden;width:100%;} +#right-column{float:left;overflow:hidden;width:21%;} +#mid-column .content{margin:0 6px;} +#main-column .content{margin-left:6px;} +#content-columns .block,#page-area .content{background:url(../img/main-corners-back.gif) 0 100% repeat-x #F0F0F0;margin-bottom:6px;padding:0 11px;} +#content-columns .block .corners-top,#page-area .content .corners-top{background-position:0 0;} +#content-columns .block .corners-bottom,#page-area .content .corners-bottom{background-position:0 -11px;} +#content-columns .block .corners-top span,#page-area .content .corners-top span{background-position:100% 0;} +#content-columns .block .corners-bottom span,#page-area .content .corners-bottom span{background-position:100% -11px;} +#content-columns .block .info{min-height:127px;height:auto!important;} +#content-columns .news-date{border-bottom:1px dotted #000;color:#A0A0A0;padding-bottom:1em;text-align:right;margin:0 0 1em;} +.download-button{overflow:hidden;margin:0 0 2em 14%;} +.download-button a{background:url(../img/download-button.gif) no-repeat 100% 0;height:43px;display:block;width:76%;text-align:center;padding-right:5%;text-decoration:none;} +.download-button a span{background:url(../img/download-button.gif) no-repeat 0 100%!important;display:block;font-weight:700;line-height:15px;padding:14px 0 14px 5%;} +#root .content .info{position:relative;padding:.4em 1em 1.6em;} +.content .info ul,.content .info ol{margin:0 0 1em 2em;} +.content .info ul{list-style-type:square;} +.content .info ol{list-style-type:decimal;} +.content .info ul li,.content .info ol li{line-height:2;} +.content .info .simple{list-style:none;list-style-image:none;margin:0 0 1em 1em;} +.content .info h3{font-size:1.17em;font-weight:700;line-height:1.3;} +.content .info h4{font-size:1em;font-weight:700;} +.info .events ul.simple{margin-left:0;} +.info .events h3{margin-bottom:1em;} +.upcoming-events{padding-bottom:1.4em;} +.calendar{background:#DADADA;margin-bottom:6px;padding:0 11px;} +.calendar h4{line-height:1;} +.calendar p{text-align:center;margin:1em 0 0;} +.calendar .year{width:38%;} +.calendar .month{margin-right:2%;width:58%;} +#right-column .calendar .corners-top,#right-column .calendar .corners-bottom{background-repeat:no-repeat;background-image:url(../img/corners-left.gif);} +#right-column .calendar .corners-top{background-position:0 -110px;} +#right-column .calendar .corners-bottom{background-position:0 -121px;} +#right-column .calendar .corners-top span,#right-column .calendar .corners-bottom span{background-repeat:no-repeat;background-image:url(../img/corners-right.gif);} +#right-column .calendar .corners-top span{background-position:100% -110px;} +#right-column .calendar .corners-bottom span{background-position:100% -121px;} +#main-column .func-descr,#main-column .func-date{line-height:1;margin:0;} +#main-column .func-date span{color:#888;} +#main-column .func-descr{font-size:1.17em;font-style:normal;} +#main-column h4{padding:1.2em 0;} +#main-column .info-block h4{padding:0 0 1em;} +#main-column .info-block,#main-column .warning,#main-column .notes,#main-column dd{background:#fff;margin-bottom:1em;border-bottom:1px solid #D0D0D0;padding:1em;} +#main-column dt{line-height:1.6;} +#main-column .warning{color:#6F0000;} +#main-column .notes{color:#A2754B;} +#functions-list{font-weight:700;list-style:none;margin:2em 0 0 1em;} +#functions-list li{line-height:1;background:url(../img/block_sprites.gif) -14px -131px no-repeat;padding:0 0 1em 14px;} +#functions-list li li{padding-bottom:6px;list-style:none;background:none;} +#functions-list ul{font-weight:400;list-style:none;margin:1em 0 1em -14px;} +#functions-list li .sel{background:url(../img/block_sprites.gif) 0 -147px no-repeat;} +#functions-list li .sel a{color:#000;font-weight:700;} +.add-note{float:right;line-height:1;font-weight:700;background:url(../img/block_sprites.gif) 100% 6px no-repeat;padding:12px 0;} +.add-note a{padding-right:34px;} +#contributed-notes{list-style:none;margin:0;} +#contributed-notes li{padding-top:12px;} +#contributed-notes .username{background:url(../img/usernote.gif) 100% 100% no-repeat;color:gray;line-height:1.2;float:left;padding:0 60px 6px 0;} +#contributed-notes .username strong{font-size:1.08em;} +#contributed-notes .username a{font-size:.83em;} +#contributed-notes .ncontent{clear:left;} +#contributed-notes .note{line-height:1.2;background:url(../img/note-corners-back.gif) 0 100% repeat-x #FFF;padding:0 11px;} +#contributed-notes .note .corners-top{background-position:0 -66px;} +#contributed-notes .note .corners-bottom{background-position:0 -77px;} +#contributed-notes .note .corners-top span{background-position:100% -66px;} +#contributed-notes .note .corners-bottom span{background-position:100% -77px;} +.form dt{width:20%;font-weight:700;float:left;padding-bottom:1em;} +.form dd{margin-left:20%;padding-bottom:1em;} +.form .max{width:50%;} +.errors{border:1px dotted red;list-style:inside;margin-left:0!important;padding:1em;} +#footer{font-size:1.1em;background:url(../img/footer-back.gif) 0 100% repeat-x #CECECE;padding:0 11px;} +#footer .corners-top{background-position:0 -88px;} +#footer .corners-bottom{background-position:0 -99px;} +#footer .corners-top span{background-position:100% -88px;} +#footer .corners-bottom span{background-position:100% -99px;} +#footer .info{line-height:1.4;padding:18px 12px;} +#footer-menu ul{display:inline;color:#6280B2;} +#footer-menu ul li{display:inline;border-right:1px solid #6280B2;padding:0 1%;} +#footer-menu ul .last{border:0;padding-right:0;} +#footer-menu small{color:#7C7C7C;} +.default{color:#00B;} +.keyword{color:#090;} +.string{color:#B00;} +.comment{color:#F90;} +.em18{font-size:1.8em;} +.em16{font-size:1.6em;} +.em12{font-size:1.2em;} +.em11{font-size:1.1em;} +.em10{font-size:1em;} +.underline{text-decoration:underline;} +.f-right{float:right;} +.f-none{float:none;} +.t-left{text-align:left;} +.t-center{text-align:center;} +.t-justify{text-align:justify;} +.w_25{width:2.5em;} +.w_30{width:3em;} +.w_50{width:5em;} +.w_70{width:7em;} +.w_100{width:10em;} +.w_150{width:15em;} +.w_200{width:20em;} +.w_250{width:25em;} +.w_300{width:30em;} +.lower{text-transform:lowercase;} +.upper{text-transform:uppercase;} +.capitalize{text-transform:capitalize;} +.clear:after{content:".";display:block;height:0;clear:both;visibility:hidden;} +:focus,a:active,a:focus{outline:0;} +h1,h2,h3,h4,h5,h6,.normal{font-weight:400;} +p.last,p.cite,#main-column .func-ver{margin-bottom:0;} +strong,.bold{font-weight:700;} +em,dfn,q,.italic{font-style:italic;} +small,.em9{font-size:.9em;} +ins,#functions-list li li a{text-decoration:none;} +#search-box span,#search-box label{padding-left:8px;} +#main-menu .corners-top,#main-menu .corners-bottom,#main-column .adv-block .corners-top,#main-column .adv-block .corners-bottom,#news-line .corners-top,#news-line .corners-bottom,#content-columns .block .corners-top,#content-columns .block .corners-bottom,#page-area .content .corners-top,#page-area .content .corners-bottom,#contributed-notes .note .corners-top,#contributed-notes .note .corners-bottom,#footer .corners-top,#footer .corners-bottom{background-image:url(../img/corners-left.gif);} +#main-menu .corners-top span,#main-menu .corners-bottom span,#main-column .adv-block .corners-top span,#main-column .adv-block .corners-bottom span,#news-line .corners-top span,#news-line .corners-bottom span,#content-columns .block .corners-top span,#content-columns .block .corners-bottom span,#page-area .content .corners-top span,#page-area .content .corners-bottom span,#contributed-notes .note .corners-top span,#contributed-notes .note .corners-bottom span,#footer .corners-top span,#footer .corners-bottom span{background-image:url(../img/corners-right.gif);} +#news-line li .first,#main-menu .first,#footer-menu ul .first{padding-left:0;} +#content-columns,.zoom{overflow:hidden;} +#content-columns .news-update,.events{border-top:1px dotted #000;padding-top:1.6em;margin:1.6em 0 1em;} +.content .info .simple li,.content .info .simplelist li{line-height:1.2;} +.content .info h3 a,#footer-menu small a{color:#000;} +#main-column .func-date,#footer-menu,.t-right{text-align:right;} +#copyright,.f-left{float:left;} +} +@media print { +body{font:12pt "Times New Roman", serif;margin:.2in .55in;padding:0;} +#mid-column,#main-column,#right-column,#header,#content{list-style:none;margin:0;} +#left-column,#footer,.adv-block,#main-menu,#search-box,#news-line,.releases,.calendar,.add-event,.add-note{display:none;} +a{color:#000;text-decoration:none;} +a img{border-width:0;} +h1,h2,h3,h4{font-family:Georgia,Serif;font-weight:400;clear:both;margin:1em 0 .5em;} +h1{margin-top:.5em;font-size:180%;} +h2{font-size:240%;padding-bottom:0;margin:.3em 0 0;} +h3{font-size:150%;margin-bottom:0;} +h4{font-size:120%;margin-bottom:0;} +p{margin:0 0 .6em;} +blockquote{font-style:italic;} +h3+blockquote,h2+blockquote,p+ul,h2+ul,h3+ul{margin-top:.2em;} +.content a[href]:after,.secondary a[href]:after,#footer a[href]:after{content:" (" attr(href) ") ";font-size:90%;} +.content a[href^="/"]:after,.secondary a[href^="/"]:after{content:" (http://php.net/" attr(href) ") ";} +} diff --git a/design/css/style_uncompressed.css b/design/css/style_uncompressed.css new file mode 100644 index 0000000..5e0a8eb --- /dev/null +++ b/design/css/style_uncompressed.css @@ -0,0 +1,1147 @@ +@media screen { + /* Reset styles + *******************************/ + html, body, div, span, applet, object, iframe, + h1, h2, h3, h4, h5, h6, p, blockquote, pre, + a, abbr, acronym, address, big, cite, code, + del, dfn, em, font, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; + } + :focus { + outline: 0; + } + body { + line-height: 1; + color: black; + background: white; + } + ol, ul { + list-style: none; + } + table { + border-collapse: separate; + border-spacing: 0; + } + caption, th, td { + text-align: left; + font-weight: normal; + } + blockquote:before, blockquote:after, + q:before, q:after { + content: ""; + } + blockquote, q { + quotes: "" ""; + } + + + + /* Main styles + *******************************/ + html { + height: 100%; + margin-bottom: 1px;/* force vertical scrollbars */ + } + + body { + background: #E2E2E2; + color: #000; + font-size: 62.5%; + text-align: left; + } + + /* Default fonts + *******************************/ + body { font-family: Tahoma, Arial, sans-serif, serif, monospace } + + input, + select { font-family: Tahoma, Arial, Helvetica, sans-serif; } + + textarea, + pre, + tt, + kbd, + var, + code { font-family:"Courier New", Courier, monospace; } + + /* Header elements + *******************************/ + h1, + h2, + h3, + h4, + h5, + h6 { font-weight:normal; } + + h1 { font-size: 1.7em; line-height: 2.4em; } + h2 { font-size: 1.6em; line-height: 2.2em; } + h3 { font-size: 1.4em; line-height: 2.0em; } + h4 { font-size: 1.3em; line-height: 1.8em; } + h5 { font-size: 1.2em; line-height: 1.6em; } + h6 { font-size: 1.1em; line-height: 1.2em; } + + + /* Text elements + *******************************/ + p { margin: 0 0 1em 0; text-align: left; } + p.last, + p.cite { margin-bottom:0; } + p.first { margin-top:1em; } + p.img { float: left; margin:0 1em 1em 0; padding:0; } + p.top-border { border-top: 1px dotted #000; padding-top:1em; } + + blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } + strong { font-weight: bold; } + em { font-style: italic; } + pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } + small { font-size: .9em; } + code { /*style*/ } + ins { text-decoration:none; } /*remove underline from text*/ + del { text-decoration:line-through; } + sub { vertical-align:sub;font-size: .9em; } + sup { vertical-align:super;font-size: .9em; } + acronym { border-bottom:1px dotted #666; } + abbr { /*style*/ } + dfn { font-style:italic; } + bdo { /*style*/ } + + /*quotes*/ + q { font-style:italic; } + cite { font-style:italic; quotes: "\00ab" "\00bb"; } + cite:after, + q:after { content: "\00bb"; } + cite:before, + q:before { content: "\00ab"; } + + hr { + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 dotted; + } + + /*links*/ + a:link, + a:visited, + a:focus, + a:hover, + a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } + + a:hover { } + + a:active, + a:focus { outline: 0; } /*remove border in ff*/ + /* + a:visited { color:#849BCA } + */ + + + /* Images + *******************************/ + img { vertical-align:middle; outline:0 } + + /* Form styles + *******************************/ + input, + select, + textarea { + font-size:1.0em;/*by default font-size is bigger*/ + vertical-align:baseline; + } + + input.text, + input.file { cursor:text; } + + input.button { cursor:pointer; } + + input.radio, + input.checkbox { border: 0;padding: 0; } + + /* Main styles + *******************************/ + #root { + margin: 10px 10px 0; + padding-bottom:10px; + min-width: 970px; + } + + /* Corners + *******************************/ + .corners-top, + .corners-bottom, + .corners-top span, + .corners-bottom span { + font-size: 1px; + line-height: 1px; + display: block; + height: 11px; + background-repeat: no-repeat; + background-image: none; + } + + .corners-top { + margin: 0 -11px; + } + + .corners-bottom { + margin: 0 -11px; + clear: both; + } + + /* Header + *******************************/ + #header { + background: url(../img/header-corners.jpg) repeat-x 0 -232px; + height: 116px; + margin-bottom: 6px; + clear:both; + } + + #header .side-left, + #header .side-right { + display: block; + width: 13px; + height: 116px; + background: url(../img/header-corners.jpg) no-repeat; + } + + #header .side-left { + background-position: 0 0; + float: left; + } + #header .side-right { + background-position: 100% -116px; + float: right; + } + + #header .content { + margin: 0 13px; + padding:20px 11px; + } + + #header h1 a { + background:url(../img/header-logo.jpg) left top no-repeat; + float:left; + width:434px; + height:76px; + text-indent: -9999px; + } + + /* search box */ + #search-box { + text-align:right; + margin-left:440px; + padding:26px 0; + font-size:1.1em; + color:#B5B5E9; + } + + #search-box span { + padding-left:8px; + } + + #search-box label { + padding-left:8px; + } + + #search-box input.text, + #search-box select { + } + + #search-box input.text { + width:20%; + line-height:1; + padding:0; + } + + #search-box select { + width:20%; + } + + #search-box input.button { + background:url(../img/block_sprites.gif) 0 -104px no-repeat; + width:69px; + border:0; + height:24px; + line-height:1.2; + color:#56518B; + } + + + /* Main menu & Newsline styles + *******************************/ + #main-menu, + #news-line, + #main-column .adv-block { + font-size: 1.1em; + line-height:1.2; + margin-bottom: 6px; + padding: 0 11px; + background: none left bottom repeat-x #F6F6F6; + } + + #main-menu, + #main-column .adv-block { + background-image: url(../img/menu-corners-back.gif); + clear:both; + } + + #news-line { + background-image: url(../img/news-line-back.gif); + } + + /* main corners */ + #main-menu .corners-top, + #main-menu .corners-bottom, + #main-column .adv-block .corners-top, + #main-column .adv-block .corners-bottom{ + background-image: url(../img/corners-left.gif); + } + + #main-menu .corners-top, + #main-column .adv-block .corners-top { + background-position:0 -22px; + } + + #main-menu .corners-bottom, + #main-column .adv-block .corners-bottom { + background-position:0 -33px; + } + + #main-menu .corners-top span, + #main-menu .corners-bottom span, + #main-column .adv-block .corners-top span, + #main-column .adv-block .corners-bottom span { + background-image: url(../img/corners-right.gif); + } + + #main-menu .corners-top span, + #main-column .adv-block .corners-top span { + background-position:100% -22px; + } + + #main-menu .corners-bottom span, + #main-column .adv-block .corners-bottom span { + background-position:100% -33px; + } + /* end main corners */ + + #main-menu ul { + padding:8px 0; + } + + #news-line ul ul, + #main-menu ul { + margin-left: 12px; + } + + #news-line ul ul{ + display:inline; + } + + #news-line li li, + #main-menu li { + display: inline; + padding:0 1%; + border-right:1px solid #CDCDCD; + } + + #news-line li .first, + #main-menu .first { + padding-left:0; + } + + #news-line li .last, + #main-menu .last { + border:0; + } + + #news-line ul span { + float: left; + margin-left: 12px; + width: 140px; + } + + #news-line .corners-top, + #news-line .corners-bottom { + background-image: url(../img/corners-left.gif); + } + + #news-line .corners-top { + background-position:0 -44px; + } + + #news-line .corners-bottom { + background-position:0 -55px; + } + + #news-line .corners-top span, + #news-line .corners-bottom span { + background-image: url(../img/corners-right.gif); + } + + #news-line .corners-top span { + background-position:100% -44px; + } + + #news-line .corners-bottom span { + background-position:100% -55px; + } + + /* main column top and bottom blocks */ + #main-column .adv-block { + font-size:0.92em; + line-height:1.4em; + } + + #main-column .adv-block a { + } + + #main-column .adv-block .prev { + background:url(../img/block_sprites.gif) no-repeat 0 -27px; + float:left; + padding:5px 0 6px 40px; + } + + #main-column .adv-block .next { + background:url(../img/block_sprites.gif) no-repeat 100% -51px; + float:right; + padding:5px 40px 6px 0; + } + + #main-column .adv-block p { + text-align:center; + margin:0 160px; + } + + #main-column .adv-block select { + width:25%; + } + + #main-column .adv-block input { + background:url(../img/block_sprites.gif) 0 -77px no-repeat; + width:57px; + height:26px; + border:0; + color:#6181B7; + text-indent: -9999px; + cursor:pointer; + } + + /* Content + *******************************/ + #content { + font-size: 1.2em; + line-height:1.4; + } + + #content-columns { + overflow: hidden; + } + + /* every left column */ + #left-column { + float: left; + overflow: hidden; + width: 22%; + } + + /* mid column on first page */ + #mid-column { + float: left; + overflow: hidden; + width: 57%; + } + + /* main column on other pages */ + #main-column { + float: left; + overflow: hidden; + width: 78%; + } + + /* simple page area */ + #page-area { + overflow: hidden; + width: 100%; + } + + /* right column on first page */ + #right-column { + float: left; + overflow: hidden; + width: 21%; + } + + #mid-column .content{ + margin: 0 6px; + } + + #main-column .content { + margin-left:6px; + } + + #content-columns .block, + #page-area .content { + background: url(../img/main-corners-back.gif) 0 100% repeat-x #F0F0F0; + margin-bottom: 6px; + padding: 0 11px; + } + + #content-columns .block .corners-top, + #content-columns .block .corners-bottom, + #page-area .content .corners-top, + #page-area .content .corners-bottom { + background-image: url(../img/corners-left.gif); + } + + #content-columns .block .corners-top, + #page-area .content .corners-top { + background-position:0 0; + } + + #content-columns .block .corners-bottom, + #page-area .content .corners-bottom { + background-position:0 -11px; + } + + #content-columns .block .corners-top span, + #content-columns .block .corners-bottom span, + #page-area .content .corners-top span, + #page-area .content .corners-bottom span { + background-image: url(../img/corners-right.gif); + } + + #content-columns .block .corners-top span, + #page-area .content .corners-top span { + background-position:100% 0; + } + + #content-columns .block .corners-bottom span, + #page-area .content .corners-bottom span { + background-position:100% -11px; + } + + /* set min-height for info blocks */ + #content-columns .block .info { + min-height: 127px; + height: auto!important; + height: 127px; + } + + /* news item*/ + #content-columns .news-date { + border-bottom:1px dotted #000000; + color:#A0A0A0; + padding-bottom:1em; + margin:0 0 1em 0; + text-align:right; + } + + #content-columns .news-update { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; + } + + + /* Project specific styles + *******************************/ + + /* download-button link */ + .download-button { + overflow:hidden; + margin:0 0 2em 14%; + } + + .download-button a { + background: url(../img/download-button.gif) no-repeat 100% 0; + height: 43px; + display:block; + width:76%; + text-align:center; + padding-right: 5%; /* sliding doors padding */ + text-decoration: none; + } + + .download-button a span { + background: url(../img/download-button.gif) no-repeat 0 100%!important; + display: block; + font-weight:bold; + line-height: 15px; + padding: 14px 0 14px 5%; + } + + /* styles for every info-block */ + #root .content .info { + padding:.4em 1em 1.6em 1em; + position:relative; + } + + /* set default styles for elements in info blocks */ + + .content .info ul, + .content .info ol { + margin: 0 0 1em 2em; + } + + .content .info ul { + list-style-type:square; + } + + .content .info ol { + list-style-type:decimal; + } + + .content .info ul li, + .content .info ol li { + line-height:2; + } + + .content .info .simple { + list-style:none; + list-style-image:none; + margin: 0 0 1em 1em; + } + .content .info .simple li { + line-height:1.2; + } + + .content .info .simplelist li { + line-height:1.2; + } + + .content .info h3 { + font-size:1.17em; + font-weight:bold; + line-height:1.3; + } + + .content .info h4 { + font-size:1em; + font-weight:bold; + } + + .content .info h3 a { + color:#000; + } + + + /* right column specific styles */ + .events { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; + } + + .info .events ul.simple { + margin-left:0; + } + + .info .events h3 { + margin-bottom:1em; + } + + .upcoming-events { + padding-bottom:1.4em; + } + + .calendar { + background: #DADADA; + margin-bottom: 6px; + padding: 0 11px; + } + + .calendar h4 { + line-height:1; + } + + .calendar p { + margin:1em 0 0 0; + text-align:center; + } + + .calendar .year { + width:38%; + } + + .calendar .month { + margin-right:2%; + width:58%; + } + + #right-column .calendar .corners-top, + #right-column .calendar .corners-bottom { + background-repeat:no-repeat; + background-image: url(../img/corners-left.gif); + } + + #right-column .calendar .corners-top { + background-position:0 -110px; + } + + #right-column .calendar .corners-bottom { + background-position:0 -121px; + } + + #right-column .calendar .corners-top span, + #right-column .calendar .corners-bottom span { + background-repeat:no-repeat; + background-image: url(../img/corners-right.gif); + } + + #right-column .calendar .corners-top span { + background-position:100% -110px; + } + + #right-column .calendar .corners-bottom span { + background-position:100% -121px; + } + + /* Main area + *******************************/ + #main-column .func-descr, + #main-column .func-date { + line-height:1; + margin:0; + } + + #main-column .func-ver { + margin-bottom:0; + } + + #main-column .func-date span { + color:#888; + } + + #main-column .func-descr { + font-size:1.17em; + font-style:normal; + } + #main-column .func-date { + text-align:right; + } + + #main-column h4 { + padding:1.2em 0; + } + + #main-column .info-block h4 { + padding:0 0 1em 0; + } + + #main-column .info-block, + #main-column .warning, + #main-column .notes, + #main-column dd { + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; + } + + #main-column dt { + line-height:1.6; + } + + #main-column .warning { + color:#6F0000; + } + + #main-column .notes { + color:#A2754B; + } + + /* Function list + *******************************/ + #functions-list { + margin:2em 0 0 1em; + font-weight:bold; + list-style:none; + } + + #functions-list li { + line-height:1; + padding:0 0 1em 14px; + background:url(../img/block_sprites.gif) -14px -131px no-repeat; + } + + #functions-list li li { + padding-bottom:6px; + list-style:none; + background:none; + } + + #functions-list li li a { + text-decoration:none; + } + + #functions-list ul { + margin: 1em 0 1em -14px; + font-weight:normal; + list-style:none; + } + + #functions-list li .sel { + background:url(../img/block_sprites.gif) 0 -147px no-repeat; + } + + #functions-list li .sel a { + color:#000; + font-weight:bold; + } + + + /* Contributed Notes + *******************************/ + .add-note { + float:right; + padding:12px 0; + line-height:1; + font-weight:bold; + background:url(../img/block_sprites.gif) 100% 6px no-repeat; + } + + .add-note a { + padding-right:34px; + + } + + #contributed-notes { + margin:0; + list-style:none; + } + + #contributed-notes li { + padding-top:12px; + } + + #contributed-notes .username { + background:url(../img/usernote.gif) 100% 100% no-repeat; + color:#808080; + line-height:1.2; + padding:0 60px 6px 0; + float:left; + } + + #contributed-notes .username strong { + font-size:1.08em; + } + + #contributed-notes .username a { + font-size:.83em; + } + + #contributed-notes .ncontent { + clear:left; + } + + #contributed-notes .note { + padding:0 11px; + line-height:1.2; + background:url(../img/note-corners-back.gif) 0 100% repeat-x #FFFFFF; + } + + #contributed-notes .note .corners-top, + #contributed-notes .note .corners-bottom { + background-image: url(../img/corners-left.gif); + } + + #contributed-notes .note .corners-top { + background-position:0 -66px; + } + + #contributed-notes .note .corners-bottom { + background-position:0 -77px; + } + + #contributed-notes .note .corners-top span, + #contributed-notes .note .corners-bottom span { + background-image: url(../img/corners-right.gif); + } + + #contributed-notes .note .corners-top span { + background-position:100% -66px; + } + + #contributed-notes .note .corners-bottom span { + background-position:100% -77px; + } + + /* Forms + *******************************/ + .form dt { + width:20%; + font-weight:bold; + float:left; + padding-bottom:1em; + } + + .form dd { + margin-left:20%; + padding-bottom:1em; + } + + .form .max{ + width:50%; + } + + .errors { + border:1px dotted #ff0000; + padding:1em; + list-style:inside; + margin-left:0!important; + } + + + /* Footer + *******************************/ + #footer { + font-size: 1.1em; + padding: 0 11px; + background: url(../img/footer-back.gif) 0 100% repeat-x #CECECE; + } + + #footer .corners-top, + #footer .corners-bottom { + background-image: url(../img/corners-left.gif); + } + + #footer .corners-top { + background-position:0 -88px; + } + + #footer .corners-bottom { + background-position:0 -99px; + } + + #footer .corners-top span, + #footer .corners-bottom span { + background-image: url(../img/corners-right.gif); + } + + #footer .corners-top span { + background-position:100% -88px; + } + + #footer .corners-bottom span { + background-position:100% -99px; + } + + #footer .info { + line-height:1.4; + padding:18px 12px; + } + + #copyright { + float:left; + } + + #footer-menu { + text-align:right; + } + + #footer-menu ul { + display:inline; + color: #6280B2; + } + + #footer-menu ul li { + display:inline; + border-right:1px solid #6280B2; + padding: 0 1%; + } + + #footer-menu ul .last { + border:0; + padding-right:0; + } + + #footer-menu ul .first { + padding-left:0; + } + + #footer-menu small { + color:#7C7C7C; + } + + #footer-menu small a { + color:#000; + } + + + /* Code colors + *******************************/ + .default { color:#0000BB; } + .keyword { color:#009900; } + .string { color:#BB0000; } + .comment { color:#FF9900; } + + /* Text size + *******************************/ + .em18 { font-size: 1.8em; } + .em16 { font-size: 1.6em; } + .em12 { font-size: 1.2em; } + .em11 { font-size: 1.1em; } + .em10 { font-size: 1.0em; } + .em9 { font-size: 0.9em; } + + /* Text decorations + *******************************/ + .bold { font-weight: bold; } + .normal { font-weight: normal; } + .italic { font-style: italic } + .underline { text-decoration: underline; } + + /* Float + *******************************/ + .f-right { float: right; } + .f-left { float: left; } + .f-none { float: none; } + + /* Text align + *******************************/ + .t-right { text-align: right; } + .t-left { text-align: left; } + .t-center { text-align: center; } + .t-justify { text-align: justify; } + + /* Width + *******************************/ + .w_25 { width:2.5em; } + .w_30 { width:3em; } + .w_50 { width:5em; } + .w_70 { width:7em; } + .w_100 { width:10em; } + .w_150 { width:15em; } + .w_200 { width:20em; } + .w_250 { width:25em; } + .w_300 { width:30em; } + + /* Text transform + *******************************/ + .lower { text-transform: lowercase; } + .upper { text-transform: uppercase; } + .capitalize { text-transform: capitalize; } + + /* Other + *******************************/ + .clear:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden + } + + .zoom{ + overflow:hidden; + } + +} + + +@media print { + body { + margin:.2in .55in; + padding:0; + font:12pt "Times New Roman", serif; + } + + /* Hide and reset blocks + *******************************/ + #mid-column, + #main-column, + #right-column, + #header, + #content { + margin:0; + list-style:none; + } + + #left-column, + #footer, + .adv-block, + #main-menu, + #search-box, + #news-line, + .releases, + .calendar, + .add-event, + .add-note { + display:none; + } + + /* Links decoration + *******************************/ + a { + color:black; + text-decoration:none; + } + a img { + border-width:0; + } + + /* Headings + *******************************/ + h1, h2, h3,h4 { + margin:1em 0 .5em; + font-family:Georgia,Serif; + font-weight:normal; + clear:both; + } + h1 { + margin-top:.5em; + font-size:180%; + } + h2 { + font-size:240%; + margin:.3em 0 0 0; + padding-bottom:0; + } + h3 { + font-size:150%; + margin-bottom:0; + } + + h4 { + font-size:120%; + margin-bottom:0; + } + p{ + margin:0 0 .6em 0; + } + blockquote{ + font-style:italic; + } + h3+blockquote, h2+blockquote, p+ul, h2+ul, h3+ul{ + margin-top:.2em; + } + + /* Etc + *******************************/ + .content a[href]:after, + .secondary a[href]:after, + #footer a[href]:after { + content: " (" attr(href) ") "; + font-size: 90%; + } + .content a[href^="/"]:after, + .secondary a[href^="/"]:after { + content: " (http://php.net/" attr(href) ") "; + } +} diff --git a/design/events.html b/design/events.html index c95a847..94f1ae3 100644 --- a/design/events.html +++ b/design/events.html @@ -1,11 +1,9 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> <head> -<title>PHP: Getting Help</title> +<title>strpos - PHP: Hypertext Preprocessor</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> -<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> -<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<link type="text/css" media="all" rel="stylesheet" href="css/style.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> <![endif]--> diff --git a/design/homepage.html b/design/homepage.html index 578d85f..daa0b24 100644 --- a/design/homepage.html +++ b/design/homepage.html @@ -1,11 +1,9 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> <head> -<title>PHP: Hypertext Preprocessor</title> +<title>strpos - PHP: Hypertext Preprocessor</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> -<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> -<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<link type="text/css" media="all" rel="stylesheet" href="css/style.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> <![endif]--> diff --git a/design/img/back.gif b/design/img/back.gif new file mode 100644 index 0000000..3ce7e29 Binary files /dev/null and b/design/img/back.gif differ diff --git a/design/img/block_sprites.gif b/design/img/block_sprites.gif index d3bd450..728edd0 100644 Binary files a/design/img/block_sprites.gif and b/design/img/block_sprites.gif differ diff --git a/design/img/note-corners-back.gif b/design/img/note-corners-back.gif new file mode 100644 index 0000000..7fbec27 Binary files /dev/null and b/design/img/note-corners-back.gif differ diff --git a/design/img/usernote.gif b/design/img/usernote.gif new file mode 100644 index 0000000..8a36b9a Binary files /dev/null and b/design/img/usernote.gif differ diff --git a/design/index.html b/design/index.html index e6c6479..5a1ac74 100644 --- a/design/index.html +++ b/design/index.html @@ -1,11 +1,9 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> <head> -<title>PHP: Getting Help</title> +<title>strpos - PHP: Hypertext Preprocessor</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> -<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> -<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<link type="text/css" media="all" rel="stylesheet" href="css/style.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> <![endif]--> diff --git a/design/strpos.html b/design/strpos.html index 1994ad1..80a82f4 100644 --- a/design/strpos.html +++ b/design/strpos.html @@ -3,9 +3,7 @@ <head> <title>strpos - PHP: Hypertext Preprocessor</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> -<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> -<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<link type="text/css" media="all" rel="stylesheet" href="css/style.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> <![endif]--> diff --git a/design/styles.html b/design/styles.html index 04f8ec7..b8e8095 100644 --- a/design/styles.html +++ b/design/styles.html @@ -1,11 +1,9 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> <head> -<title>PHP: Getting Help</title> +<title>strpos - PHP: Hypertext Preprocessor</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> -<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> -<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<link type="text/css" media="all" rel="stylesheet" href="css/style.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> <![endif]--> diff --git a/design/support.html b/design/support.html index 93e37c2..51a219b 100644 --- a/design/support.html +++ b/design/support.html @@ -1,16 +1,13 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> <head> -<title>PHP: Getting Help</title> +<title>strpos - PHP: Hypertext Preprocessor</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> -<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> -<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<link type="text/css" media="all" rel="stylesheet" href="css/style.css" /> <!--[if IE ]> <link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> <![endif]--> </head> - <body id="page-support"> <ul id="root"> <li id="header"> commit 973cda25cb5d94c6a091df2ac955e73ae40364ef Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 24 15:08:51 2008 +0000 Commit the raw design diff --git a/design/css/base.css b/design/css/base.css new file mode 100644 index 0000000..89ecacb --- /dev/null +++ b/design/css/base.css @@ -0,0 +1,124 @@ +/* Main styles +*******************************/ +html { + height: 100%; + margin-bottom: 1px;/* force vertical scrollbars */ +} + +body { + background: #E2E2E2; + color: #000; + font-size: 62.5%; + text-align: left; +} + +/* Default fonts +*******************************/ +body { font-family: Tahoma, Arial, sans-serif, serif, monospace } + +input, +select { font-family: Tahoma, Arial, Helvetica, sans-serif; } + +textarea, +pre, +tt, +kbd, +var, +code { font-family:"Courier New", Courier, monospace; } + + +/* Header elements +*******************************/ +h1, +h2, +h3, +h4, +h5, +h6 { font-weight:normal; } + +h1 { font-size: 1.7em; line-height: 2.4em; } +h2 { font-size: 1.6em; line-height: 2.2em; } +h3 { font-size: 1.4em; line-height: 2.0em; } +h4 { font-size: 1.3em; line-height: 1.8em; } +h5 { font-size: 1.2em; line-height: 1.6em; } +h6 { font-size: 1.1em; line-height: 1.2em; } + + +/* Text elements +*******************************/ +p { margin: 0 0 1em 0; text-align: left; } +p.last, +p.cite { margin-bottom:0; } +p.first { margin-top:1em; } +p.img { float: left; margin:0 1em 1em 0; padding:0; } +p.top-border { border-top: 1px dotted #000; padding-top:1em; } + +blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } +strong { font-weight: bold; } +em { font-style: italic; } +pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } +small { font-size: .9em; } +code { /*style*/ } +ins { text-decoration:none; } /*remove underline from text*/ +del { text-decoration:line-through; } +sub { vertical-align:sub;font-size: .9em; } +sup { vertical-align:super;font-size: .9em; } +acronym { border-bottom:1px dotted #666; } +abbr { /*style*/ } +dfn { font-style:italic; } +bdo { /*style*/ } + +/*quotes*/ +q { font-style:italic; } +cite { font-style:italic; quotes: "\00ab" "\00bb"; } +cite:after, +q:after { content: "\00bb"; } +cite:before, +q:before { content: "\00ab"; } + +hr { + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 dotted; +} + +/*links*/ +a:link, +a:visited, +a:focus, +a:hover, +a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } + +a:hover { } + +a:active, +a:focus { outline: 0; } /*remove border in ff*/ +/* +a:visited { color:#849BCA } +*/ + + +/* Images +*******************************/ +img { vertical-align:middle; outline:0 } + +/* Form styles +*******************************/ +input, +select, +textarea { + font-size:1.0em;/*by default font-size is bigger*/ + vertical-align:baseline; +} + +input.text, +input.file { cursor:text; } + +input.button { cursor:pointer; } + +input.radio, +input.checkbox { border: 0;padding: 0; } + diff --git a/design/css/content.css b/design/css/content.css new file mode 100644 index 0000000..3b610c4 --- /dev/null +++ b/design/css/content.css @@ -0,0 +1,812 @@ +/* Main styles + *******************************/ +#root { + margin: 10px 10px 0; + padding-bottom:10px; + min-width: 970px; +} + + +/* Corners + *******************************/ +.corners-top, +.corners-bottom, +.corners-top span, +.corners-bottom span { + font-size: 1px; + line-height: 1px; + display: block; + height: 11px; + background-repeat: no-repeat; + background-image: none; +} + +.corners-top { + margin: 0 -11px; +} + +.corners-bottom { + margin: 0 -11px; + clear: both; +} + +/* Header + *******************************/ +#header { + background: url(../img/header-corners.jpg) repeat-x 0 -232px; + height: 116px; + margin-bottom: 6px; + clear:both; +} + +#header .side-left, +#header .side-right { + display: block; + width: 13px; + height: 116px; + background: url(../img/header-corners.jpg) no-repeat; +} + +#header .side-left { + background-position: 0 0; + float: left; +} +#header .side-right { + background-position: 100% -116px; + float: right; +} + +#header .content { + margin: 0 13px; + padding:20px 11px; +} + +#header h1 a { + background:url(../img/header-logo.jpg) left top no-repeat; + float:left; + width:434px; + height:76px; + text-indent: -9999px; +} + +/* search box */ +#search-box { + text-align:right; + margin-left:440px; + padding:26px 0; + font-size:1.1em; + color:#B5B5E9; +} + +#search-box span { + padding-left:8px; +} + +#search-box label { + padding-left:8px; +} + +#search-box input.text, +#search-box select { +} + +#search-box input.text { + width:20%; + line-height:1; + padding:0; +} + +#search-box select { + width:20%; +} + +#search-box input.button { + background:url(../img/block_sprites.gif) 0 -104px no-repeat; + width:69px; + border:0; + height:24px; + line-height:1.2; + color:#56518B; +} + + +/* Main menu & Newsline styles + *******************************/ +#main-menu, +#news-line, +#main-column .adv-block { + font-size: 1.1em; + line-height:1.2; + margin-bottom: 6px; + padding: 0 11px; + background: none left bottom repeat-x #F6F6F6; +} + +#main-menu, +#main-column .adv-block { + background-image: url(../img/menu-corners-back.gif); + clear:both; +} + +#news-line { + background-image: url(../img/news-line-back.gif); +} + +/* main corners */ +#main-menu .corners-top, +#main-menu .corners-bottom, +#main-column .adv-block .corners-top, +#main-column .adv-block .corners-bottom{ + background-image: url(../img/corners-left.gif); +} + +#main-menu .corners-top, +#main-column .adv-block .corners-top { + background-position:0 -22px; +} + +#main-menu .corners-bottom, +#main-column .adv-block .corners-bottom { + background-position:0 -33px; +} + +#main-menu .corners-top span, +#main-menu .corners-bottom span, +#main-column .adv-block .corners-top span, +#main-column .adv-block .corners-bottom span { + background-image: url(../img/corners-right.gif); +} + +#main-menu .corners-top span, +#main-column .adv-block .corners-top span { + background-position:100% -22px; +} + +#main-menu .corners-bottom span, +#main-column .adv-block .corners-bottom span { + background-position:100% -33px; +} +/* end main corners */ + +#main-menu ul { + padding:8px 0; +} + +#news-line ul ul, +#main-menu ul { + margin-left: 12px; +} + +#news-line ul ul{ + display:inline; +} + +#news-line li li, +#main-menu li { + display: inline; + padding:0 1%; + border-right:1px solid #CDCDCD; +} + +#news-line li .first, +#main-menu .first { + padding-left:0; +} + +#news-line li .last, +#main-menu .last { + border:0; +} + +#news-line ul span { + float: left; + margin-left: 12px; + width: 140px; +} + +#news-line .corners-top, +#news-line .corners-bottom { + background-image: url(../img/corners-left.gif); +} + +#news-line .corners-top { + background-position:0 -44px; +} + +#news-line .corners-bottom { + background-position:0 -55px; +} + +#news-line .corners-top span, +#news-line .corners-bottom span { + background-image: url(../img/corners-right.gif); +} + +#news-line .corners-top span { + background-position:100% -44px; +} + +#news-line .corners-bottom span { + background-position:100% -55px; +} + +/* main column top and bottom blocks */ +#main-column .adv-block { + font-size:0.92em; + line-height:1.4em; +} + +#main-column .adv-block a { +} + +#main-column .adv-block .prev { + background:url(../img/block_sprites.gif) no-repeat 0 -27px; + float:left; + padding:5px 0 5px 40px; +} + +#main-column .adv-block .next { + background:url(../img/block_sprites.gif) no-repeat 100% -51px; + float:right; + padding:5px 40px 5px 0; +} + +#main-column .adv-block p { + text-align:center; + margin:0 160px; +} + +#main-column .adv-block select { + width:25%; +} + +#main-column .adv-block input { + background:url(../img/../img/block_sprites.gif) 0 -77px no-repeat; + width:57px; + height:26px; + border:0; + color:#6181B7; + text-indent: -9999px; + cursor:pointer; +} + +/* Content + *******************************/ +#content { + font-size: 1.2em; + line-height:1.4; +} + +#content-columns { + overflow: hidden; +} + +/* every left column */ +#left-column { + float: left; + overflow: hidden; + width: 22%; +} + +/* mid column on first page */ +#mid-column { + float: left; + overflow: hidden; + width: 57%; +} + +/* main column on other pages */ +#main-column { + float: left; + overflow: hidden; + width: 78%; +} + +/* simple page area */ +#page-area { + overflow: hidden; + width: 100%; +} + +/* right column on first page */ +#right-column { + float: left; + overflow: hidden; + width: 21%; +} + +#mid-column .content{ + margin: 0 6px; +} + +#main-column .content { + margin-left:6px; +} + +#content-columns .block, +#page-area .content { + background: url(../img/main-corners-back.gif) left bottom repeat-x #F0F0F0; + margin-bottom: 6px; + padding: 0 11px; +} + +#content-columns .block .corners-top, +#content-columns .block .corners-bottom, +#page-area .content .corners-top, +#page-area .content .corners-bottom { + background-image: url(../img/corners-left.gif); +} + +#content-columns .block .corners-top, +#page-area .content .corners-top { + background-position:0 0; +} + +#content-columns .block .corners-bottom, +#page-area .content .corners-bottom { + background-position:0 -11px; +} + +#content-columns .block .corners-top span, +#content-columns .block .corners-bottom span, +#page-area .content .corners-top span, +#page-area .content .corners-bottom span { + background-image: url(../img/corners-right.gif); +} + +#content-columns .block .corners-top span, +#page-area .content .corners-top span { + background-position:100% 0; +} + +#content-columns .block .corners-bottom span, +#page-area .content .corners-bottom span { + background-position:100% -11px; +} + +/* set min-height for info blocks */ +#content-columns .block .info { + min-height: 127px; + height: auto!important; + height: 127px; +} + +/* news item*/ +#content-columns .news-date { + border-bottom:1px dotted #000000; + color:#A0A0A0; + padding-bottom:1em; + margin:0 0 1em 0; + text-align:right; +} + +#content-columns .news-update { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; +} + + +/* Project specific styles + *******************************/ + +/* download-button link */ +.download-button { + overflow:hidden; + margin:0 0 2em 14%; +} + +.download-button a { + background: url(../img/download-button.gif) no-repeat 100% 0; + height: 43px; + display:block; + width:76%; + text-align:center; + padding-right: 5%; /* sliding doors padding */ + text-decoration: none; +} + +.download-button a span { + background: url(../img/download-button.gif) no-repeat bottom left!important; + display: block; + font-weight:bold; + line-height: 15px; + padding: 14px 0 14px 5%; +} + +/* styles for every info-block */ +#root .content .info { + padding:.4em 1em 1.6em 1em; + position:relative; +} + +/* set default styles for elements in info blocks */ + +.content .info ul, +.content .info ol { + margin: 0 0 1em 2em; +} + +.content .info ul { + list-style-type:square; +} + +.content .info ol { + list-style-type:decimal; +} + +.content .info ul li, +.content .info ol li { + line-height:2; +} + +.content .info .simple { + list-style:none; + list-style-image:none; + margin: 0 0 1em 1em; +} +.content .info .simple li { + line-height:1.2; +} + +.content .info .simplelist li { + line-height:1.2; +} + +.content .info h3 { + font-size:1.17em; + font-weight:bold; + line-height:1.3; +} + +.content .info h4 { + font-size:1em; + font-weight:bold; +} + +.content .info h3 a { + color:#000; +} + + +/* right column specific styles */ +.events { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; +} + +.info .events ul.simple { + margin-left:0; +} + +.info .events h3 { + margin-bottom:1em; +} + +.upcoming-events { + padding-bottom:1.4em; +} + +.calendar { + background: #DADADA; + margin-bottom: 6px; + padding: 0 11px; +} + +.calendar h4 { + line-height:1; +} + +.calendar p { + margin:1em 0 0 0; + text-align:center; +} + +.calendar .year { + width:38%; +} + +.calendar .month { + margin-right:2%; + width:58%; +} + +#right-column .calendar .corners-top, +#right-column .calendar .corners-bottom { + background-repeat:no-repeat; + background-image: url(../img/corners-left.gif); +} + +#right-column .calendar .corners-top { + background-position:0 -110px; +} + +#right-column .calendar .corners-bottom { + background-position:0 -121px; +} + +#right-column .calendar .corners-top span, +#right-column .calendar .corners-bottom span { + background-repeat:no-repeat; + background-image: url(../img/corners-right.gif); +} + +#right-column .calendar .corners-top span { + background-position:100% -110px; +} + +#right-column .calendar .corners-bottom span { + background-position:100% -121px; +} + +/* Main area + *******************************/ +#main-column .func-descr, +#main-column .func-date { + line-height:1; + margin:0; +} + +#main-column .func-ver { + margin-bottom:0; +} + +#main-column .func-date span { + color:#888; +} + +#main-column .func-descr { + font-size:1.17em; + font-style:normal; +} +#main-column .func-date { + text-align:right; +} + +#main-column h4 { + padding:1.2em 0; +} + +#main-column .info-block h4 { + padding:0 0 1em 0; +} + +#main-column .info-block, +#main-column .warning, +#main-column .notes, +#main-column dd { + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; +} + +#main-column dt { + line-height:1.6; +} + +#main-column .warning { + color:#6F0000; +} + +#main-column .notes { + color:#A2754B; +} + +/* Function list + *******************************/ +#functions-list { + margin:2em 0 0 1em; + font-weight:bold; + list-style:none; +} + +#functions-list li { + line-height:1; + padding:0 0 1em 14px; + background:url(../img/block_sprites.gif) -14px -131px no-repeat; +} + +#functions-list li li { + padding-bottom:6px; + list-style:none; + background:none; +} + +#functions-list li li a { + text-decoration:none; +} + +#functions-list ul { + margin: 1em 0 1em -14px; + font-weight:normal; + list-style:none; +} + +#functions-list li .sel { + background:url(../img/block_sprites.gif) 0 -147px no-repeat; +} + +#functions-list li .sel a { + color:#000; + font-weight:bold; +} + + +/* Contributed Notes + *******************************/ +.add-note { + float:right; + padding:12px 0; + line-height:1; + font-weight:bold; + background:url(../img/../img/block_sprites.gif) 100% 6px no-repeat; +} + +.add-note a { + padding-right:34px; + +} + +#contributed-notes { + margin:0; + list-style:none; +} + +#contributed-notes li { + padding-top:12px; +} + +#contributed-notes .username { + background:url(../img/note-username-back.jpg) bottom right no-repeat; + color:#808080; + line-height:1.2; + padding:0 60px 6px 0; + float:left; +} + +#contributed-notes .username strong { + font-size:1.08em; +} + +#contributed-notes .username a { + font-size:.83em; +} + +#contributed-notes .ncontent { + clear:left; +} + +#contributed-notes .note { + padding:0 11px; + line-height:1.2; + background:url(../img/note-corners-back.gif) 0 100% repeat-x #FFFFFF; +} + +#contributed-notes .note .corners-top, +#contributed-notes .note .corners-bottom { + background-image: url(../img/corners-left.gif); +} + +#contributed-notes .note .corners-top { + background-position:0 -66px; +} + +#contributed-notes .note .corners-bottom { + background-position:0 -77px; +} + +#contributed-notes .note .corners-top span, +#contributed-notes .note .corners-bottom span { + background-image: url(../img/corners-right.gif); +} + +#contributed-notes .note .corners-top span { + background-position:100% -66px; +} + +#contributed-notes .note .corners-bottom span { + background-position:100% -77px; +} + +/* Forms + *******************************/ +.form dt { + width:20%; + font-weight:bold; + float:left; + padding-bottom:1em; +} + +.form dd { + margin-left:20%; + padding-bottom:1em; +} + +.form .max{ + width:50%; +} + +.errors { + border:1px dotted #ff0000; + padding:1em; + list-style:inside; + margin-left:0!important; +} + + +/* Footer + *******************************/ +#footer { + font-size: 1.1em; + padding: 0 11px; + background: url(../img/footer-back.gif) left bottom repeat-x #CECECE; +} + +#footer .corners-top, +#footer .corners-bottom { + background-image: url(../img/corners-left.gif); +} + +#footer .corners-top { + background-position:0 -88px; +} + +#footer .corners-bottom { + background-position:0 -99px; +} + +#footer .corners-top span, +#footer .corners-bottom span { + background-image: url(../img/corners-right.gif); +} + +#footer .corners-top span { + background-position:100% -88px; +} + +#footer .corners-bottom span { + background-position:100% -99px; +} + +#footer .info { + line-height:1.4; + padding:18px 12px; +} + +#copyright { + float:left; +} + +#footer-menu { + text-align:right; +} + +#footer-menu ul { + display:inline; + color: #6280B2; +} + +#footer-menu ul li { + display:inline; + border-right:1px solid #6280B2; + padding: 0 1%; +} + +#footer-menu ul .last { + border:0; + padding-right:0; +} + +#footer-menu ul .first { + padding-left:0; +} + +#footer-menu small { + color:#7C7C7C; +} + +#footer-menu small a { + color:#000; +} \ No newline at end of file diff --git a/design/css/handfield.css b/design/css/handfield.css new file mode 100644 index 0000000..046c8c3 --- /dev/null +++ b/design/css/handfield.css @@ -0,0 +1,9 @@ +/* Screen version +*******************************/ +@import 'reset.css'; + +@import 'base.css'; + +@import 'content.css'; + +@import 'helpers.css'; \ No newline at end of file diff --git a/design/css/helpers.css b/design/css/helpers.css new file mode 100644 index 0000000..9b452f4 --- /dev/null +++ b/design/css/helpers.css @@ -0,0 +1,67 @@ +/* Code colors +*******************************/ +.default { color:#0000BB; } +.keyword { color:#009900; } +.string { color:#BB0000; } +.comment { color:#FF9900; } + +/* Text size +*******************************/ +.em18 { font-size: 1.8em; } +.em16 { font-size: 1.6em; } +.em12 { font-size: 1.2em; } +.em11 { font-size: 1.1em; } +.em10 { font-size: 1.0em; } +.em9 { font-size: 0.9em; } + +/* Text decorations +*******************************/ +.bold { font-weight: bold; } +.normal { font-weight: normal; } +.italic { font-style: italic } +.underline { text-decoration: underline; } + +/* Float +*******************************/ +.f-right { float: right; } +.f-left { float: left; } +.f-none { float: none; } + +/* Text align +*******************************/ +.t-right { text-align: right; } +.t-left { text-align: left; } +.t-center { text-align: center; } +.t-justify { text-align: justify; } + +/* Width +*******************************/ +.w_25 { width:2.5em; } +.w_30 { width:3em; } +.w_50 { width:5em; } +.w_70 { width:7em; } +.w_100 { width:10em; } +.w_150 { width:15em; } +.w_200 { width:20em; } +.w_250 { width:25em; } +.w_300 { width:30em; } + +/* Text transform +*******************************/ +.lower { text-transform: lowercase; } +.upper { text-transform: uppercase; } +.capitalize { text-transform: capitalize; } + +/* Other +*******************************/ +.clear:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden +} + +.zoom{ + overflow:hidden; +} \ No newline at end of file diff --git a/design/css/ie.css b/design/css/ie.css new file mode 100644 index 0000000..e94e1c5 --- /dev/null +++ b/design/css/ie.css @@ -0,0 +1,44 @@ +/* IE Hacks +*******************************/ +html {filter: expression(document.execCommand("BackgroundImageCache", false, true));} + +* html hr {margin: 0; /* IE6 */} +*+html hr {margin: 0; /* IE7 */} + + +#root { + width: expression(document.body.clientWidth < 971 ? "970px" : document.body.clientWidth > 2509 ? "2508px" : "auto"); +} + +.zoom, +.download-button, +#content-columns, +#content-columns li { zoom:1; } + +.clear { display: inline-block } +.clear { display: block } +* html .clear{ height: 1% } + +.wordwrap { + word-wrap: break-word; +} + +#contributed-notes .ncontent { + clear:none; + width:100%; +} + +sub, +sup { + font-size:1.0em; +} + +input, +select, +textarea { + vertical-align:middle; +} + +.calendar p { + border:1px solid #DADADA; +} diff --git a/design/css/print.css b/design/css/print.css new file mode 100644 index 0000000..f34c463 --- /dev/null +++ b/design/css/print.css @@ -0,0 +1,89 @@ +body { + margin:.2in .55in; + padding:0; + font:12pt "Times New Roman", serif; + } + +/* Hide and reset blocks + *******************************/ +#mid-column, +#main-column, +#right-column, +#header, +#content { + margin:0; + list-style:none; + +} + +#left-column, +#footer, +.adv-block, +#main-menu, +#search-box, +#news-line, +.releases, +.calendar, +.add-event, +.add-note { + display:none; +} + +/* Links decoration + *******************************/ +a { + color:black; + text-decoration:none; + } +a img { + border-width:0; + } + +/* Headings + *******************************/ +h1, h2, h3,h4 { + margin:1em 0 .5em; + font-family:Georgia,Serif; + font-weight:normal; + clear:both; + } + h1 { + margin-top:.5em; + font-size:180%; + } + h2 { + font-size:240%; + margin:.3em 0 0 0; + padding-bottom:0; + } + h3 { + font-size:150%; + margin-bottom:0; + } + + h4 { + font-size:120%; + margin-bottom:0; + } +p{ + margin:0 0 .6em 0; + } +blockquote{ + font-style:italic; + } +h3+blockquote, h2+blockquote, p+ul, h2+ul, h3+ul{ + margin-top:.2em; + } + +/* Etc + *******************************/ +.content a[href]:after, +.secondary a[href]:after, +#footer a[href]:after { + content: " (" attr(href) ") "; + font-size: 90%; + } +.content a[href^="/"]:after, +.secondary a[href^="/"]:after { + content: " (http://php.net/" attr(href) ") "; + } \ No newline at end of file diff --git a/design/css/reset.css b/design/css/reset.css new file mode 100644 index 0000000..952bffd --- /dev/null +++ b/design/css/reset.css @@ -0,0 +1,44 @@ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { +margin: 0; +padding: 0; +border: 0; +outline: 0; +font-weight: inherit; +font-style: inherit; +font-size: 100%; +font-family: inherit; +vertical-align: baseline; +} +:focus { +outline: 0; +} +body { +line-height: 1; +color: black; +background: white; +} +ol, ul { +list-style: none; +} +table { +border-collapse: separate; +border-spacing: 0; +} +caption, th, td { +text-align: left; +font-weight: normal; +} +blockquote:before, blockquote:after, +q:before, q:after { +content: ""; +} +blockquote, q { +quotes: "" ""; +} diff --git a/design/css/screen.css b/design/css/screen.css new file mode 100644 index 0000000..046c8c3 --- /dev/null +++ b/design/css/screen.css @@ -0,0 +1,9 @@ +/* Screen version +*******************************/ +@import 'reset.css'; + +@import 'base.css'; + +@import 'content.css'; + +@import 'helpers.css'; \ No newline at end of file diff --git a/design/events.html b/design/events.html new file mode 100644 index 0000000..c95a847 --- /dev/null +++ b/design/events.html @@ -0,0 +1,187 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> +<head> +<title>PHP: Getting Help</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> +<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> +<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<!--[if IE ]> +<link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> +<![endif]--> +</head> + +<body id="homepage"> + <ul id="root"> + <li id="header"> + <span class="side-left"></span> + <span class="side-right"></span> + <div class="content"> + <h1><a href="index.html">PHP: Hypertext Preprocessor</a></h1> + <div id="search-box"> + <label>Search for</label><span><input type="text" class="text" maxlength="20" name="q" /></span><label>in the</label><span><select><option>functions list</option></select></span><span><input type="submit" class="button" value="Search" /></span> + </div> + </div> + </li><!--#header--> + <li id="main-menu"><span class="corners-top"><span></span></span> + <ul><li class="first"><a href="#">Downloads</a></li><li><a href="#">Documentation</a></li><li><a href="#">Faq</a></li><li><a href="#">Getting Help</a></li><li><a href="#">Mailing Lists</a></li><li><a href="#">Reporting Bugs</a></li><li><a href="#">Php.net Sites</a></li><li><a href="#">Links</a></li><li><a href="#">Conferences</a></li><li class="last"><a href="#">My Php.net</a></li></ul> + <span class="corners-bottom"><span></span></span></li><!--#main-menu--> + + + <li id="content"> + <div id="page-area"> + <div class="content"><span class="corners-top"><span></span></span> + <div class="info"> + <p>Have an upcoming PHP user group meeting? Holding a PHP training session? Submit your event here, and after it has been approved, it will be listed on the PHP.net homepage and appear in our full event listings.</p> + + <ul class="errors"> + <li>You must supply a valid email address.</li> + <li>You must supply a short description of the event.</li> + <li>You must supply a long description of the event.</li> + <li>You must supply a URL with more information about the event.</li> + <li>You must specify a country for the event.</li> + <li>You must specify a category for the event.</li> + <li>You must specify a valid start date.</li> + </ul> + + <form action=""> + <dl class="form"> + <dt>Start Date</dt> + <dd> + <select name="smonth"><option></option><option value="1">January</option> + <option value="2">February</option> + <option value="3">March</option> + <option value="4">April</option> + <option value="5">May</option> + + <option value="6">June</option> + <option value="7">July</option> + <option value="8">August</option> + <option value="9">September</option> + <option value="10">October</option> + <option value="11">November</option> + <option value="12">December</option> + </select> + <input name="sday" size="2" maxlength="2" value="0" type="text" /> + <input name="syear" size="4" maxlength="4" value="2008" type="text" /> + <input id="single" name="type" value="single" checked="checked" type="radio" /> + <label for="single">One day (no end-date required)</label> + </dd> + <dt>End Date</dt> + <dd> + <select name="emonth"><option></option><option value="1">January</option> + <option value="2">February</option> + <option value="3">March</option> + <option value="4">April</option> + <option value="5">May</option> + <option value="6">June</option> + <option value="7">July</option> + <option value="8">August</option> + + <option value="9">September</option> + <option value="10">October</option> + <option value="11">November</option> + <option value="12">December</option> + </select> + <input name="eday" size="2" maxlength="2" value="0" type="text" /> + <input name="eyear" size="4" maxlength="4" value="2008" type="text" /> + <input id="multi" name="type" value="multi" type="radio" /> + <label for="multi">Multi-day event</label> + </dd> + + <dt>OR Recurring</dt> + <dd> + <select name="recur"><option></option><option value="1">First</option> + <option value="2">Second</option> + <option value="3">Third</option> + <option value="4">Fourth</option> + <option value="-1">Last</option> + <option value="-2">2nd Last</option> + <option value="-3">3rd Last</option> + </select> + <select name="recur_day"><option></option><option value="1">Sunday</option> + <option value="2">Monday</option> + <option value="3">Tuesday</option> + <option value="4">Wednesday</option> + <option value="5">Thursday</option> + <option value="6">Friday</option> + <option value="7">Saturday</option> + </select> + <input id="recur" name="type" value="recur" type="radio" /> + <label for="recur">Recurring (every month)</label> + </dd> + <dt>Short Description</dt> + <dd><input name="sdesc" class="max" value="" size="32" maxlength="32" type="text" /></dd> + <dt>URL</dt> + <dd><input name="url" size="40" maxlength="128" class="max" value="" type="text" /></dd> + <dt>Country</dt> + <dd> + <select name="country" class="max"> + <option value="">- Select a country -</option> + <option value="AFG">Afghanistan</option> + <option value="ALB">Albania</option> + <option value="DZA">Algeria</option> + <option value="ASM">American Samoa</option> + <option value="AND">Andorra</option> + <option value="AGO">Angola</option> + <option value="AIA">Anguilla</option> + <option value="ATG">Antigua and Barbuda</option> + <option value="ARG">Argentina</option> + <option value="ARM">Armenia</option> + <option value="ABW">Aruba</option> + <option value="AUS">Australia</option> + </select> + </dd> + <dt>Event category</dt> + <dd> + <select name="category" class="max"> + <option value="0" selected="selected">- Select a category -</option> + <option value="1">User Group Event</option> + <option value="2">Conference</option> + <option value="3">Training</option> + </select> + </dd> + <dt>Email</dt> + <dd> + <input name="email" size="40" maxlength="128" class="max" value="" type="text" /><br /> + <small>This email address is only used to contact you about the listing, it will not displayed along with the listing.</small> + </dd> + <dt>Long description</dt> + <dd><textarea name="ldesc" cols="60" class="max" rows="10"></textarea></dd> + <dt>&nbsp;</dt> + <dd><input type="submit" value="Preview" /></dd> + </dl> + + + </form> + + + + + + + </div> + <span class="corners-bottom"><span></span></span></div> + </div> + </li><!--#content--> + + <li id="footer"><span class="corners-top"><span></span></span> + <div class="info"> + <div id="copyright"><a href="/copyright.php">Copyright © 2001-2008 The PHP Group</a><br />All rights reserved.</div> + <div id="footer-menu"> + <ul> + <li class="first"><a href="/feed.atom">Atom</a></li> + <li><a href="/source.php?url=/index.php">Show source</a></li> + <li><a href="/credits.php">Credits</a></li> + <li><a href="/stats/">Stats</a></li> + <li><a href="/sitemap.php">Sitemap</a></li> + <li><a href="/contact.php">Contact</a></li> + <li><a href="/contact.php#ads">Advertising</a></li> + <li class="last"><a href="/mirrors.php">Mirror sites</a></li> + </ul><br/><small><a href="/mirror.php">This mirror</a> generously provided by: <a href="http://developer.yahoo.com/">Yahoo! Inc.</a> Last updated: Mon Jun 9 01:34:45 2008 PDT</small> + </div> + </div> + <span class="corners-bottom"><span></span></span></li><!--#footer--> + </ul><!--#root--> +</body> +</html> \ No newline at end of file diff --git a/design/homepage.html b/design/homepage.html new file mode 100644 index 0000000..578d85f --- /dev/null +++ b/design/homepage.html @@ -0,0 +1,595 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> +<head> +<title>PHP: Hypertext Preprocessor</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> +<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> +<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<!--[if IE ]> +<link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> +<![endif]--> +</head> + +<body id="homepage"> + <ul id="root"> + <li id="header"> + <span class="side-left"></span> + <span class="side-right"></span> + <div class="content"> + <h1><a href="index.html">PHP: Hypertext Preprocessor</a></h1> + <div id="search-box"> + <label>Search for</label><span><input type="text" class="text" maxlength="20" name="q" /></span><label>in the</label><span><select><option>functions list</option></select></span><span><input type="submit" class="button" value="Search" /></span> + </div> + </div> + </li><!--#header--> + <li id="main-menu"><span class="corners-top"><span></span></span> + <ul><li class="first"><a href="#">Downloads</a></li><li><a href="#">Documentation</a></li><li><a href="#">Faq</a></li><li><a href="#">Getting Help</a></li><li><a href="#">Mailing Lists</a></li><li><a href="#">Reporting Bugs</a></li><li><a href="#">Php.net Sites</a></li><li><a href="#">Links</a></li><li><a href="#">Conferences</a></li><li class="last"><a href="#">My Php.net</a></li></ul> + <span class="corners-bottom"><span></span></span></li><!--#main-menu--> + + <li id="news-line"><span class="corners-top"><span></span></span> + <ul> + <li><span>Calling for papers:</span><ul><li class="first last"><a href="#">Open Source Developers' Conference 2008 - Sydney</a></li></ul></li> + <li><span>Upcoming conferences:</span><ul><li class="first last"><a href="#">Dutch PHP Conference Amsterdam</a></li></ul></li> + </ul> + <span class="corners-bottom"><span></span></span></li><!--#news-line--> + + <li id="content"> + <ul id="content-columns"> + <li id="left-column"> + <div class="content"> + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <h3>What is PHP?</h3> + <p>&nbsp;</p> + <p><acronym title="recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym> is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the <a href="/tut.php">introductory tutorial</a>. After that, check out the online <a href="/docs.php">manual</a>, and the example archive sites and some of the other resources available in the <a href="/links.php">links section</a>.</p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <h3>Thanks To</h3> + <ul class="simple"> + <li><a href="http://www.easydns.com/?V=698570efeb62a6e2" title="DNS Hosting provided by easyDNS">easyDNS</a></li> + <li><a href="http://www.directi.com/">Directi</a></li> + <li><a href="http://promote.pair.com/direct.pl?php.net">pair Networks</a></li> + <li><a href="http://www.servercentral.net/">Server Central</a></li> + <li><a href="http://www.hostedsolutions.com/">Hosted Solutions</a></li> + <li><a href="http://www.spry.com/">Spry VPS Hosting</a></li> + <li><a href="http://ez.no/">eZ Systems</a> / <a href="http://www.hit.no/english">HiT</a></li> + <li><a href="http://www.osuosl.org">OSU Open Source Lab</a></li> + <li><a href="http://www.yahoo.com/">Yahoo! Inc.</a></li> + <li><a href="http://www.binarysec.com/">BinarySEC</a></li> + <li><a href="http://www.nexcess.net/">NEXCESS.NET</a></li> + <li><a href="http://www.rackspace.com/">Rackspace</a></li> + <li><a href="http://www.eukhost.com/">EUKhost</a></li> + </ul> + <h3>Related sites</h3> + <ul class="simple"> + <li><a href="http://www.apache.org/">Apache</a></li> + <li><a href="http://www.mysql.com/">MySQL</a></li> + <li><a href="http://www.postgresql.org/">PostgreSQL</a></li> + <li><a href="http://www.zend.com/">Zend Technologies</a></li> + </ul> + <h3>Community</h3> + <ul class="simple"> + <li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li> + <li><a href="http://www.ostg.com/">OSTG</a></li> + </ul> + <h3>Syndication</h3> + <p>You can grab our news as an <a href="#">Atom feed</a>.</p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + </div> + </li><!--#left-column--> + <li id="mid-column"> + <div class="content"> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry"> + <h3 class="summary entry-title"><a name="id2008-04-22-1" id="id2008-04-22-1" href="http://www.php.net/archive/2008.php#id2008-04-22-1" rel="bookmark" class="bookmark">Google Summer of Code: php.net students</a></h3> + <p class="news-date"><abbr class="published newsdate" title="2008-04-22T20:04:48+02:00">22-Apr-2008</abbr></p> + <p> + The PHP team is once again proud to participate in the + <a href="http://code.google.com/soc/">Google Summer of Code</a>. + Ten students will "flip bits instead of burgers" this summer: + +</p> + <ul> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=73D5F5E282F9163F" class="url">Zend LLVM Extension</a> by + <span class="fn"><span class="given-name">Joonas</span> <span class="family-name">Govenius</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Nuno</span> <span class="family-name">Lopes</span></span></span></li> + + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=12A8D27646C9771A" class="url">PHP Optimizer</a> by + <span class="fn"><span class="given-name">Samuel</span> <span class="family-name">Graham Kelly IV</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Derick</span> <span class="family-name">Rethans</span></span></span></li> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=3D5258783F22F62C" class="url">PhD (PHP Docbook) Project</a> by + <span class="fn"><span class="given-name">Rudy</span> <span class="family-name">Nappée</span></span>, + </span> + + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Hannes</span> <span class="family-name">Magnusson</span></span></span></li> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=93F63E6C761134FB" class="url">Replace auto* with CMake</a> by + <span class="fn"><span class="given-name">Alejandro Leiva</span> <span class="family-name">Rojas</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Pierre A.</span> <span class="family-name">Joye</span></span></span></li> + + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=F74E5E31D92F95D0" class="url">gsoc:2008 - XDebug</a> by + <span class="fn"><span class="given-name">Chung-Yang</span> <span class="family-name">Lee</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">David</span> <span class="family-name">Coallier</span></span></span></li> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=435245F847240738" class="url">Rewrite the run-tests.php script</a> by + <span class="fn"><span class="given-name">Cesar</span> <span class="family-name">Montedonico</span></span>, + </span> + + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Travis</span> <span class="family-name">Swicegood</span></span></span></li> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=837287100B93044F" class="url">PHP Bindings for Cairo</a> by + <span class="fn"><span class="given-name">Akshat</span> <span class="family-name">Gupta</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Anant</span> <span class="family-name">Narayanan</span></span></span></li> + + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=25AE6211DDEC86FD" class="url">Algorithm Optimizations</a> by + <span class="fn"><span class="given-name">Michal</span> <span class="family-name">Dziemianko</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Scott</span> <span class="family-name">MacVicar</span></span></span></li> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=5A442E6A7568434D" class="url">PECL, Website Improvements</a> by + <span class="fn"><span class="given-name">Barry</span> <span class="family-name">Carlyon</span></span>, + </span> + + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Helgi Þormar</span> <span class="family-name">Þorbjörnsson</span></span></span></li> + <li><span class="vcard"><a href="http://code.google.com/soc/2008/php/appinfo.html?csaid=AD4803BA9A70BCB3" class="url">Implement Unicode into PHP 6</a> by + <span class="fn"><span class="given-name">Henrique do Nascimento</span> <span class="family-name">Angelo</span></span>, + </span> + mentored by + <span class="vcard"><span class="fn"><span class="given-name">Scott</span> <span class="family-name">MacVicar</span></span></span></li> + + </ul> + <p class="news-update"><strong>Update (<abbr class="updated" title="2008-05-11T17:48:11+02:00">May 11th</abbr>):</strong> + Unfortunately <span class="vcard"><span class="fn">Nicholas Sloan</span></span> had to drop out of the + program, but he will be replaced by <span class="vcard"><span class="fn">Rudy Nappée</span></span> working on the same application.</p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry"> + <h3 class="summary entry-title"><a name="id2008-05-01-1" id="id2008-05-01-1" href="http://www.php.net/archive/2008.php#id2008-05-01-1" rel="bookmark" class="bookmark">PHP 5.2.6 Released</a></h3> + <p class="news-date"><abbr class="published newsdate" title="2008-05-01T19:27:58-04:00">01-May-2008</abbr></p> + <p>The PHP development team would like to announce the immediateavailability of PHP 5.2.6. This release focuses on improving the stability ofthe PHP 5.2.x branch with over 120 bug fixes, several of which are security related.All users of PHP are encouraged to upgrade to this release.</p> + + <p> Further details about the PHP 5.2.6 release can be found in the <a href="/releases/5_2_6.php">release announcement for 5.2.6</a>, the full list of changes is available in the <a href="/ChangeLog-5.php#5.2.6">ChangeLog for PHP 5</a>.</p> + <p> + <b>Security Enhancements and Fixes in PHP 5.2.6:</b> + </p> + <ul> <li>Fixed possible stack buffer overflow in the FastCGI SAPI identified by Andrei Nigmatulin.</li> <li>Fixed integer overflow in printf() identified by Maksymilian Aciemowicz.</li> <li>Fixed security issue detailed in CVE-2008-0599 identified by Ryan Permeh.</li> <li>Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz.</li> <li>Properly address incomplete multibyte chars inside escapeshellcmd() identified by Stefan Esser.</li> <li>Upgraded bundled PCRE to version 7.6</li></ul> + + <p class="news-update"><strong>Update (<abbr class="updated" title="2008-05-06T09:56:38+02:00">May 6th</abbr>):</strong> The Windows installers were missing the <a href="/xsl">XSL</a> + and <a href="/imap">IMAP</a> extensions.</p> + <p class="news-update"><strong>Update (<abbr class="updated" title="2008-05-03T09:56:38+02:00">May 3rd</abbr>):</strong> The Windows archives were missing the <a href="/xsl">XSL</a> + + and <a href="/imap">IMAP</a> extensions.</p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <h3 class="summary entry-title"><a name="2008-03-30-1" id="id2008-03-30-1" href="http://www.php.net/archive/2008.php#2008-03-30-1" rel="bookmark" class="bookmark">TestFest 2008</a></h3> + <p class="news-date"><abbr class="published newsdate" title="2008-03-30T21:06:55+01:00">30-Mar-2008</abbr></p> + <p>The PHP-QA team would like to announce the + <a href="http://qa.php.net/testfest.php">TestFest</a> for the month of + May 2008. The TestFest is an event that aims at improving the + <a href="http://gcov.php.net">code coverage</a> of the + <a href="http://qa.php.net/running-tests.php">test suite</a> for the PHP + language itself. As part of this event, local User Groups (UG) are + invited to join the TestFest. These UGs can meet physically or come + together virtually. The point however is that people network to learn + together. Aside from being an opportunity for all of you to make friends + with like minded people in your (virtual) community, it also will + hopefully reduce the work load for the PHP.net mentors.</p> + + <p>All it takes is someone to organize a UG to spearhead the event and + to get others involved in + <a href="http://qa.php.net/write-test.php">writing phpt tests</a>. + The submissions will then be reviewed by members of php.net before + getting included in the official test suite. Please visit the + <a href="http://qa.php.net/testfest.php">TestFest homepage</a> to get + additional details on the TestFest on how to get involved, either as a + UG or by setting up the necessary infrastructure.</p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry"> + <h3 class="summary entry-title"><a name="2008-03-19-1" id="id2008-03-19-1" href="http://www.php.net/archive/2008.php#2008-03-19-1" rel="bookmark" class="bookmark">Google Summer of Code 2008</a></h3> + <p class="news-date"><abbr class="published newsdate" title="2008-03-19T13:53:55-04:00">19-Mar-2008</abbr></p> + <p>Once again we are glad to announce that we have been accepted to be a Google Summer of Code project. See <a href="http://code.google.com/soc/2008/php/about.html">our program</a> for this year's GSoC.</p> + + <p>We would like to take this opportunity to say thanks to Google Inc. for this privilege to participate once again, and would like to invite everyone to look at our list of ideas: <a href="http://wiki.php.net/gsoc/2008">http://wiki.php.net/gsoc/2008</a>. Students are of course more than welcome to come up with their own ideas for their proposals and we will consider each and every application that we will receive.</p> + <p>So once again, thanks to everyone who is involved in this magnificent journey and we hope to see many of you great students and open source passionate join us in our most enjoyable <a href="http://code.google.com/soc/2008">Google Summer of Code</a> projects.</p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry"> + <h3 class="summary entry-title"><a name="2008-01-03-1" id="id2008-01-03-1" href="http://www.php.net/archive/2008.php#2008-01-03-1" rel="bookmark" class="bookmark">PHP 4.4.8 Released</a></h3> + <p class="news-date"><abbr class="published" title="2008-01-03T10:13:50+01:00">03-Jan-2008</abbr></p> + <p> + The PHP development team would like to announce the immediate <a href="http://www.php.net/downloads.php#v4">availability of + PHP 4.4.8</a>. It continues to improve the security and the stability of the 4.4 + branch and all users are strongly encouraged to upgrade to it as soon as + possible. This release wraps up all the outstanding patches for the PHP 4.4 + series, and is therefore the last normal PHP 4.4 release. If necessary, + releases to address security issues could be made until 2008-08-08. + </p> + <p> + <b>Security Enhancements and Fixes in PHP 4.4.8:</b> + </p> + <ul> + <li>Improved fix for MOPB-02-2007.</li> + <li>Fixed an integer overflow inside chunk_split(). Identified by Gerhard Wagner.</li> + <li>Fixed integer overlow in str[c]spn().</li> + + <li>Fixed regression in glob when open_basedir is on introduced by #41655 fix.</li> + <li>Fixed money_format() not to accept multiple %i or %n tokens.</li> + <li>Added "max_input_nesting_level" php.ini option to limit nesting level of input variables. Fix for MOPB-03-2007.</li> + <li>Fixed INFILE LOCAL option handling with MySQL - now not allowed when open_basedir or safe_mode is active.</li> + <li>Fixed session.save_path and error_log values to be checked against open_basedir and safe_mode (CVE-2007-3378).</li> + </ul> + + <p> + For a full list of changes in PHP 4.4.8, see the <a href="http://www.php.net/ChangeLog-4.php#4.4.8">ChangeLog</a>. + </p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry vevent"> + <h3 class="summary entry-title"><a name="id2008-05-17-1" id="id2008-05-17-1" href="http://www.php.net/archive/2008.php#id2008-05-17-1" rel="bookmark" class="bookmark">Open Source Developers' Conference 2008 - Sydney - Call for Papers</a></h3> + <p class="news-date"><abbr class="published" title="2008-05-17T16:50:56+02:00">17-May-2008</abbr></p> + <p> + The Open Source Developers' Conference 2008 is a conference run by open + source developers, for developers and business people. It covers + numerous programming languages across a range of operating systems, and + related topics such as business processes, licensing, and strategy. + Talks vary from introductory pieces through to the deeply technical. It + is a great opportunity to meet, share, and learn with like-minded + individuals. + + </p> + <p> + This year, the conference will be held in <span class="location">Sydney, Australia</span> during the + first week of December. If you are an Open Source maintainer, developer + or user, the organising committee would encourage you to submit a talk + proposal on open source tools, solutions, languages or technologies you + are working with. + </p> + <p> + For more details, see: + <a href="http://osdc.com.au/2008/papers/cfp.html">http://osdc.com.au/2008/papers/cfp.html</a>. + </p> + <p> + If you have any questions or require assistance with your submission, + please don't hesitate to ask! + + </p> + <p> + We continue to recognise the increasing importance of Open Source + in providing a medium for collaboration between individuals, + researchers, business and government. In recognition of this and + ensure a high standard of presentations, we intend to peer-review + all submitted papers. + </p> + <p> + OSDC 2008 Sydney (Australia) - Key Program Dates: + </p> + <ol> + <li><abbr title="2008-04-28" class="dtstart">28 Apr</abbr> - Call for Papers</li> + <li><abbr title="2008-06-30" class="dtend">30 Jun</abbr> - Initial proposals (short abstract) due</li> + + <li>21 Jul - Proposal acceptance</li> + <li>15 Sep - Accepted paper submissions</li> + </ol> + <p> + For all information, contacts and updates, see the OSDC conference + web site at <a href="http://osdc.com.au/2008/" class="url">http://osdc.com.au/2008/</a>. + </p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry vevent"> + <h3 class="summary entry-title"><a name="id2008-05-13-1" id="id2008-05-13-1" href="http://www.php.net/archive/2008.php#id2008-05-13-1" rel="bookmark" class="bookmark">Call for PUG, for elePHPants, 2008 generation</a></h3> + <p class="news-date"><abbr class="published newsdate" title="2008-05-13T11:56:55-07:00">13-May-2008</abbr></p> + <a href="http://www.afup.org/"><img src="http://static.php.net/www.php.net/images/news/elephpants.jpg" alt="elePHPants" style="float: right;width:180px;height:135px;" /></a> + <p>The elePHPants are now ready to make their 2008 generation. + PHP User groups, enthusiasts and companies that are interested in + groups of elePHPants, shall join this year's herd.</p> + + <p> +ElePHPants are a great link of the community, happily promoting your favorite +language in conferences, on work station, baby cribs and other unusual places. +Production prices make it possible for groups to raise funds, entice membership +or simply bring joy and PHP around. + </p> + <p> +Pre-register your <a href="http://www.nexen.net/elephpant/2008_en.php">herd of elePHPants</a> +online, for big and small, +and join the <a href="http://www.flickr.com/photos/tags/elephpant/">world of blue elePHPants</a>. + </p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + <p class="t-center"><a href="#"><strong>News Archive</strong></a></p> + + </div> + </li><!--#mid-column--> + <li id="right-column"> + <div class="content"> + <div class="block releases"><span class="corners-top"><span></span></span> + <div class="info"> + <h3><a href="#">Stable releases</a></h3> + <p class="first">Current PHP 5 Stable: <a href="#"><strong>5.2.6</strong></a></p> + <p class="download-button"><a href="#"><span>Download</span></a></p> + <p class="top-border">Historical PHP Stable: <a href="#"><strong>4.4.8</strong></a></p> + <p><a href="#"><strong>Download area &raquo;</strong></a></p> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <h3 class="upcoming-events">Upcoming Events</h3> + <div class="calendar"><span class="corners-top"><span></span></span> + <h4>Events Calendar</h4> + <p><select class="month"> + <option>January</option> + <option>February</option> + <option>March</option> + <option>April</option> + <option>May</option> + <option>June</option> + <option selected="selected">July</option> + <option>August</option> + <option>September</option> + <option>October</option> + <option>November</option> + <option>December</option> + </select><select class="year"> + <option selected="selected">2008</option> + <option>2009</option> + <option>2010</option> + <option>2011</option> + <option>2012</option> + </select></p> + <span class="corners-bottom"><span></span></span></div> + <p class="add-event"><a href="#"><strong>Add event &raquo;</strong></a></p> + <div class="events"> + <h3>June</h3> + <h4>Conferences</h4> + <ul class="simple"> + <li><span class="event_NLD vevent"><abbr title="2008-06-13" class="dtstart">13</abbr>. <a href="/cal.php?id=3022" class="summary">Dutch PHP Conference Amsterdam</a></span></li> + <li><span class="event_NLD vevent"><abbr title="2008-06-13" class="dtstart">13</abbr>. <a href="/cal.php?id=3027" class="summary">Dutch PHP Conference</a></span></li> + </ul> + <h4>User Groups Events</h4> + <ul class="simple"> + <li><span class="event_DEU vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1385" class="summary">Hamburg</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1523" class="summary">Dallas PHP/MySQL Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1670" class="summary">Dallas PHP Users Group (DPUG)</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1652" class="summary">Austin PHP Meetup</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1665" class="summary">OKC PHP Meetup</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=2238" class="summary">Seattle PHP Users Group</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-06-10" class="dtstart">10</abbr>. <a href="/cal.php?id=3123" class="summary">West Midlands Social Meeting</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-11" class="dtstart">11</abbr>. <a href="/cal.php?id=1395" class="summary">Wash DC PHP Developers Group</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-06-11" class="dtstart">11</abbr>. <a href="/cal.php?id=2503" class="summary">Stuttgart</a></span></li> + + <li><span class="event_DEU vevent"><abbr title="2008-06-12" class="dtstart">12</abbr>. <a href="/cal.php?id=1848" class="summary">Meeting usergroup Dortmund</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-06-12" class="dtstart">12</abbr>. <a href="/cal.php?id=1946" class="summary">PHP Usergroup Frankfurt/Main</a></span></li> + <li><span class="event_AUS vevent"><abbr title="2008-06-12" class="dtstart">12</abbr>. <a href="/cal.php?id=2670" class="summary">Melbourne PHP User Group</a></span></li> + <li><span class="event_CAN vevent"><abbr title="2008-06-14" class="dtstart">14</abbr>. <a href="/cal.php?id=1732" class="summary">PHP User Group Nanaimo, BC/CA</a></span></li> + <li><span class="event_CHN vevent"><abbr title="2008-06-14" class="dtstart">14</abbr>. <a href="/cal.php?id=2580" class="summary">PEA meeting from phpchina</a></span></li> + + <li><span class="event_PHL vevent"><abbr title="2008-06-14" class="dtstart">14</abbr>. <a href="/cal.php?id=3120" class="summary">Joomla! Day Philippines is on it</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-17" class="dtstart">17</abbr>. <a href="/cal.php?id=1738" class="summary">Madison PHP User's Group</a></span></li> + <li><span class="event_AUS vevent"><abbr title="2008-06-17" class="dtstart">17</abbr>. <a href="/cal.php?id=2246" class="summary">PHP Brisbane Meetup Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-18" class="dtstart">18</abbr>. <a href="/cal.php?id=1545" class="summary">Miami PHP User Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-18" class="dtstart">18</abbr>. <a href="/cal.php?id=1546" class="summary">Broward Php Usergroup</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-06-18" class="dtstart">18</abbr>. <a href="/cal.php?id=1847" class="summary">Nashville PHP Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-18" class="dtstart">18</abbr>. <a href="/cal.php?id=2208" class="summary">Chicago PHP User Group Brunch</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-19" class="dtstart">19</abbr>. <a href="/cal.php?id=1704" class="summary">TriPUG</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-19" class="dtstart">19</abbr>. <a href="/cal.php?id=1719" class="summary">OINK-PUG (Cincinnati, Ohio)</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-19" class="dtstart">19</abbr>. <a href="/cal.php?id=1820" class="summary">Utah PHP Users Group Meeting</a></span></li> + + <li><span class="event_ARG vevent"><abbr title="2008-06-19" class="dtstart">19</abbr>. <a href="/cal.php?id=3105" class="summary">Php Argentina</a></span></li> + <li><span class="event_BRA vevent"><abbr title="2008-06-20" class="dtstart">20</abbr>. <a href="/cal.php?id=3096" class="summary">PHPSC Conf</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-21" class="dtstart">21</abbr>. <a href="/cal.php?id=1131" class="summary">Kansas City</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-21" class="dtstart">21</abbr>. <a href="/cal.php?id=1346" class="summary">Miami Linux Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-21" class="dtstart">21</abbr>. <a href="/cal.php?id=1671" class="summary">Twin Cities PHP</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-06-21" class="dtstart">21</abbr>. <a href="/cal.php?id=2449" class="summary">Los Angeles LAMPsig</a></span></li> + <li><span class="event_NOR vevent"><abbr title="2008-06-21" class="dtstart">21</abbr>. <a href="/cal.php?id=3086" class="summary">PHP Vikinger Unconference</a></span></li> + <li><span class="event_IND vevent"><abbr title="2008-06-21" class="dtstart">21</abbr>. <a href="/cal.php?id=3126" class="summary">OSSCamp Delhi Summer Edition</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-24" class="dtstart">24</abbr>. <a href="/cal.php?id=409" class="summary">New York</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-24" class="dtstart">24</abbr>. <a href="/cal.php?id=384" class="summary">AzPHP</a></span></li> + + <li><span class="event_MYS vevent"><abbr title="2008-06-24" class="dtstart">24</abbr>. <a href="/cal.php?id=2527" class="summary">Malaysia PHP Meetup</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-06-24" class="dtstart">24</abbr>. <a href="/cal.php?id=2600" class="summary">PHP Usergroup Karlsruhe</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-06-24" class="dtstart">24</abbr>. <a href="/cal.php?id=2660" class="summary">PHPUG Wuerzburg</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-24" class="dtstart">24</abbr>. <a href="/cal.php?id=3075" class="summary">DCPHP Beverage Subgroup</a></span></li> + <li><span class="event_IRL vevent"><abbr title="2008-06-25" class="dtstart">25</abbr>. <a href="/cal.php?id=2500" class="summary">Irish PHP Users Group meeting</a></span></li> + + <li><span class="event_SAU vevent"><abbr title="2008-06-26" class="dtstart">26</abbr>. <a href="/cal.php?id=1316" class="summary">Arabic PHP Group Meeting</a></span></li> + <li><span class="event_MYS vevent"><abbr title="2008-06-26" class="dtstart">26</abbr>. <a href="/cal.php?id=1708" class="summary">Malaysia PHP User Group Meet Up</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-26" class="dtstart">26</abbr>. <a href="/cal.php?id=2499" class="summary">Sandy PHP Group</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-06-26" class="dtstart">26</abbr>. <a href="/cal.php?id=3121" class="summary">Web UG [Munich] Meeting/Grill</a></span></li> + <li><span class="event_JPN vevent"><abbr title="2008-06-27" class="dtstart">27</abbr>. <a href="/cal.php?id=3127" class="summary">Tokyo CakePHP study meeting 3rd</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-06-28" class="dtstart">28</abbr>. <a href="/cal.php?id=2629" class="summary">Sacramento PHP Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-28" class="dtstart">28</abbr>. <a href="/cal.php?id=2662" class="summary">Miami Linux Meetup</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-06-30" class="dtstart">30</abbr>. <a href="/cal.php?id=1099" class="summary">Long Island PHP Users Group</a></span></li> + </ul> + + <h3>July</h3> + <h4>User Groups Events</h4> + <ul class="simple"> + <li><span class="event_USA vevent"><abbr title="2008-07-01" class="dtstart">01</abbr>. <a href="/cal.php?id=1745" class="summary">SW Florida Linux Users Group</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-01" class="dtstart">01</abbr>. <a href="/cal.php?id=1860" class="summary">PDXPHP monthly meeting</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-02" class="dtstart">02</abbr>. <a href="/cal.php?id=2352" class="summary">Meeting PHP Usergroup OWL</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-02" class="dtstart">02</abbr>. <a href="/cal.php?id=2495" class="summary">PHP Meetup Columbia MD</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-02" class="dtstart">02</abbr>. <a href="/cal.php?id=2682" class="summary">BostonPHP</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-02" class="dtstart">02</abbr>. <a href="/cal.php?id=2814" class="summary">Berlin PHP Usergroup Meeting</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=109" class="summary">SDPHP (San Diego, CA)</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=272" class="summary">Hannover</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=561" class="summary">Meetup Day</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1005" class="summary">Omaha PHP Users Group Meetup</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1304" class="summary">PHP London</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1624" class="summary">The Houston PHP Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1632" class="summary">Boston PHP Meetup</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1706" class="summary">Atlanta PHP User Group</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1795" class="summary">Manchester UK - PHP Group</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1797" class="summary">EdPUG - Edinburgh PHP User Group</a></span></li> + + <li><span class="event_AUS vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1918" class="summary">Sydney PHP Group meetings</a></span></li> + <li><span class="event_NZL vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=2017" class="summary">PHP UG Meetup Auckland</a></span></li> + <li><span class="event_ZAF vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=2195" class="summary">Cape Town PHP Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=2301" class="summary">Jacksonville User Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=2418" class="summary">Seattle PHP Meetup Group</a></span></li> + + <li><span class="event_DNK vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=2734" class="summary">The Copenhagen PHP Meetup Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=2932" class="summary">SF PHP Meetup</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-04" class="dtstart">04</abbr>. <a href="/cal.php?id=153" class="summary">Köln/Bonn</a></span></li> + <li><span class="event_IRN vevent"><abbr title="2008-07-04" class="dtstart">04</abbr>. <a href="/cal.php?id=2663" class="summary">Iran PHP developer's meetup</a></span></li> + <li><span class="event_CHN vevent"><abbr title="2008-07-06" class="dtstart">06</abbr>. <a href="/cal.php?id=1923" class="summary">PHP meeting online in China</a></span></li> + + <li><span class="event_BOL vevent"><abbr title="2008-07-06" class="dtstart">06</abbr>. <a href="/cal.php?id=2540" class="summary">meeting de LAMPistas en La Paz</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=1385" class="summary">Hamburg</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=1523" class="summary">Dallas PHP/MySQL Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=1670" class="summary">Dallas PHP Users Group (DPUG)</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=1652" class="summary">Austin PHP Meetup</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=1665" class="summary">OKC PHP Meetup</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=2238" class="summary">Seattle PHP Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-09" class="dtstart">09</abbr>. <a href="/cal.php?id=1395" class="summary">Wash DC PHP Developers Group</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-09" class="dtstart">09</abbr>. <a href="/cal.php?id=2503" class="summary">Stuttgart</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1848" class="summary">Meeting usergroup Dortmund</a></span></li> + + <li><span class="event_DEU vevent"><abbr title="2008-07-10" class="dtstart">10</abbr>. <a href="/cal.php?id=1946" class="summary">PHP Usergroup Frankfurt/Main</a></span></li> + <li><span class="event_AUS vevent"><abbr title="2008-07-10" class="dtstart">10</abbr>. <a href="/cal.php?id=2670" class="summary">Melbourne PHP User Group</a></span></li> + <li><span class="event_CAN vevent"><abbr title="2008-07-12" class="dtstart">12</abbr>. <a href="/cal.php?id=1732" class="summary">PHP User Group Nanaimo, BC/CA</a></span></li> + <li><span class="event_CHN vevent"><abbr title="2008-07-12" class="dtstart">12</abbr>. <a href="/cal.php?id=2580" class="summary">PEA meeting from phpchina</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-15" class="dtstart">15</abbr>. <a href="/cal.php?id=1738" class="summary">Madison PHP User's Group</a></span></li> + + <li><span class="event_AUS vevent"><abbr title="2008-07-15" class="dtstart">15</abbr>. <a href="/cal.php?id=2246" class="summary">PHP Brisbane Meetup Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-16" class="dtstart">16</abbr>. <a href="/cal.php?id=1545" class="summary">Miami PHP User Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-16" class="dtstart">16</abbr>. <a href="/cal.php?id=1546" class="summary">Broward Php Usergroup</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-16" class="dtstart">16</abbr>. <a href="/cal.php?id=1847" class="summary">Nashville PHP Users Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-16" class="dtstart">16</abbr>. <a href="/cal.php?id=2208" class="summary">Chicago PHP User Group Brunch</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-17" class="dtstart">17</abbr>. <a href="/cal.php?id=1704" class="summary">TriPUG</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-17" class="dtstart">17</abbr>. <a href="/cal.php?id=1719" class="summary">OINK-PUG (Cincinnati, Ohio)</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-17" class="dtstart">17</abbr>. <a href="/cal.php?id=1820" class="summary">Utah PHP Users Group Meeting</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-19" class="dtstart">19</abbr>. <a href="/cal.php?id=1131" class="summary">Kansas City</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-19" class="dtstart">19</abbr>. <a href="/cal.php?id=1346" class="summary">Miami Linux Users Group</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-19" class="dtstart">19</abbr>. <a href="/cal.php?id=1671" class="summary">Twin Cities PHP</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-19" class="dtstart">19</abbr>. <a href="/cal.php?id=2449" class="summary">Los Angeles LAMPsig</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-22" class="dtstart">22</abbr>. <a href="/cal.php?id=409" class="summary">New York</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-22" class="dtstart">22</abbr>. <a href="/cal.php?id=384" class="summary">AzPHP</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-22" class="dtstart">22</abbr>. <a href="/cal.php?id=3075" class="summary">DCPHP Beverage Subgroup</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-26" class="dtstart">26</abbr>. <a href="/cal.php?id=2629" class="summary">Sacramento PHP Group</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-26" class="dtstart">26</abbr>. <a href="/cal.php?id=2662" class="summary">Miami Linux Meetup</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-28" class="dtstart">28</abbr>. <a href="/cal.php?id=1099" class="summary">Long Island PHP Users Group</a></span></li> + <li><span class="event_MYS vevent"><abbr title="2008-07-29" class="dtstart">29</abbr>. <a href="/cal.php?id=2527" class="summary">Malaysia PHP Meetup</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-29" class="dtstart">29</abbr>. <a href="/cal.php?id=2600" class="summary">PHP Usergroup Karlsruhe</a></span></li> + + <li><span class="event_DEU vevent"><abbr title="2008-07-29" class="dtstart">29</abbr>. <a href="/cal.php?id=2660" class="summary">PHPUG Wuerzburg</a></span></li> + <li><span class="event_IRL vevent"><abbr title="2008-07-30" class="dtstart">30</abbr>. <a href="/cal.php?id=2500" class="summary">Irish PHP Users Group meeting</a></span></li> + <li><span class="event_SAU vevent"><abbr title="2008-07-31" class="dtstart">31</abbr>. <a href="/cal.php?id=1316" class="summary">Arabic PHP Group Meeting</a></span></li> + <li><span class="event_MYS vevent"><abbr title="2008-07-31" class="dtstart">31</abbr>. <a href="/cal.php?id=1708" class="summary">Malaysia PHP User Group Meet Up</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-31" class="dtstart">31</abbr>. <a href="/cal.php?id=2499" class="summary">Sandy PHP Group</a></span></li> + </ul> + <h4>Training</h4> + <ul class="simple"> + <li><span class="event_ESP vevent"><abbr title="2008-07-01" class="dtstart">01</abbr>. <a href="/cal.php?id=841" class="summary">Curso on-line de PHP-MySQL</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-01" class="dtstart">01</abbr>. <a href="/cal.php?id=1490" class="summary">PHP Class at CalTek</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-01" class="dtstart">01</abbr>. <a href="/cal.php?id=3116" class="summary">Online - PHP I : Foundations</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-01" class="dtstart">01</abbr>. <a href="/cal.php?id=3117" class="summary">Online - PHP 5 Certification</a></span></li> + + <li><span class="event_IND vevent"><abbr title="2008-07-02" class="dtstart">02</abbr>. <a href="/cal.php?id=2144" class="summary">PHP Training - Chennai - India</a></span></li> + <li><span class="event_ESP vevent"><abbr title="2008-07-03" class="dtstart">03</abbr>. <a href="/cal.php?id=1516" class="summary">Curso de PHP Avanzado en Bilbao</a></span></li> + <li><span class="event_BRA vevent"><abbr title="2008-07-05" class="dtstart">05</abbr>. <a href="/cal.php?id=2702" class="summary">PHP &amp; AJAX -Construindo Websites</a></span></li> + <li><span class="event_IND vevent"><abbr title="2008-07-06" class="dtstart">06</abbr>. <a href="/cal.php?id=2023" class="summary">Ahmedabad PHP Group Training</a></span></li> + + <li><span class="event_ESP vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=338" class="summary">MySQL Spain</a></span></li> + <li><span class="event_ESP vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=456" class="summary">Curso PHP Madrid</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=641" class="summary">PHP E-Learning/Germany</a></span></li> + <li><span class="event_ESP vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=998" class="summary">Curso on-line ActionScript / PHP</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=1198" class="summary">PHP &amp; MySQL Training in Kassel</a></span></li> + + <li><span class="event_BRA vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=1360" class="summary">PHP &amp; MySQL com Dreamweaver MX</a></span></li> + <li><span class="event_ESP vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=1981" class="summary">Curso on-line de PHP</a></span></li> + <li><span class="event_BRA vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=2051" class="summary">PHP &amp; MYSQL-Construindo WebSites</a></span></li> + <li><span class="event_DEU vevent"><abbr title="2008-07-07" class="dtstart">07</abbr>. <a href="/cal.php?id=3053" class="summary">PHP Training Heilbronn</a></span></li> + + <li><span class="event_GBR vevent"><abbr title="2008-07-08" class="dtstart">08</abbr>. <a href="/cal.php?id=2843" class="summary">PHP Web Sites Optimization</a></span></li> + <li><span class="event_ESP vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=1466" class="summary">PHP para Expertos Curso on-line</a></span></li> + <li><span class="event_ECU vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=1583" class="summary">Curso PHP y MySQL</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=2834" class="summary">Developing Websites with PHP</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=3006" class="summary">PHP Boot Camp (Raleigh, NC)</a></span></li> + + <li><span class="event_USA vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=3072" class="summary">PHP 5 and PostgreSQL Bootcamp</a></span></li> + <li><span class="event_USA vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=3112" class="summary">PHP/MySQL training San Francisco</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-14" class="dtstart">14</abbr>. <a href="/cal.php?id=3118" class="summary">Zend online class : PHP II</a></span></li> + <li><span class="event_ESP vevent"><abbr title="2008-07-15" class="dtstart">15</abbr>. <a href="/cal.php?id=1389" class="summary">Cursos de PHP en Bilbao</a></span></li> + <li><span class="event_IND vevent"><abbr title="2008-07-17" class="dtstart">17</abbr>. <a href="/cal.php?id=2408" class="summary">Chennai PHP Training</a></span></li> + + <li><span class="event_DEU vevent"><abbr title="2008-07-21" class="dtstart">21</abbr>. <a href="/cal.php?id=1200" class="summary">PHP &amp; MySQL Training / Gießen</a></span></li> + <li><span class="event_ZAF vevent"><abbr title="2008-07-21" class="dtstart">21</abbr>. <a href="/cal.php?id=2589" class="summary">PHP Intro Course South Africa</a></span></li> + <li><span class="event_GBR vevent"><abbr title="2008-07-22" class="dtstart">22</abbr>. <a href="/cal.php?id=231" class="summary">UK PHP Training</a></span></li> + <li><span class="event_BRA vevent"><abbr title="2008-07-24" class="dtstart">24</abbr>. <a href="/cal.php?id=1137" class="summary">PHP Brasil - Training</a></span></li> + + <li><span class="event_IND vevent"><abbr title="2008-07-28" class="dtstart">28</abbr>. <a href="/cal.php?id=2421" class="summary">Basic PHP Course</a></span></li> + </ul> + </div><!--.events--> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + </div><!--.content--> + </li><!--#right-column--> + </ul> + </li><!--#content--> + + <li id="footer"><span class="corners-top"><span></span></span> + <div class="info"> + <div id="copyright"><a href="/copyright.php">Copyright © 2001-2008 The PHP Group</a><br />All rights reserved.</div> + <div id="footer-menu"> + <ul> + <li class="first"><a href="/feed.atom">Atom</a></li> + <li><a href="/source.php?url=/index.php">Show source</a></li> + <li><a href="/credits.php">Credits</a></li> + <li><a href="/stats/">Stats</a></li> + <li><a href="/sitemap.php">Sitemap</a></li> + <li><a href="/contact.php">Contact</a></li> + <li><a href="/contact.php#ads">Advertising</a></li> + <li class="last"><a href="/mirrors.php">Mirror sites</a></li> + </ul><br/><small><a href="/mirror.php">This mirror</a> generously provided by: <a href="http://developer.yahoo.com/">Yahoo! Inc.</a> Last updated: Mon Jun 9 01:34:45 2008 PDT</small> + </div> + </div> + <span class="corners-bottom"><span></span></span></li><!--#footer--> + </ul><!--#root--> +</body> +</html> \ No newline at end of file diff --git a/design/img/block_sprites.gif b/design/img/block_sprites.gif new file mode 100644 index 0000000..d3bd450 Binary files /dev/null and b/design/img/block_sprites.gif differ diff --git a/design/img/corners-left.gif b/design/img/corners-left.gif new file mode 100644 index 0000000..85f3157 Binary files /dev/null and b/design/img/corners-left.gif differ diff --git a/design/img/corners-right.gif b/design/img/corners-right.gif new file mode 100644 index 0000000..d2e5cbc Binary files /dev/null and b/design/img/corners-right.gif differ diff --git a/design/img/download-button.gif b/design/img/download-button.gif new file mode 100644 index 0000000..4ef0c39 Binary files /dev/null and b/design/img/download-button.gif differ diff --git a/design/img/footer-back.gif b/design/img/footer-back.gif new file mode 100644 index 0000000..e625b61 Binary files /dev/null and b/design/img/footer-back.gif differ diff --git a/design/img/header-corners.jpg b/design/img/header-corners.jpg new file mode 100644 index 0000000..245f37b Binary files /dev/null and b/design/img/header-corners.jpg differ diff --git a/design/img/header-logo.jpg b/design/img/header-logo.jpg new file mode 100644 index 0000000..6e724bf Binary files /dev/null and b/design/img/header-logo.jpg differ diff --git a/design/img/main-corners-back.gif b/design/img/main-corners-back.gif new file mode 100644 index 0000000..40b0db7 Binary files /dev/null and b/design/img/main-corners-back.gif differ diff --git a/design/img/menu-corners-back.gif b/design/img/menu-corners-back.gif new file mode 100644 index 0000000..a9554da Binary files /dev/null and b/design/img/menu-corners-back.gif differ diff --git a/design/img/news-line-back.gif b/design/img/news-line-back.gif new file mode 100644 index 0000000..28cb97a Binary files /dev/null and b/design/img/news-line-back.gif differ diff --git a/design/img/note-username-back.gif b/design/img/note-username-back.gif new file mode 100644 index 0000000..4df9839 Binary files /dev/null and b/design/img/note-username-back.gif differ diff --git a/design/img/note-username-back.jpg b/design/img/note-username-back.jpg new file mode 100644 index 0000000..4d75330 Binary files /dev/null and b/design/img/note-username-back.jpg differ diff --git a/design/index.html b/design/index.html new file mode 100644 index 0000000..e6c6479 --- /dev/null +++ b/design/index.html @@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> +<head> +<title>PHP: Getting Help</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> +<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> +<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<!--[if IE ]> +<link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> +<![endif]--> +</head> + +<body id="homepage"> + <ul id="root"> + <li id="header"> + <span class="side-left"></span> + <span class="side-right"></span> + <div class="content"> + <h1><a href="index.html">PHP: Hypertext Preprocessor</a></h1> + </div> + </li><!--#header--> + + <li id="content"> + <div id="page-area"> + <div class="content"><span class="corners-top"><span></span></span> + <div class="info"> + + <h2>Pages:</h2> + + <ul> + <li><a href="homepage.html">Homepage</a></li> + <li><a href="strpos.html">Strpos Page</a></li> + <li><a href="support.html">Support Page</a></li> + <li><a href="events.html">Add Event Page</a></li> + <li><a href="styles.html">Additional Styles Page</a></li> + </ul> + </div> + <span class="corners-bottom"><span></span></span></div> + </div> + </li><!--#content--> + </ul><!--#root--> +</body> +</html> \ No newline at end of file diff --git a/design/strpos.html b/design/strpos.html new file mode 100644 index 0000000..1994ad1 --- /dev/null +++ b/design/strpos.html @@ -0,0 +1,268 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> +<head> +<title>strpos - PHP: Hypertext Preprocessor</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> +<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> +<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<!--[if IE ]> +<link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> +<![endif]--> +</head> + +<body id="func-strpos"> + <ul id="root"> + <li id="header"> + <span class="side-left"></span> + <span class="side-right"></span> + <div class="content"> + <h1><a href="index.html">PHP: Hypertext Preprocessor</a></h1> + <div id="search-box"> + <label>Search for</label><span><input type="text" class="text" maxlength="20" name="q" /></span><label>in the</label><span><select><option>functions list</option></select></span><span><input type="submit" class="button" value="Search" /></span> + </div> + </div> + </li><!--#header--> + <li id="main-menu"><span class="corners-top"><span></span></span> + <ul><li class="first"><a href="#">Downloads</a></li><li><a href="#">Documentation</a></li><li><a href="#">Faq</a></li><li><a href="#">Getting Help</a></li><li><a href="#">Mailing Lists</a></li><li><a href="#">Reporting Bugs</a></li><li><a href="#">Php.net Sites</a></li><li><a href="#">Links</a></li><li><a href="#">Conferences</a></li><li class="last"><a href="#">My Php.net</a></li></ul> + <span class="corners-bottom"><span></span></span></li><!--#main-menu--> + + <li id="content"> + <ul id="content-columns"> + + + <li id="left-column"> + <div class="content"> + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <h3>PHP Manual</h3> + + <ul id="functions-list"> + <li><a href="#">PHP Manual</a></li> + <li><a href="#">Function Reference</a></li> + <li><a href="#">Text Processing</a></li> + <li><a href="#">Strings</a></li> + <li><a href="#">String Functions</a></li> + <li class="sel"><a href="#">Functions</a> + <ul> + <li><a href="#">addcslashes</a></li> + <li><a href="#">addslashes</a></li> + <li><a href="#">bin2hex</a></li> + <li><a href="#">chop</a></li> + <li><a href="#">chr</a></li> + <li><a href="#">chunk_ split</a></li> + <li><a href="#">convert_ cyr_ string</a></li> + <li><a href="#">convert_ uudecode</a></li> + <li><a href="#">convert_ uuencode</a></li> + <li><a href="#">count_ chars</a></li> + <li class="sel"><a href="#">crc32</a></li> + <li><a href="#">crypt</a></li> + <li><a href="#">echo</a></li> + </ul> + </li> + </ul> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + </div> + </li><!--#left-column--> + + <li id="main-column"> + <div class="content"> + + <div class="adv-block"><span class="corners-top"><span></span></span> + <a href="#" class="prev">strbrk</a> + <a href="#" class="next">strbrk</a> + <p>View this page in <select><option>Bulgarian</option></select> <input type="submit" value="&raquo;" /></p> + <span class="corners-bottom"><span></span></span></div><!--.block--> + + + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + + <h3>strpos</h3> + <p class="func-ver">(PHP 4, PHP 5 )</p> + <dfn class="func-descr">strpos — Find position of first occurrence of a string</dfn> + <p class="func-date">Last updated: <span>Fri, 06 Jun 2008</span></p> + <hr /> + <h4>Description</h4> + <div class="info-block"> + <span class="type">int</span> + <span class="methodname"><strong>strpos</strong></span> + ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$haystack</tt></span>, + <span class="methodparam"><span class="type"><a href="#" class="type mixed">mixed</a></span> + <tt class="parameter">$needle</tt></span> + [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$offset</tt></span> + ] ) + </div> + <p>Returns the numeric position of the first occurrence of needle in the haystack string. Unlike the strrpos() before PHP 5, this function can take a full string as the needle parameter and the entire string will be used.</p> + <h4>Parameters</h4> + <dl> + <dt><span class="term"><em><tt class="parameter">haystack</tt></em></span></dt> + <dd>The string to search in</dd> + <dt><span class="term"><em><tt class="parameter">needle</tt></em></span></dt> + <dd>If <em><tt class="parameter">needle </tt></em> is not a string, it is converted to an integer and applied as the ordinal value of a character.</dd> + <dt><span class="term"><em><tt class="parameter">offset</tt></em></span></dt> + <dd>The optional offset parameter allows you to specify which character in haystack to start searching. The position returned is still relative to the beginning of haystack .</dd> + </dl> + <h4>Return Values</h4> + <p>Returns the position as an integer. If <em><tt class="parameter">needle</tt></em> is not found, <b>strpos()</b> will return <a href="language.types.boolean.php" class="type boolean">boolean</a> <strong><tt>FALSE</tt></strong>.</p> + <div class="warning"> + <p><strong>Warning</strong></p> + <p>This function may return Boolean <strong><tt>FALSE</tt></strong>, but may also return a non-Boolean value which + evaluates to <strong><tt>FALSE</tt></strong>, such as <em>0</em> or + "". Please read the section on <a href="language.types.boolean.php" class="link">Booleans</a> for more + information. Use <a href="language.operators.comparison.php" class="link">the === + operator</a> for testing the return value of this + function.</p></div> + + <h4>Examples</h4> + <div class="info-block"> + <h4>Example #1 strpos() examples</h4> + <code> + <span style="color: #000000"> + <span style="color: #0000BB">&lt;?php<br />$mystring&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'abc'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$findme&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'a'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$pos&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$mystring</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$findme</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Note&nbsp;our&nbsp;use&nbsp;of&nbsp;===.&nbsp;&nbsp;Simply&nbsp;==&nbsp;would&nbsp;not&nbsp;work&nbsp;as&nbsp;expected<br />//&nbsp;because&nbsp;the&nbsp;position&nbsp;of&nbsp;'a'&nbsp;was&nbsp;the&nbsp! ;0th&nbsp;(first)&nbsp;character.<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$pos&nbsp;</span><span style="color: #007700">===&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"The&nbsp;string&nbsp;'$findme'&nbsp;was&nbsp;not&nbsp;found&nbsp;in&nbsp;the&nbsp;string&nbsp;'$mystring'"</span><span style="color: #007700">;<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"The&nbsp;string&nbsp;'$findme'&nbsp;was&nbsp;found&nbsp;in&nbsp;the&nbsp;string&nbsp;'$mystring'"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"&nbsp;and&nbsp;exists&nbsp;at&nbsp;position&nbsp;$pos"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;We&nbsp;can&nbsp;search&nbsp;for&nbsp;the&! nbsp;character,&nbsp;ignoring&nbsp;anything&nbsp;before&nbsp;t! he&nbsp;offset<br /></span><span style="color: #0000BB">$newstring&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'abcdef&nbsp;abcdef'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$pos&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$newstring</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'a'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;$pos&nbsp;=&nbsp;7,&nbsp;not&nbsp;0<br /></span><span style="color: #0000BB">?&gt;</span> + </span> + </code> + </div> + <h4>Notes</h4> + <div class="notes"> <strong>Note:</strong> This function is binary-safe.</div> + <h4>See also:</h4> + <ul class="simplelist"> + <li><a href="function.strrpos.php" class="function" rel="rdfs-seeAlso">strrpos()</a></li> + <li><a href="function.stripos.php" class="function" rel="rdfs-seeAlso">stripos()</a></li> + <li><a href="function.strripos.php" class="function" rel="rdfs-seeAlso">strripos()</a></li> + <li><a href="function.strrchr.php" class="function" rel="rdfs-seeAlso">strrchr()</a></li> + <li><a href="function.substr.php" class="function" rel="rdfs-seeAlso">substr()</a></li> + <li><a href="function.stristr.php" class="function" rel="rdfs-seeAlso">stristr()</a></li> + <li><a href="function.strstr.php" class="function" rel="rdfs-seeAlso">strstr()</a></li> + </ul> + + <hr /> + + <div class="add-note"><a href="#">Add Note</a></div> + <h4>User Contributed Notes</h4> + <ul id="contributed-notes"> + <li> +<div class="username"><strong>pawhox</strong><br/><a href="#83437">26-May-2008 06:19</a></div> +<div class="ncontent"> +<div class="html phpcode note"><span class="corners-top"><span></span></span> +<code> +<span class="html"> +Hello! I was founding a function, which finds any occurence of a string (no: first occurence). I wasn't, so I maked this function! It may be very useful.<br /> +<br /> +<span class="default">&lt;?php<br /> +<br /> +int strnpos</span><span class="keyword">(</span><span class="default">string $haystack</span><span class="keyword">, </span><span class="default">mixed $needle</span><span class="keyword">, </span><span class="default">int $occurence</span><span class="keyword">);<br /> +<br /> +</span><span class="default">?&gt;<br /> +</span><br /> +Example:<br /> +<br /> +<span class="default">&lt;?php<br /> +<br /> +strnpos</span><span class="keyword">(</span><span class="string">"I like the bananas. You like coke. We like chocolate."</span><span class="keyword">, </span><span class="string">"like"</span><span class="keyword">, </span><span class="default">2</span><span class="keyword">); </span><span class="comment">// 24<br /> +<br /> +</span><span class="default">?&gt;<br /> +</span><br /> +Here's code of this function:<br /> +<br /> +<span class="default">&lt;?php<br /> +<br /> +</span><span class="keyword">function </span><span class="default">strnpos</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">$str</span><span class="keyword">, </span><span class="default">$n</span><span class="keyword">)<br /> +&nbsp;&nbsp;&nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; <br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if (</span><span class="default">$n </span><span class="keyword">&lt;= </span><span class="default">0 </span><span class="keyword">|| </span><span class="default">intval</span><span class="keyword">(</span><span class="default">$n</span><span class="keyword">) != </span><span class="default">$n </span><span class="keyword">|| </span><span class="default">substr_count</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">$str</span><span class="keyword">) &lt; </span><span class="default">$n</span><span class="keyword">)&nbsp; return </span><span class="default">FALSE</span><span class="keyword">;<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; </span><span class="default">$str </span><span class="keyword">= </span><span class="default">strval</span><span class="keyword">(</span><span class="default">$str</span><span class="keyword">);<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; </span><span class="default">$len </span><span class="keyword">= </span><span class="default">0</span><span class="keyword">;<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; for (</span><span class="default">$i</span><span class="keyword">=</span><span class="default">0 </span><span class="keyword">; </span><span class="default">$i</span><span class="keyword">&lt;</span><span class="default">$n</span><span class="keyword">-</span><span class="default">1 </span><span class="keyword">; ++</span><span class="default">$i</span><span class="keyword">)<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; {<br /> +&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if ( </span><span class="default">strpos</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">$str</span><span class="keyword">) === </span><span class="default">FALSE </span><span class="keyword">) return </span><span class="default">FALSE</span><span class="keyword">;<br /> +&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> +&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span class="default">$len </span><span class="keyword">+= </span><span class="default">strlen</span><span class="keyword">( </span><span class="default">substr</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">0</span><span class="keyword">, </span><span class="default">strpos</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">$str</span><span class="keyword">) + </span><span class="default">strlen</span><span class="keyword">(</span><span class="default">$str</span><span class="keyword">)) );<br /> +&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br /> +&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span class="default">$base </span><span class="keyword">= </span><span class="default">substr</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">strpos</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">$str</span><span class="keyword">) + </span><span class="default">strlen</span><span class="keyword">(</span><span class="default">$str</span><span class="keyword">) );<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; return </span><span class="default">strpos</span><span class="keyword">(</span><span class="default">$base</span><span class="keyword">, </span><span class="default">$str</span><span class="keyword">) + </span><span class="default">$len</span><span class="keyword">;<br /> +&nbsp;&nbsp;&nbsp; }<br /> +<br /> +</span><span class="default">?&gt;</span> +</span> +</code> +<span class="corners-bottom"><span></span></span></div> +</div> + </li> + <li> +<div class="username"><strong>ilaymyhat-rem0ve at yahoo dot com</strong><br/><a href="#82229">01-Apr-2008 05:17</a></div> +<div class="ncontent"> +<div class="html phpcode note"><span class="corners-top"><span></span></span> +<code><span class="html"> +This might be useful.<br /> +<br /> +class String{<br /> +&nbsp;&nbsp;&nbsp; <br /> + +&nbsp;&nbsp;&nbsp; //Look for a $needle in $haystack in any position<br /> +&nbsp;&nbsp;&nbsp; public static function contains(&amp;$haystack, &amp;$needle, &amp;$offset)<br /> +&nbsp;&nbsp;&nbsp; {<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $result = strpos($haystack, $needle, $offset);<br /> + +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; return $result !== FALSE;<br /> +&nbsp;&nbsp;&nbsp; }<br /> +&nbsp;&nbsp;&nbsp; <br /> +&nbsp;&nbsp;&nbsp; //intuitive implementation .. if not found returns -1.<br /> +&nbsp;&nbsp;&nbsp; public static function strpos(&amp;$haystack, &amp;$needle, &amp;$offset)<br /> + +&nbsp;&nbsp;&nbsp; {<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $result = strpos($haystack, $needle, $offset);<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if ($result === FALSE )<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; {<br /> + +&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; return -1;<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br /> +&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; return $result;<br /> + +&nbsp;&nbsp;&nbsp; }<br /> +&nbsp;&nbsp;&nbsp; <br /> +}//String</span> +</code> +<span class="corners-bottom"><span></span></span></div> +</div> + + </li> + </ul> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + <div class="adv-block"><span class="corners-top"><span></span></span> + <a href="#" class="prev">strbrk</a> + <a href="#" class="next">strbrk</a> + <p>View this page in <select><option>Bulgarian</option></select> <input type="submit" value="&raquo;" /></p> + <span class="corners-bottom"><span></span></span></div><!--.block--> + </div> + </li><!--#main-column--> + </ul> + </li><!--#content--> + + <li id="footer"><span class="corners-top"><span></span></span> + <div class="info"> + <div id="copyright"><a href="/copyright.php">Copyright © 2001-2008 The PHP Group</a><br />All rights reserved.</div> + <div id="footer-menu"> + <ul> + <li class="first"><a href="/feed.atom">Atom</a></li> + <li><a href="/source.php?url=/index.php">Show source</a></li> + <li><a href="/credits.php">Credits</a></li> + <li><a href="/stats/">Stats</a></li> + <li><a href="/sitemap.php">Sitemap</a></li> + <li><a href="/contact.php">Contact</a></li> + <li><a href="/contact.php#ads">Advertising</a></li> + <li class="last"><a href="/mirrors.php">Mirror sites</a></li> + </ul><br/><small><a href="/mirror.php">This mirror</a> generously provided by: <a href="http://developer.yahoo.com/">Yahoo! Inc.</a> Last updated: Mon Jun 9 01:34:45 2008 PDT</small> + </div> + </div> + <span class="corners-bottom"><span></span></span></li><!--#footer--> + </ul><!--#root--> +</body> +</html> \ No newline at end of file diff --git a/design/styles.html b/design/styles.html new file mode 100644 index 0000000..04f8ec7 --- /dev/null +++ b/design/styles.html @@ -0,0 +1,146 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> +<head> +<title>PHP: Getting Help</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> +<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> +<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<!--[if IE ]> +<link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> +<![endif]--> +</head> + +<body id="homepage"> + <ul id="root"> + <li id="header"> + <span class="side-left"></span> + <span class="side-right"></span> + <div class="content"> + <h1><a href="index.html">PHP: Hypertext Preprocessor</a></h1> + <div id="search-box"> + <label>Search for</label><span><input type="text" class="text" maxlength="20" name="q" /></span><label>in the</label><span><select><option>functions list</option></select></span><span><input type="submit" class="button" value="Search" /></span> + </div> + </div> + </li><!--#header--> + <li id="main-menu"><span class="corners-top"><span></span></span> + <ul><li class="first"><a href="#">Downloads</a></li><li><a href="#">Documentation</a></li><li><a href="#">Faq</a></li><li><a href="#">Getting Help</a></li><li><a href="#">Mailing Lists</a></li><li><a href="#">Reporting Bugs</a></li><li><a href="#">Php.net Sites</a></li><li><a href="#">Links</a></li><li><a href="#">Conferences</a></li><li class="last"><a href="#">My Php.net</a></li></ul> + <span class="corners-bottom"><span></span></span></li><!--#main-menu--> + + + <li id="content"> + <div id="page-area"> + <div class="content"><span class="corners-top"><span></span></span> + <div class="info"> + + + <h1>H1 Header</h1> + <h2>H2 Header</h2> + <h3>H3 Header</h3> + <h4>H4 Header</h4> + <h5>H5 Header</h5> + <h6>H6 Header</h6> + + <br /> + <hr /> + <br /> + + <p>UL &amp; OL:</p> + <ul> + <li>First</li> + <li>Second</li> + </ul> + <ol> + <li>First</li> + <li>Second</li> + </ol> + + <p>DEL, INS, SUB, SUP, ACRONYM:</p> + <p> + I love <del>Ruby</del> <ins>PHP</ins> <sub>Sub</sub> and <sup>Sup</sup>, <acronym title="Document Object Model">DOM</acronym> + </p> + + <p>BLOCKQUOTE:</p> + <blockquote> + <p> + 2008-06-09: W3C launched a new Web Applications (WebApps) Working Group, co-Chaired by Art Barstow (Nokia) and Charles McCathieNevile (Opera Software). + </p> + </blockquote> + + <p>CITE, Q:</p> + <p class="cite"> + <cite>Now is the accepted time to make your regular, annual, good resolutions. Next week you can begin paving hell with them as usual.</cite> + </p> + <p class="t-right">Mark Twain</p> + + <p>Mark Twain said, that <q>The lack of money is the root of all evil.</q></p> + + <p>DFN:</p> + <p> + <dfn>PHP</dfn> (a recursive acronym for PHP: Hypertext Preprocessor) is a computer scripting language, originally designed for producing dynamic web pages. It is for server-side scripting, but can be used from a command line interface or in standalone graphical applications. + </p> + + <p>KBD:</p> + <p> + Please press <kbd>&lt;Alt&gt;+&lt;Enter&gt;</kbd> + </p> + + <p>VAR:</p> + <p> + Let's get <var>content_title</var> from table <var>content</var>, with statement <code>section_id = 1</code>. + </p> + +<p>PRE:</p> +<pre> +- -- ------ -|--- +----- ------ |----- +||----| ||--|| ---| +||----- ---- ----| +||-----| |||| |----|-| +|| ----- -- -----| - +||- ----| -- |-----||- +||---||-- -- ------|-- +||--|| --|-- |--|------ +|| -|| |-- --- - ---- +|| -|| --|-|--| - ---| +|---||- |-----| |----- +|---|| |---- |----| +|----| --- |------ +------ -------- +</pre> + +<p>CODE:</p> +<code> + <span class="default">&lt;?php</span><br/> + &nbsp;&nbsp;<span class="keyword">function</span>&nbsp;<span class="default">hello</span>&nbsp;<span class="keyword">(</span><span class="keyword">)</span>&nbsp;<span class="keyword">{</span><br/> + &nbsp;&nbsp;&nbsp;&nbsp;<span class="default">echo</span> <span class="string">"Hello World!"</span><span class="default">;</span>&nbsp;<span class="comment">// say hello</span><br/> + &nbsp;&nbsp;<span class="keyword">}</span><br/> + <span class="default">?&gt;</span> +</code> + + + </div> + <span class="corners-bottom"><span></span></span></div> + </div> + </li><!--#content--> + + <li id="footer"><span class="corners-top"><span></span></span> + <div class="info"> + <div id="copyright"><a href="/copyright.php">Copyright © 2001-2008 The PHP Group</a><br />All rights reserved.</div> + <div id="footer-menu"> + <ul> + <li class="first"><a href="/feed.atom">Atom</a></li> + <li><a href="/source.php?url=/index.php">Show source</a></li> + <li><a href="/credits.php">Credits</a></li> + <li><a href="/stats/">Stats</a></li> + <li><a href="/sitemap.php">Sitemap</a></li> + <li><a href="/contact.php">Contact</a></li> + <li><a href="/contact.php#ads">Advertising</a></li> + <li class="last"><a href="/mirrors.php">Mirror sites</a></li> + </ul><br/><small><a href="/mirror.php">This mirror</a> generously provided by: <a href="http://developer.yahoo.com/">Yahoo! Inc.</a> Last updated: Mon Jun 9 01:34:45 2008 PDT</small> + </div> + </div> + <span class="corners-bottom"><span></span></span></li><!--#footer--> + </ul><!--#root--> +</body> +</html> \ No newline at end of file diff --git a/design/support.html b/design/support.html new file mode 100644 index 0000000..93e37c2 --- /dev/null +++ b/design/support.html @@ -0,0 +1,162 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"> +<head> +<title>PHP: Getting Help</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link type="text/css" media="screen" rel="stylesheet" href="css/screen.css" /> +<link type="text/css" media="print" rel="stylesheet" href="css/print.css" /> +<link type="text/css" media="handfield" rel="stylesheet" href="css/handfield.css" /> +<!--[if IE ]> +<link type="text/css" rel="stylesheet" media="screen" href="css/ie.css" /> +<![endif]--> +</head> + +<body id="page-support"> + <ul id="root"> + <li id="header"> + <span class="side-left"></span> + <span class="side-right"></span> + <div class="content"> + <h1><a href="index.html">PHP: Hypertext Preprocessor</a></h1> + <div id="search-box"> + <label>Search for</label><span><input type="text" class="text" maxlength="20" name="q" /></span><label>in the</label><span><select><option>functions list</option></select></span><span><input type="submit" class="button" value="Search" /></span> + </div> + </div> + </li><!--#header--> + <li id="main-menu"><span class="corners-top"><span></span></span> + <ul><li class="first"><a href="#">Downloads</a></li><li><a href="#">Documentation</a></li><li><a href="#">Faq</a></li><li><a href="#">Getting Help</a></li><li><a href="#">Mailing Lists</a></li><li><a href="#">Reporting Bugs</a></li><li><a href="#">Php.net Sites</a></li><li><a href="#">Links</a></li><li><a href="#">Conferences</a></li><li class="last"><a href="#">My Php.net</a></li></ul> + <span class="corners-bottom"><span></span></span></li><!--#main-menu--> + + + <li id="content"> + <div id="page-area"> + <div class="content"><span class="corners-top"><span></span></span> + <div class="info"> + +<h2>Documentation</h2> + +<p> + A good place to start is by skimming through the ever-growing list of <a href="/FAQ.php">frequently asked questions (with answers, of course)</a>. Then + have a look at the rest of the online manual and other resources in the <a href="/docs.php">documentation</a> section. +</p> + +<h2>Books</h2> + +<p> + Books are convenient resources to begin exploring or extend your + PHP knowledge. There are literally thousands of books available in + English and numerous in other languages. Search at your favourite + online or offline bookstore. You can search at + <a href="http://www.amazon.com/exec/obidos/external-search?mode=books&amp;keyword=PHP&amp;tag=wwwphpnet">Amazon.com</a>, or + go directly to + <a href="http://www.amazon.de/exec/obidos/redirect-home/wwwphpnet07">Amazon.de</a> + or <a href="http://www.amazon.fr/exec/obidos/redirect-home/wwwphpnet0f">Amazon.fr</a> + and search there. +</p> + +<h2>Mailing Lists</h2> + +<p> + There are a number of mailing lists devoted to talking about PHP and related + projects. <a href="mailing-lists.php">This list</a> describes them all, has + links to searchable archives for all of the lists, and explains how to + subscribe to the lists. +</p> + +<h2>Newsgroups</h2> + +<p> + The PHP language newsgroup is <tt>comp.lang.php</tt>, available on any + news server around the globe. In addition to this many of our mailing + lists are also reflected onto the news server at + <a href="news://news.php.net">news://news.php.net/</a>. The + server also has a read only web interface at + <a href="http://news.php.net/">http://news.php.net/</a>. + +</p> + +<p> + Mailing list messages are transfered to newsgroup posts and + newsgroup posts are sent to the mailing lists. Please note + that these newsgroups are only available on this server. +</p> + +<h2>User Groups</h2> + +<p> + Christopher R. Moewes-Bystrom is running a PHP user group registry at <a href="http://www.phpusergroups.org/">http://www.phpusergroups.org/</a>. + There's also a list of user groups in Germany, as well as news from them, + and link to other countries user groups at + <a href="http://www.phpug.de/">http://www.phpug.de/</a>. + <a href="http://php.meetup.com/">PHP Meetup</a> is another great + opportunity to get together. + +</p> + +<h2>Events &amp; Training</h2> + +<p> + A list of upcoming events (such as user group meetings and PHP training + sessions) is included in the right-hand column of the front page, and + on the <a href="/cal.php">event calendar page</a>. If you want to list + an upcoming event, just fill out the form <a href="/submit-event.php">on this page</a>. +</p> + +<h2>Sample Code</h2> + +<p> + Looking for some more sample PHP scripts? Our <a href="/links.php">links page</a> lists some archives of sample PHP code - + great places to find many example scripts and useful functions, organized for + your searching pleasure! +</p> + +<h2>Instant Resource Center</h2> + +<p> + Otherwise known as IRC or Internet Relay Chat. Here you can usually find + experienced PHP people sitting around doing nothing on various channels with + php in their names. Note that there is no official IRC channel. + Check <a href="http://oftc.net">OFTC</a> or any other major network + (<a href="http://www.efnet.org/">EFNet</a>, + <a href="http://www.ircnet.com/">IRCNet</a>, + <a href="http://www.quakenet.org">QuakeNet</a>, + <a href="http://www.dal.net/">DALNet</a> and + <a href="http://www.freenode.net/">freenode</a>). + +</p> + +<h2>PHP.net webmasters</h2> + +<p> + If you have a problem or suggestion <em>in connection with the PHP.net + website or mirror sites</em>, <a href="/contact.php">please + contact the webmasters</a>. If you have problems setting up PHP + or using some functionality, please ask your question on a support + channel detailed above, the webmasters will not answer any such + questions. +</p> + </div> + <span class="corners-bottom"><span></span></span></div> + </div> + </li><!--#content--> + + <li id="footer"><span class="corners-top"><span></span></span> + <div class="info"> + <div id="copyright"><a href="/copyright.php">Copyright © 2001-2008 The PHP Group</a><br />All rights reserved.</div> + <div id="footer-menu"> + <ul> + <li class="first"><a href="/feed.atom">Atom</a></li> + <li><a href="/source.php?url=/index.php">Show source</a></li> + <li><a href="/credits.php">Credits</a></li> + <li><a href="/stats/">Stats</a></li> + <li><a href="/sitemap.php">Sitemap</a></li> + <li><a href="/contact.php">Contact</a></li> + <li><a href="/contact.php#ads">Advertising</a></li> + <li class="last"><a href="/mirrors.php">Mirror sites</a></li> + </ul><br/><small><a href="/mirror.php">This mirror</a> generously provided by: <a href="http://developer.yahoo.com/">Yahoo! Inc.</a> Last updated: Mon Jun 9 01:34:45 2008 PDT</small> + </div> + </div> + <span class="corners-bottom"><span></span></span></li><!--#footer--> + </ul><!--#root--> +</body> +</html> \ No newline at end of file commit 22c1efe7565833f89e8b38c1a00f98abfbcb81a0 Author: Hannes Magnusson <bjori@php.net> Date: Sat Aug 23 21:12:30 2008 +0000 Fix wrong paths (noticed by Guilherme Blanco) diff --git a/styles/content.css b/styles/content.css index 2ed5200..9252988 100644 --- a/styles/content.css +++ b/styles/content.css @@ -260,7 +260,7 @@ } #main-column .adv-block input { - background:url(../images/../img/block_sprites.gif) 0 -77px no-repeat; + background:url(../images/block_sprites.gif) 0 -77px no-repeat; width:57px; height:26px; border:0; @@ -645,7 +645,7 @@ padding:12px 0; line-height:1; font-weight:bold; - background:url(../images/../img/block_sprites.gif) 100% 6px no-repeat; + background:url(../images/block_sprites.gif) 100% 6px no-repeat; } .add-note a { commit f204b8037dd007460c10ce72c1c25c967664abdd Author: Hannes Magnusson <bjori@php.net> Date: Sat Aug 23 17:45:06 2008 +0000 - Tweak examples a bit (patch by Guilherme Blanco <guilhermeblancoATgmail.com>) - Tweak tips a bit diff --git a/styles/content.css b/styles/content.css index 660a35a..2ed5200 100644 --- a/styles/content.css +++ b/styles/content.css @@ -573,6 +573,7 @@ #main-column .info-block, #main-column .warning, +#main-column .tip, #main-column .notes, #main-column dd { background:#ffffff; @@ -585,6 +586,10 @@ line-height:1.6; } +#main-column .tip { + color:#006; +} + #main-column .warning { color:#6F0000; } @@ -828,6 +833,7 @@ border-bottom:1px solid #D0D0D0; } +#main-column b.tip, #main-column b.warning { padding: 0; } @@ -855,6 +861,14 @@ #main-column .examples h3 { padding:0 0 1em 0; } +#main-column .example-contents { + background-color: #fff; + border: 1px solid #e2e2e2; + padding: 5px 10px; +} +#main-column .example-contents p { + margin-bottom: 0px; +} /***** {{{ REMOVE ME *****/ /* commit a0d4348c3cb1b18cd949bf41c6b8d2ae7eadec39 Author: Hannes Magnusson <bjori@php.net> Date: Sat Aug 23 16:20:22 2008 +0000 Notepad++ integration by Dejan Kozina <dejan@kozina.com> diff --git a/docs-echm.php b/docs-echm.php index ffaa0a3..b9abb65 100644 --- a/docs-echm.php +++ b/docs-echm.php @@ -276,6 +276,25 @@ command.help.subsystem.$(file.patterns.php)=4</pre> to display the quick help. </p> </li> + + <li> + <p> + <strong><a href="http://notepad-plus.sourceforge.net/">Notepad++</a>:</strong> + Assuming you've put the manual into "C:\Program Files\PhpManual" you have to + find the file named "shortcuts.xml" in Notepad++'s folder, open it in a + text editor and add this line to the UserDefinedCommands section + (line breaks added for clarity - should be on a single line): + </p> + <pre> + &lt;Command name="PHP Manual" Ctrl="yes" Alt="yes" Shift="no" Key="116"&gt; + hh.exe "ms-its:c:/Program Files/Phpmanual/php_manual_en.chm::/function.$(CURRENT_WORD).html" + &lt;/Command&gt; + </pre> + <p> + Usage: highlight a PHP function name and either press ALT+CTRL+F5 or click the PHP Manual + item under the Run menu and the CHM will open at the function's page. + </p> + </li> </ul> <?php site_footer(); ?> commit c563871ecc7516b3d9b9e49377bd5bd20dc109ae Author: Hannes Magnusson <bjori@php.net> Date: Fri Aug 22 18:37:53 2008 +0000 This hasn't been useful in years diff --git a/extra/bindlib_w32.zip b/extra/bindlib_w32.zip deleted file mode 100644 index 5ab0406..0000000 Binary files a/extra/bindlib_w32.zip and /dev/null differ diff --git a/extra/ctlib-linux-elf-dynamic.tar.gz b/extra/ctlib-linux-elf-dynamic.tar.gz deleted file mode 100644 index a5984fd..0000000 Binary files a/extra/ctlib-linux-elf-dynamic.tar.gz and /dev/null differ diff --git a/extra/ctlib-linux-elf.tar.gz b/extra/ctlib-linux-elf.tar.gz deleted file mode 100644 index d7d3351..0000000 Binary files a/extra/ctlib-linux-elf.tar.gz and /dev/null differ diff --git a/extra/db_win32_2.3.16.zip b/extra/db_win32_2.3.16.zip deleted file mode 100644 index ae5c582..0000000 Binary files a/extra/db_win32_2.3.16.zip and /dev/null differ diff --git a/extra/dbwin32-2.4.10.zip b/extra/dbwin32-2.4.10.zip deleted file mode 100644 index 03fec4f..0000000 Binary files a/extra/dbwin32-2.4.10.zip and /dev/null differ diff --git a/extra/gd1.2.zip b/extra/gd1.2.zip deleted file mode 100644 index 09090ba..0000000 Binary files a/extra/gd1.2.zip and /dev/null differ diff --git a/extra/index.php b/extra/index.php deleted file mode 100644 index 89a41be..0000000 --- a/extra/index.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php -// $Id$ - -// Simulate a /extra shortcut call (which will lead to a manual page) -$_SERVER['REQUEST_URI'] = '/extra'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/error.php'; diff --git a/extra/number4.tar.gz b/extra/number4.tar.gz deleted file mode 100644 index 2ba438f..0000000 Binary files a/extra/number4.tar.gz and /dev/null differ diff --git a/extra/win32build.zip b/extra/win32build.zip deleted file mode 100644 index 287a300..0000000 Binary files a/extra/win32build.zip and /dev/null differ commit fae100e80f395f9da206c0c7560e5083ea5bced8 Author: Hannes Magnusson <bjori@php.net> Date: Fri Aug 22 18:36:25 2008 +0000 Remove unused stuff diff --git a/error.php b/error.php index 4e66b8b..0cfd796 100644 --- a/error.php +++ b/error.php @@ -43,15 +43,6 @@ if (preg_match("!^bugs.php\\?(.+)$!", $URI, $array)) { } // ============================================================================ -// FC: handle advisories -if (preg_match("!^security/advisories/PHPSA-(\\d+)\\.php$!", $URI, $array)) { - status_header(200); - $_GET["id"] = $array[1]; - include_once $_SERVER['DOCUMENT_ROOT'] . '/security/index.php'; - exit; -} - -// ============================================================================ // Omit query string from URL and urldecode special chars $URI = urldecode(preg_replace("!(\\?.*$)!", "", $URI)); diff --git a/include/layout.inc b/include/layout.inc index cbd63c3..1361521 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -355,24 +355,6 @@ function news_image($URL, $image, $alt, $print = true) return $str; } -// Return HTML code for a submit button image -function make_submit($file, $alt = FALSE, $align = FALSE, $extras = FALSE, - $dir = '/images', $border = 0) -{ - // Get an image without size info and convert the - // border attribute to use CSS, as border="" is not - // supported on <input> elements in [X]HTML - $img = make_image($file, $alt, $align, $extras, $dir, 0, FALSE); - $img = str_replace( - "border=\"$border\"", - "style=\"border: {$border}px;\"", - $img - ); - - // Return with ready input image - return '<input type="image"' . substr($img, 4); -} - // Return a hiperlink to something within the site function make_link ($url, $linktext = FALSE, $target = FALSE, $extras = FALSE) { @@ -453,21 +435,6 @@ function download_link($file, $title, $showsize = TRUE, $mirror = '') } } -function sect_to_file($string) { - $string = strtolower($string); - $string = str_replace(' ','-',$string); - $string = str_replace('_','-',$string); - $func = "function.$string.php"; - $chap = "ref.$string.php"; - $feat = "features.$string.php"; - $struct = "control-structures.$string.php"; - if(@is_file($func)) return $func; - else if(@is_file($chap)) return $chap; - else if(@is_file($feat)) return $feat; - else if(@is_file($struct)) return $struct; - else return "$string.php"; -} - function clean($var) { return htmlspecialchars(get_magic_quotes_gpc() ? stripslashes($var) : $var, ENT_QUOTES); } diff --git a/security/index.php b/security/index.php deleted file mode 100644 index 7aaa74f..0000000 --- a/security/index.php +++ /dev/null @@ -1,149 +0,0 @@ -<?php -// $Id$ -$_SERVER['BASE_PAGE'] = 'security/index.php'; - -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -if(!isset($_COOKIE["MAGIC_COOKIE"])) { - mirror_redirect("/manual/security"); - exit; -} - -$SIDEBAR_DATA = <<< EOT -<br /> -<div id="securitySidebar"> - <h3><a href="/security/">Security Center?</a></h3> - <p>In an effort to make security related information more readily available, the PHP Security Response Team created a new Security Center on March 1st, 2007. The Security Center will serve as the central location where interested parties can find information about security threats, fixes and/or workarounds and any other related meterial.</p> - - <h3>Security related books</h3> - <ul> - <li><a href="http://www.amazon.com/exec/obidos/ASIN/0973862106/">Guide to PHP Security</a></li> - <li><a href="http://www.amazon.com/exec/obidos/ASIN/059600656X/">Essential PHP Security</a></li> - </ul> - - <h3>Other links</h3> - <ul> - <li><a href="http://php.net/manual/security">PHP manual on security</a></li> - <li><a href="http://www.suhosin.org">Suhosin</a></li> - <li><a href="http://phpsec.org/projects/guide/">PHP Security Consortium</a></li> - </ul> -</div> -EOT; - - -site_header("PHP Security center"); -echo "<h1>PHP Security Center</h1>\n"; - -$dbfile = $_SERVER['DOCUMENT_ROOT'] . '/security/vulndb.txt'; -$fp = @fopen($dbfile, "rt"); -if(is_resource($fp)) { - $RECORDS = array(); - $record_no = 1; - while($s = fgets($fp)) { - if($s == "\n") { - if(!isset($RECORDS[$record_no]["id"])) { - $RECORDS[$record_no]["id"] = $record_no; - } - $field = null; - $record_no++; - continue; - } - if(preg_match("/^([-\w]+):\s*(.*)/", $s, $m)) { - // new record - $field = strtolower($m[1]); - $data = $m[2]; - } else { - $data = $s; - } - if($field) { - if(isset($RECORDS[$record_no][$field])) { - $RECORDS[$record_no][$field] .= $data; - } else { - $RECORDS[$record_no][$field] = $data; - } - } - } - } - - //echo "<pre>";print_r($RECORDS); - $id = isset($_GET["id"]) ? (int)$_GET["id"] : 0; - if(!$id || !isset($RECORDS[$id])) { -?> -<h3>PHP Vulnerability Disclosures</h3> -<p>This page contains information about PHP-related security threats, patches and known workarounds.</p> -<p>If you believe you have discovered a security problem in PHP please inform the<br />PHP Security Response Team in confidence by mailing <a href="mailto:security@php.net">security@php.net</a></p> -<br /> -<p>The following colors are used to highlight the severity of a bug:</p> -<ul class="colors"> - <li class="low">low risk is yellow</li> - <li class="medium">medium risk is orange</li> - <li class="critical">critical is red</li> -</ul> -<?php - function cmp_records($a, $b) { - $c = date("Ym", strtotime($a["published"])); - $d = date("Ym", strtotime($b["published"])); - if($c >= $d) { - if($c > $d) { - return -1; - } - return 0; - } - return 1; - } - usort($RECORDS, "cmp_records"); - - $last_month = ""; - foreach($RECORDS as $record) { - if(!isset($record["summary"])) { - if(strlen($record["description"]) > 80) { - $record["summary"] = substr($record["description"], 0, 70) . "..."; - } else { - $record["summary"] = $record["description"]; - } - } - $current_month = date("Ym", strtotime($record["published"])); - if($current_month != $last_month) { - $last_month = $current_month; - $current_month = $record["affects"]; - - echo "<br /><h1>", date("F Y", strtotime($record["published"])), "</h1>\n"; - } -?> -<div class="record <?php echo strtolower($record["severity"]) ?>"> - <div class="id"><a href="/security/advisories/PHPSA-<?php echo $record["id"] ?>.php">PHPSA-<?php printf("%04d", $record["id"]) ?></a></div> - <div class="date"><?php echo date("Y-m-d", strtotime($record["published"]))?></div> - <div class="range <?php echo strtolower($record["range"]) ?>"><?php echo $record["range"] ?></div> - <div class="affects"><?php echo $record["affects"] ?></div> - <div class="summary"><?php echo $record["summary"] ?></div> -</div> - -<?php - } // foreach($records); -} elseif(isset($RECORDS)) { // Print a single record - $date = date("F jS Y", strtotime($RECORDS[$id]["published"])); - $RECORDS[$id]["id"] = sprintf("PHPSA-%04d", $RECORDS[$id]["id"]); - printf("<h3>%s (%s)</h3>\n", $RECORDS[$id]["id"], $date); - echo "<div class=\"singlerecord\">\n"; - foreach($RECORDS[$id] as $field => $data) { - if(!$data) { - continue; - } - $title = ucfirst(strtr($field, "-", " ")); - // Turn urls into links (stolen from master/manage/user-notes.php) - $data = preg_replace( - '!((mailto:|(http|ftp|nntp|news):\/\/).*?)(\s|<|\)|"|\\|\'|$)!', - '<a href="\1" target="_blank">\1</a>\4', - $data - ); - echo <<< EOT - <div class="row $field"> - <div class="title">$title</div> - <div class="data">$data</div> - </div>\n -EOT; - } - echo "</div>\n"; -} - -site_footer(); - diff --git a/security/vulndb.txt b/security/vulndb.txt deleted file mode 100644 index 4614915..0000000 --- a/security/vulndb.txt +++ /dev/null @@ -1,472 +0,0 @@ -Id: 1 -CVE: CVE-2006-0097 -Severity: -Reporter: -Published: 2006-01-06 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Stack-based buffer overflow in the create_named_pipe function in libmysql.c in PHP 4.3.10 and 4.4.x before 4.4.3 for Windows allows attackers to execute arbitrary code via a long (1) arg_host or (2) arg_unix_socket argument, as demonstrated by a long named pipe variable in the host argument to the mysql_connect function. - -Id: 2 -CVE: CVE-2006-0200 -Severity: -Reporter: -Published: 2006-01-13 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Format string vulnerability in the error-reporting feature in the mysqli extension in PHP 5.1.0 and 5.1.1 might allow remote attackers to execute arbitrary code via format string specifiers in MySQL error messages. - -Id: 3 -CVE: CVE-2006-0207 -Severity: -Reporter: -Published: 2006-01-13 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Multiple HTTP response splitting vulnerabilities in PHP 5.1.1 allow remote attackers to inject arbitrary HTTP headers via a crafted Set-Cookie header, related to the (1) session extension (aka ext/session) and the (2) header function. - -Id: 4 -CVE: CVE-2006-0208 -Severity: -Reporter: -Published: 2006-01-13 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Multiple cross-site scripting (XSS) vulnerabilities in PHP 5.1.1, when display_errors and html_errors are on, allow remote attackers to inject arbitrary web script or HTML via inputs to PHP applications that are not filtered when they are included in the resulting error message. - -Id: 5 -CVE: CVE-2006-0996 -Severity: -Reporter: -Published: 2006-04-10 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Cross-site scripting (XSS) vulnerability in phpinfo (info.c) in PHP 5.1.2 and 4.4.2 allows remote attackers to inject arbitrary web script or HTML via long array variables, including (1) a large number of dimensions or (2) long values, which prevents HTML tags from being removed. - -Id: 6 -CVE: CVE-2006-1014 -Severity: -Reporter: -Published: 2006-03-06 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Argument injection vulnerability in certain PHP 4.x and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mb_send_mail function, allows context-dependent attackers to read and create arbitrary files by providing extra -C and -X arguments to sendmail. NOTE: it could be argued that this is a class of technology-specific vulnerability, instead of a particular instance; if so, then this should not be included in CVE. - -Id: 7 -CVE: CVE-2006-1015 -Severity: -Reporter: -Published: 2006-03-06 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Argument injection vulnerability in certain PHP 3.x, 4.x, and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mail function, allows remote attackers to read and create arbitrary files via the sendmail -C and -X arguments. NOTE: it could be argued that this is a class of technology-specific vulnerability, instead of a particular instance; if so, then this should not be included in CVE. - -Id: 8 -CVE: CVE-2006-1017 -Severity: -Reporter: -Published: 2006-03-06 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: The c-client library 2000, 2001, or 2004 for PHP before 4.4.4 and 5.x before 5.1.5 do not check the (1) safe_mode or (2) open_basedir functions, and when used in applications that accept user-controlled input for the mailbox argument to the imap_open function, allow remote attackers to obtain access to an IMAP stream data structure and conduct unauthorized IMAP actions. - -Id: 9 -CVE: CVE-2006-1490 -Severity: -Reporter: -Published: 2006-03-29 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: PHP before 5.1.3-RC1 might allow remote attackers to obtain portions of memory via crafted binary data sent to a script that processes user input in the html_entity_decode function and sends the encoded results back to the client, aka a "binary safety" issue. NOTE: this issue has been referred to as a "memory leak," but it is an information leak that discloses memory contents. - -Id: 10 -CVE: CVE-2006-1494 -Severity: -Reporter: -Published: 2006-04-10 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Directory traversal vulnerability in file.c in PHP 4.4.2 and 5.1.2 allows local users to bypass open_basedir restrictions allows remote attackers to create files in arbitrary directories via the tempnam function. - -Id: 11 -CVE: CVE-2006-1549 -Severity: -Reporter: -Published: 2006-04-10 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: PHP 4.4.2 and 5.1.2 allows local users to cause a crash (segmentation fault) by defining and executing a recursive function. - -Id: 12 -CVE: CVE-2006-1608 -Severity: -Reporter: -Published: 2006-04-10 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: The copy function in file.c in PHP 4.4.2 and 5.1.2 allows local users to bypass safe mode and read arbitrary files via a source argument containing a compress.zlib:// URI. - -Id: 13 -CVE: CVE-2006-1990 -Severity: -Reporter: -Published: 2006-04-24 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Integer overflow in the wordwrap function in string.c in PHP 4.4.2 and 5.1.2 might allow context-dependent attackers to execute arbitrary code via certain long arguments that cause a small buffer to be allocated, which triggers a heap-based buffer overflow in a memcpy function call, a different vulnerability than CVE-2002-1396. - -Id: 14 -CVE: CVE-2006-1991 -Severity: -Reporter: -Published: 2006-04-24 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: The substr_compare function in string.c in PHP 5.1.2 allows context-dependent attackers to cause a denial of service (memory access violation) via an out-of-bounds offset argument. - -Id: 15 -CVE: CVE-2006-2563 -Severity: -Reporter: -Published: 2006-05-29 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: The cURL library (libcurl) in PHP 4.4.2 and 5.1.4 allows attackers to bypass safe mode and read files via a file:// request containing null characters. - -Id: 16 -CVE: CVE-2006-2660 -Severity: -Reporter: -Published: 2006-06-13 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Buffer consumption vulnerability in the tempnam function in PHP 5.1.4 and 4.x before 4.4.3 allows local users to bypass restrictions and create PHP files with fixed names in other directories via a pathname argument longer than MAXPATHLEN, which prevents a unique string from being appended to the filename. - -Id: 17 -CVE: CVE-2006-3011 -Severity: -Reporter: -Published: 2006-06-26 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: The error_log function in basic_functions.c in PHP before 4.4.4 and 5.x before 5.1.5 allows local users to bypass safe mode and open_basedir restrictions via a "php://" or other scheme in the third argument, which disables safe mode. - -Id: 18 -CVE: CVE-2006-3016 -Severity: -Reporter: -Published: 2006-06-14 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Unspecified vulnerability in session.c in PHP before 5.1.3 has unknown impact and attack vectors, related to "certain characters in session names," including special characters that are frequently associated with CRLF injection, SQL injection, cross-site scripting (XSS), and HTTP response splitting vulnerabilities. NOTE: while the nature of the vulnerability is unspecified, it is likely that this is related to a violation of an expectation by PHP applications that the session name is alphanumeric, as implied in the PHP manual for session_name(). - -Id: 19 -CVE: CVE-2006-3017 -Severity: -Reporter: -Published: 2006-06-14 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: zend_hash_del_key_or_index in zend_hash.c in PHP before 4.4.3 and 5.x before 5.1.4 can cause zend_hash_del to delete the wrong element, which prevents a variable from being unset even when the PHP unset function is called, which might cause the variable's value to be used in security-relevant operations. - -Id: 20 -CVE: CVE-2006-3018 -Severity: -Reporter: -Published: 2006-06-14 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: Unspecified vulnerability in the session extension functionality in PHP before 5.1.3 has unkown impact and attack vectors related to heap corruption. - -Id: 21 -CVE: CVE-2006-4020 -Severity: -Reporter: -Published: 2006-08-08 -Extension: -Range: -Affects: PHP -Fixed-in: PHP -Description: scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to execute arbitrary code via a sscanf PHP function call that performs argument swapping, which increments an index past the end of an array and triggers a buffer over-read. - -Id: 22 -CVE: CVE-2006-4023 -Severity: -Reporter: -Published: 2006-08-08 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and return a valid network IP address, which allows remote attackers to obtain network information and facilitate other attacks, as demonstrated using SQL injection in the X-FORWARDED-FOR Header in index.php in MiniBB 2.0. NOTE: it could be argued that the ip2long behavior represents a risk for security-relevant issues in a way that is similar to strcpy's role in buffer overflows, in which case this would be a class of implementation bugs that would require separate CVE items for each PHP application that uses ip2long in a security-relevant manner. - -Id: 23 -CVE: CVE-2006-4433 -Severity: -Reporter: -Published: 2006-08-28 -Extension: ext/session -Range: -Affects: PHP -Fixed-in: PHP -Description: PHP before 4.4.3 and 5.x before 5.1.4 does not limit the character set of the session identifier (PHPSESSID) for third party session handlers, which might make it easier for remote attackers to exploit other vulnerabilities by inserting PHP code into the PHPSESSID, which is stored in the session file. NOTE: it could be argued that this not a vulnerability in PHP itself, rather a design limitation that enables certain attacks against session handlers that do not account for this limitation. - -Id: 24 -CVE: CVE-2006-4481 -Severity: -Reporter: -Published: 2006-08-31 -Extension: ext/standard & ext/imap -Range: -Affects: PHP -Fixed-in: PHP -Description: The (1) file_exists and (2) imap_reopen functions in PHP before 5.1.5 do not check for the safe_mode and open_basedir settings, which allows local users to bypass the settings. NOTE: the error_log function is covered by CVE-2006-3011, and the imap_open function is covered by CVE-2006-1017. - -Id: 25 -CVE: CVE-2006-4482 -Severity: -Reporter: -Published: 2006-08-31 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: Multiple heap-based buffer overflows in the (1) str_repeat and (2) wordwrap functions in ext/standard/string.c in PHP before 5.1.5, when used on a 64-bit system, have unspecified impact and attack vectors, a different vulnerability than CVE-2006-1990. - -Id: 26 -CVE: CVE-2006-4483 -Severity: -Reporter: -Published: 2006-08-31 -Extension: ext/curl -Range: -Affects: PHP -Fixed-in: PHP -Description: The cURL extension files (1) ext/curl/interface.c and (2) ext/curl/streams.c in PHP before 5.1.5 permit the CURLOPT_FOLLOWLOCATION option when open_basedir or safe_mode is enabled, which allows attackers to perform unauthorized actions, possibly related to the realpath cache. - -Id: 27 -CVE: CVE-2006-4484 -Severity: -Reporter: -Published: 2006-08-31 -Extension: ext/gd -Range: -Affects: PHP -Fixed-in: PHP -Description: Buffer overflow in the LWZReadByte_ function in ext/gd/libgd/gd_gif_in.c in the GD extension in PHP before 5.1.5 allows remote attackers to have an unknown impact via a GIF file with input_code_size greater than MAX_LWZ_BITS, which triggers an overflow when initializing the table array. - -Id: 28 -CVE: CVE-2006-4485 -Severity: -Reporter: -Published: 2006-08-31 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: The stripos function in PHP before 5.1.5 has unknown impact and attack vectors related to an out-of-bounds read. - -Id: 29 -CVE: CVE-2006-4486 -Severity: -Reporter: -Published: 2006-08-31 -Extension: core -Range: -Affects: PHP -Fixed-in: PHP -Description: Integer overflow in memory allocation routines in PHP before 5.1.6, when running on a 64-bit system, allows context-dependent attackers to bypass the memory_limit restriction. - -Id: 30 -CVE: CVE-2006-4625 -Severity: -Reporter: -Published: 2006-09-12 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: PHP 4.x up to 4.4.4 and PHP 5 up to 5.1.6 allows local users to bypass certain Apache HTTP Server httpd.conf options, such as safe_mode and open_basedir, via the ini_restore function, which resets the values to their php.ini (Master Value) defaults. - -Id: 31 -CVE: CVE-2006-4812 -Severity: -Reporter: -Published: 2006-10-10 -Extension: core -Range: -Affects: PHP -Fixed-in: PHP -Description: Integer overflow in PHP 5 up to 5.1.6 and 4 before 4.3.0 allows remote attackers to execute arbitrary code via an argument to the unserialize PHP function with a large value for the number of array elements, which triggers the overflow in the Zend Engine ecalloc function (Zend/zend_alloc.c). - -Id: 32 -CVE: CVE-2006-5178 -Severity: -Reporter: -Published: 2006-10-10 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink. - -Id: 33 -CVE: CVE-2006-5465 -Severity: -Reporter: -Published: 2006-11-03 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: Buffer overflow in PHP before 5.2.0 allows remote attackers to execute arbitrary code via crafted UTF-8 inputs to the (1) htmlentities or (2) htmlspecialchars functions. - -Id: 34 -CVE: CVE-2006-5706 -Severity: -Reporter: -Published: 2006-11-03 -Extension: ext/standard -Range: -Affects: PHP -Fixed-in: PHP -Description: Unspecified vulnerabilities in PHP, probably before 5.2.0, allow local users to bypass open_basedir restrictions and perform unspecified actions via unspecified vectors involving the (1) chdir and (2) tempnam functions. NOTE: the tempnam vector might overlap CVE-2006-1494. - -Id: 35 -CVE: CVE-2006-6383 -Severity: -Reporter: -Published: 2006-12-10 -Extension: ext/session -Range: -Affects: PHP -Fixed-in: PHP -Description: PHP 5.2.0 and 4.4 allows local users to bypass safe_mode and open_basedir restrictions via a malicious path and a null byte before a ";" in a session_save_path argument, followed by an allowed path, which causes a parsing inconsistency in which PHP validates the allowed path but sets session.save_path to the malicious path. - -Id: 36 -CVE: CVE-2007-0905 -Severity: -Reporter: unkown -Published: 2007-02-13 -Extension: ext/session -Range: -Affects: PHP 5.2.0 -Fixed-in: PHP 5.2.1 -Description: PHP before 5.2.1 allows attackers to bypass safe_mode and open_basedir restrictions via unspecified vectors in the session extension. NOTE: it is possible that this issue is a duplicate of CVE-2006-6383. - -Id: 37 -CVE: CVE-2007-0906 -Severity: -Reporter: -Published: 2007-02-13 -Extension: various -Range: -Affects: PHP 5.2.0 -Fixed-in: PHP 5.2.1 -Description: Multiple buffer overflows in PHP before 5.2.1 allow attackers to cause a denial of service and possibly execute arbitrary code via unspecified vectors in the (1) session, (2) zip, (3) imap, and (4) sqlite extensions; (5) stream filters; and the (6) str_replace, (7) mail, (8) ibase_delete_user, (9) ibase_add_user, and (10) ibase_modify_user functions. - -Id: 38 -CVE: CVE-2007-0907 -Severity: -Reporter: -Published: 2007-02-13 -Extension: core -Range: -Affects: PHP 5.2.0 -Fixed-in: PHP 5.2.1 -Description: Buffer underflow in PHP before 5.2.1 allows attackers to cause a denial of service via unspecified vectors involving the sapi_header_op function. - -Id: 39 -CVE: CVE-2007-0908 -Severity: -Reporter: -Published: 2007-02-13 -Extension: ext/wddx -Range: -Affects: PHP 5.2.0 -Fixed-in: PHP 5.2.1 -Description: The wddx extension in PHP before 5.2.1 allows remote attackers to obtain sensitive information via unspecified vectors. - -Id: 40 -CVE: CVE-2007-0909 -Severity: -Reporter: -Published: 2007-02-13 -Extension: ext/standard -Range: -Affects: PHP 5.2.0 -Fixed-in: PHP 5.2.1 -Description: Multiple format string vulnerabilities in PHP before 5.2.1 might allow attackers to execute arbitrary code via format string specifiers to (1) all of the *print functions on 64-bit systems, and (2) the odbc_result_all function. - -Id: 41 -CVE: CVE-2007-0910 -Severity: -Reporter: -Published: 2007-02-13 -Extension: core -Range: -Affects: PHP 5.2.0 -Fixed-in: PHP 5.2.1 -Description: Unspecified vulnerability PHP before 5.2.1 allows attackers to "clobber" certain super-global variables via unspecified vectors. - -Id: 42 -CVE: CVE-2007-0911 -Severity: -Reporter: -Published: 2007-02-13 -Extension: ext/standard -Range: -Affects: PHP 5.2.1 -Fixed-in: To be fixed in PHP 5.2.2 -Description: Off-by-one error in the str_ireplace function in PHP 5.2.1 might allow context-dependent attackers to cause a denial of service (crash). - -Id: 43 -CVE: CVE-2007-0988 -Severity: -Reporter: -Published: 2007-02-19 -Extension: core -Range: -Affects: PHP -Fixed-in: To be fixed in PHP 5.2.2 -Description: If unserializing untrusted data on 64-bit platforms, the zend_hash_init() function can be forced to enter an infinite loop, consuming CPU resources for a limited length of time, until the script timeout alarm aborts execution of the script. commit dc369185c1f4e7cc7d5b9b763b973dedfdebf99d Author: Hannes Magnusson <bjori@php.net> Date: Wed Aug 20 18:03:05 2008 +0000 - Fix missing TOC on manual pages - Remove outdated TOC hack (for long function names) - Add a warning about this being developmental diff --git a/include/layout.inc b/include/layout.inc index b13ab0b..cbd63c3 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -177,11 +177,11 @@ function site_header($title = '', $config = array()) <h1><a href="/index.php">PHP: Hypertext Preprocessor</a></h1> <form method="post" action="/search.php" id="topsearch"> <div id="search-box"> - <label>Search for</label> - <span><input type="text" class="text" maxlength="20" name="pattern" /></span> - <label>in the</label> + <label for="searchbox">Search for</label> + <span><input type="text" class="text" maxlength="20" name="pattern" id="searchbox" /></span> + <label for="searchlist">in the</label> <span> - <select name="show"> + <select name="show" id="searchlist"> <option value="quickref" selected="selected">function list</option> <option value="all" >all php.net sites</option> <option value="local" >this mirror only</option> @@ -216,6 +216,13 @@ function site_header($title = '', $config = array()) <li class="last"><a href="/my.php">My Php.net</a></li> </ul> </li><!--#main-menu--> + <!-- {{{ FIXME: REMOVE THIS WARNING --> + <li id="warning"> + <div class="warning"> + <strong>WARNING</strong>: You are browsing a developmental server. + </div> + </li> + <!-- }}} --> $PRE_DATA <li id="content"> <ul id="content-columns"> diff --git a/include/shared-manual.inc b/include/shared-manual.inc index 44ffdba..b385e09 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -18,7 +18,7 @@ include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; // Set variable defaults -$PGI = array(); $SIDEBAR_DATA = ''; +$PGI = array(); // Set up variables important for this page // including HTTP header information @@ -59,33 +59,24 @@ function manual_header() // Set base href for this manual page $_SERVER['BASE_HREF'] = $MYSITE . $_SERVER['BASE_PAGE']; - manual_sidebar(); site_header("$title - Manual", array( - "link" => array( - "contents" => $PGI["home"][0], - "index" => $PGI["up"][0], - "prev" => $PGI["prev"][0], - "next" => $PGI["next"][0], - "schema.dc" => "http://purl.org/dc/elements/1.1/", - "schema.rdfs" => "http://www.w3.org/2000/01/rdf-schema#", - ), - "profile" => "http://purl.org/NET/erdf/profile", - )); - echo <<< MAIN_CONTENT - <li id="main-column"> - <div class="content"> -MAIN_CONTENT; + "link" => array( + "contents" => $PGI["home"][0], + "index" => $PGI["up"][0], + "prev" => $PGI["prev"][0], + "next" => $PGI["next"][0], + "schema.dc" => "http://purl.org/dc/elements/1.1/", + "schema.rdfs" => "http://www.w3.org/2000/01/rdf-schema#", + ), + "profile" => "http://purl.org/NET/erdf/profile", + )); + manual_sidebar(); + column(COLUMN_MAIN); manual_navbar(); + box(CORNERS_TOP); -echo <<< MAIN_CONTENT - - <div class="block"><span class="corners-top"><span></span></span> - <div class="info"> - <p class="func-date">Last updated: <span>{$PGI['lastmod']}</span></p> - - -MAIN_CONTENT; + echo '<p class="func-date">Last updated: <span>' .$PGI['lastmod']. '</span></p>'; } @@ -97,17 +88,12 @@ function manual_footer() // Get vars for easy handling list($filename, $title) = $PGI['this']; - echo "</div><!-- .info -->\n"; - echo '<span class="corners-bottom"><span></span></span></div><!--.block-->'; - + box(); manual_notes(); manual_navbar("bottom"); - echo <<< MAIN_CONTENT - </div> <!-- .content --> - </li><!-- #main-column--> -MAIN_CONTENT; + column(); site_footer(); } @@ -116,36 +102,33 @@ MAIN_CONTENT; // Manual page navigation parts // ============================================================================= -// Append all the table of contents data to $SIDEBAR_DATA +// Print the TOC function manual_sidebar() { - global $PGI, $SIDEBAR_DATA; - - // Start sidebar with its <div> - $BAR = <<< SIDEBAR - <div class="content"> - <div class="block"><span class="corners-top"><span></span></span> - <div class="info"> - <h3>PHP Manual</h3> - <ul id="functions-list"> + global $PGI; + column_box(COLUMN_LEFT); + + echo <<< SIDEBAR + <h3>PHP Manual</h3> + <ul id="functions-list"> SIDEBAR; // Link to manual home - $BAR .= ' <li class="header home"><a href="' . $PGI['home'][0] . '">' . + echo ' <li class="header home"><a href="' . $PGI['home'][0] . '">' . $PGI['home'][1] . "</a></li>\n"; // Link to parents if (isset($PGI['parents']) && ($c = count($PGI['parents'])-1) > 0) { // The root parent is the "PHP Manual" for($i=$c-1; $i>=0; $i--) { - $BAR .= ' <li class="header up"><a href="' . $PGI['parents'][$i][0] . '">' . + echo ' <li class="header up"><a href="' . $PGI['parents'][$i][0] . '">' . $PGI['parents'][$i][1] . "</a></li>\n"; } } // Link to one page up if titles does not match if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { - $BAR .= ' <li class="header up sel"><a href="' . $PGI['up'][0] . '">' . + echo ' <li class="header up sel"><a href="' . $PGI['up'][0] . '">' . $PGI['up'][1] . "</a><ul>\n"; } @@ -157,33 +140,16 @@ SIDEBAR; // Get the proper classname to use for this <div> $liclass = ($url == $PGI['this'][0]) ? ' class="sel"' : ""; - - // There are some very long function names, which - // make the TOC too wide, so enable the browser to wrap them - // eg: xml_set_processing_instruction_handler - // DOMElement->getElementsByTagNameNS() - if (preg_match("!^[a-zA-Z0-9_>()-:]+$!", $title)) { - $wrap = '<span class="w"> </span>'; - $title = str_replace(array('_', '->', '::'), array("_$wrap", "->$wrap", "::$wrap"), $title); - } - + // Print out the TOC item using a <div> - $BAR .= " <li{$liclass}>" . + echo " <li{$liclass}>" . make_link($url, $title) . "</li>\n"; } - $close = ""; if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { - $close = "</ul></li>"; - } - // Put navigation content into sidebar, end <div> - $SIDEBAR_DATA = <<< SIDEBAR - $BAR - </ul> - </div> - <span class="corners-bottom"><span></span></span></div><!--.block--> - </div><!-- .content --> -SIDEBAR; + echo "</ul></li>"; + } + column_box(); } @@ -265,10 +231,7 @@ function manual_notes() if(count($notes) > 2) { manual_navbar("bottom"); } -echo <<< MAIN_CONTENT - <div class="block"><span class="corners-top"><span></span></span> -MAIN_CONTENT; - + box(CORNERS_TOP); // Link target to add a note to the current manual page, // and it's extended form with a [+] image @@ -293,19 +256,18 @@ END_USERNOTE_HEADER; // If we have notes, print them out else { - echo '<ul id="contributed-notes">'; + echo '<ul id="contributed-notes">'; foreach($notes as $note) { manual_note_display( $note['xwhen'], $note['user'], $note['note'], $note['id'] ); } - echo "</ul>\n"; + echo "</ul>\n"; echo $addnotesnippet; } - // End of #usernotes - echo "</div>"; - echo '<span class="corners-bottom"><span></span></span></div><!--.block-->'; + echo "</div><!-- #usernotes -->\n"; + box(); } // Get user notes from the appropriate text dump @@ -388,3 +350,4 @@ function manual_note_display($date, $name, $text, $id) USER_NOTE_TEXT; } + diff --git a/styles/content.css b/styles/content.css index 0acdaf5..660a35a 100644 --- a/styles/content.css +++ b/styles/content.css @@ -114,7 +114,7 @@ #news-line, #main-column .adv-block { font-size: 1.1em; - line-height:1.2; + line-height:1.2; margin-bottom: 6px; padding: 0 11px; background: none left bottom repeat-x #F6F6F6; @@ -856,4 +856,26 @@ padding:0 0 1em 0; } +/***** {{{ REMOVE ME *****/ +/* + * This is only during development so that users of docs.php.net can get a big + * fat red warning about that thei are browser developmental server. + */ +#main-menu { + margin-bottom: 0; +} + +#warning { + background:#ffffff; + padding:1em; + margin: 0px; + border-bottom:1px solid #D0D0D0; + color:#6F0000; + margin-bottom: 6px; + text-align: center; + font-weight: bold; + font-size:1.17em; +} +/***** }}} *****/ + commit 55713bc2a1cc733e843b1e72f13c896dbc554080 Author: Hannes Magnusson <bjori@php.net> Date: Tue Aug 19 22:11:25 2008 +0000 Specify which element the extra classes should go to diff --git a/include/layout.inc b/include/layout.inc index 68019e9..b13ab0b 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -662,7 +662,7 @@ function print_news($news, $dog, $max = 5) { $published = substr($item["published"], 0, 10); $newsdate = date("d-M-Y", strtotime($published)); - echo block_info_start(CORNERS_TOP, $extra); + echo block_info_start(CORNERS_TOP, array("info" => $extra)); echo <<< EOT <h3 class="summary entry-title"><a name="{$id}" id="{$id}" href="{$permlink}" rel="bookmark" class="bookmark">{$item["title"]}</a></h3> <p class="news-date"><abbr class="published newsdate" title="{$item["published"]}">$newsdate</abbr></p> commit b4a3a9529bfb723142988fa16c6d1a04c0c8ddcf Author: Hannes Magnusson <bjori@php.net> Date: Tue Aug 19 22:06:08 2008 +0000 Fix syntax errors and incorrect type checking #Note to self: Don't change stuff while writing commit messages diff --git a/include/layout.inc b/include/layout.inc index 33a158f..68019e9 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -680,9 +680,9 @@ define("CORNERS_TOP", 0x01); // Print out rounded corners at the top define("CORNERS_BOTTOM", 0x02); // Print out rounded corners at the bottom define("COLUMN_LEFT", 1); // First column (left sidebar) -define("COLUMN_MAIN" 2); // Main content column in 2 column view -define("COLUMN_MIDDLE" 3); // Second column in 3 column view -define("COLUMN_RIGHT" 4); // Third column (right sidebar) +define("COLUMN_MAIN", 2); // Main content column in 2 column view +define("COLUMN_MIDDLE", 3); // Second column in 3 column view +define("COLUMN_RIGHT", 4); // Third column (right sidebar) // I am extremely lazy and have a piss poor copy&paste skilz. // Better of opening/closing these layout boxes using help functions @@ -704,7 +704,7 @@ function column($id = "") { OPEN; return true; } - if($id === false) { + if($id === "") { echo <<< CLOSE </div> <!-- .content --> </li><!-- #id.. --> commit a07243d01708f93d1382bd38f65159b0519054df Author: Hannes Magnusson <bjori@php.net> Date: Tue Aug 19 22:03:02 2008 +0000 - Replaced few include_one()s with include()s - Added layout helper functions - Removed some global magic - Updated few more pages to use the new style diff --git a/conferences/index.php b/conferences/index.php index 848f718..84c55f1 100644 --- a/conferences/index.php +++ b/conferences/index.php @@ -1,29 +1,34 @@ <?php // $Id$ $_SERVER['BASE_PAGE'] = 'conferences/index.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; +site_header("PHP Conferences around the world", array( + 'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Conference announcements" href="' . $MYSITE . 'feed.atom" />', +)); -$layout_workaround = <<< EOT -<div id="conferencesSidebar"> - <div id="contact"> - <p> - Are you planning a PHP related conference and want it listed here? - <a href="/contact">Let us know.</a> - </p> - </div> - $RSIDEBAR_DATA -</div> -EOT; -unset($RSIDEBAR_DATA); +column_box(COLUMN_LEFT); +?> +<div id="contact"> + <p> + Are you planning a PHP related conference and want it listed here? + <a href="/contact">Let us know.</a> + </p> +</div> +<?php +echo $EVENTS_DATA; -site_header("PHP Conferences around the world", array("layout_workaround" => $layout_workaround, 'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Conference announcements" href="' . $MYSITE . 'feed.atom" />')); +column_box(); +column(COLUMN_MAIN); print_news($NEWS_ENTRIES, array("conferences", "cfp"), 10); - +?> + <p class="t-center"><a href="/archive/index.php"><strong>News Archive</strong></a></p> +<?php +column(); site_footer( array("atom" => "/feed.atom") // Add a link to the feed ); diff --git a/docs.php b/docs.php index 76fade7..5628715 100644 --- a/docs.php +++ b/docs.php @@ -1,13 +1,17 @@ <?php // $Id$ $_SERVER['BASE_PAGE'] = 'docs.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -$SIDEBAR_DATA=' + +site_header("Documentation"); + +column_box(COLUMN_LEFT); +?> <h3>FAQ</h3> <p> The <a href="/FAQ.php">PHP FAQ</a> is your first stop for general - information and those questions that seem to be on most people\'s minds. + information and those questions that seem to be on most people's minds. If you have licensing questions, see the separate <a href="/license/">License FAQ</a>. </p> @@ -37,10 +41,11 @@ $SIDEBAR_DATA=' great places to find many example scripts and useful functions, organized for your searching pleasure! </p> -'; -site_header("Documentation"); +<?php +column_box(); +column_box(COLUMN_MAIN); ?> <h1>Documentation</h1> @@ -122,4 +127,8 @@ foreach ($ACTIVE_ONLINE_LANGUAGES as $langcode => $langname) { </li> </ul> -<?php site_footer(); +<?php +column_box(); + +site_footer(); + diff --git a/include/layout.inc b/include/layout.inc index 98b8cf9..33a158f 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -60,19 +60,13 @@ function commonHeader($title) { site_header($title); } function site_header($title = '', $config = array()) { - global $EXPL_LANG, $SIDEBAR_DATA, $PAGE_COLUMNS, $PGI, $PRE_DATA; + global $EXPL_LANG, $PGI, $PRE_DATA; // Default to empty array if improper parameter passed if (!is_array($config)) { $config = array(); } // String defaults - $lang_input = $base = $meta = $layout_helper = ''; - - // Count number of columns for layout. The number identifies - // the layout precisely, as we have no page having a right - // sidebar and no left sidebar - $PAGE_COLUMNS = 1; - if (!empty($SIDEBAR_DATA)) { $PAGE_COLUMNS++; } + $lang_input = $base = $meta = ''; // Print out lang and charset headers if (!isset($config["lang"])) { $config["lang"] = "en"; } @@ -116,11 +110,6 @@ function site_header($title = '', $config = array()) $base = "\n <base href=\"{$_SERVER['BASE_HREF']}\" />"; } - // Define layout helper in case we need it - if ($PAGE_COLUMNS > 2) { - $layout_helper = "<div id=\"layout_{$PAGE_COLUMNS}_helper\">"; - } - // Choose name of mirror site specific CSS file $mirror_specific_style = ($_SERVER['STATIC_ROOT'] ? 'phpnet' : 'mirror'); @@ -227,21 +216,11 @@ function site_header($title = '', $config = array()) <li class="last"><a href="/my.php">My Php.net</a></li> </ul> </li><!--#main-menu--> - -END_HEADER; - - echo $PRE_DATA; - - // Print out left column - if ($PAGE_COLUMNS > 1) { -echo ' + $PRE_DATA <li id="content"> <ul id="content-columns"> - <li id="left-column"> - ' . $SIDEBAR_DATA . ' - </li>'; - } - + +END_HEADER; } // Stats pages still need this @@ -249,7 +228,7 @@ function commonFooter() { site_footer(); } function site_footer($config = array()) { - global $LAST_UPDATED, $PAGE_COLUMNS, $RSIDEBAR_DATA; + global $LAST_UPDATED; $stats = (have_stats() ? "\n <li><a href=\"/stats/\">stats</a></li>" : ""); $rsslink = (isset($config["rss"]) ? @@ -269,14 +248,6 @@ function site_footer($config = array()) $last_updated = strftime("%c %Z", $LAST_UPDATED); //$functionsjs = (in_array("functionsjs", $config) ? "\n<script src=\"" . $_SERVER['STATIC_ROOT'] . '/functions.js" type="text/javascript"></script>' : ''); - // Print out right column - if ($RSIDEBAR_DATA) { -echo ' - <li id="right-column"> - ' . $RSIDEBAR_DATA . ' - </li>'; - } - print <<<END_FOOTER </ul> <!-- #content-columns --> @@ -646,7 +617,7 @@ function news_archive_sidebar() function print_news($news, $dog, $max = 5) { $count = 0; foreach($news as $item) { - $vevent = ""; + $extra = array("hentry"); $ok = false; // Only print entries in the provided s/dog/cat/ egory @@ -657,7 +628,7 @@ function print_news($news, $dog, $max = 5) { ++$count; } if ($category["term"] === "conferences" || $category["term"] === "cfp") { - $vevent = " vevent"; + $extra[] = "vevent"; } } if ($count > $max) { @@ -691,18 +662,169 @@ function print_news($news, $dog, $max = 5) { $published = substr($item["published"], 0, 10); $newsdate = date("d-M-Y", strtotime($published)); - echo <<< EOT - <div class="block"><span class="corners-top"><span></span></span> - <div class="info hentry{$vevent}"> + echo block_info_start(CORNERS_TOP, $extra); + echo <<< EOT <h3 class="summary entry-title"><a name="{$id}" id="{$id}" href="{$permlink}" rel="bookmark" class="bookmark">{$item["title"]}</a></h3> <p class="news-date"><abbr class="published newsdate" title="{$item["published"]}">$newsdate</abbr></p> <div class="newsImage">{$image}</div> {$item["content"]} - </div> - </div><!--.block--> EOT; + echo block_info_end(CORNERS_NONE); } } + +// {{{ Layout boxes +define("CORNERS_NONE", 0x00); // Don't print out the rounded corners +define("CORNERS_TOP", 0x01); // Print out rounded corners at the top +define("CORNERS_BOTTOM", 0x02); // Print out rounded corners at the bottom + +define("COLUMN_LEFT", 1); // First column (left sidebar) +define("COLUMN_MAIN" 2); // Main content column in 2 column view +define("COLUMN_MIDDLE" 3); // Second column in 3 column view +define("COLUMN_RIGHT" 4); // Third column (right sidebar) + +// I am extremely lazy and have a piss poor copy&paste skilz. +// Better of opening/closing these layout boxes using help functions + +// Print a layout column (COLUMN_*) +function column($id = "") { + static $columns = array( + COLUMN_LEFT => "left", + COLUMN_MAIN => "main", + COLUMN_MIDDLE => "mid", + COLUMN_RIGHT => "right", + ); + if (isset($columns[$id])) { + $id = $columns[$id] . "-column"; + echo <<< OPEN + <li id="$id"> + <div class="content"> + +OPEN; + return true; + } + if($id === false) { + echo <<< CLOSE + </div> <!-- .content --> + </li><!-- #id.. --> + +CLOSE; + return true; + } + + trigger_error("Unknown column passed ($id), not printing any markup", E_USER_WARNING); + return false; + +} + +// Print out a box (CORNERS_*) +// $classes can be used to add specific CSS classes to the div elements +function box($corners = CORNERS_NONE, $classes = array()) { + static $defaults = array( + "block" => array("block"), + "info" => array("info"), + "corners" => array("corners-top"), + ); + // Previous CORNERS_ settings + static $stack = array(); + // Merge the default CSS classnames with $classes + $classes = array_merge_recursive($defaults, $classes); + + // No args == closing column + $open = !(func_num_args() == 0); + + if ($open) { + $block = ' <div class="' .join(" ", $classes["block"]). '"><!-- .block -->'; + $info = ' <div class="' .join(" ", $classes["info"]). '"><!-- .info -->'; + $top = ' <span class="' .join(" ", $classes["corners"]). '"><span></span></span>'; + + $stack[] = $corners; + if ($corners == CORNERS_NONE) { + echo "$block\n$info\n"; + return; + } + echo "$block\n$top\n$info\n"; + return; + } + + $corners = array_pop($stack); + + $info = ' </div><!-- .info -->'; + $bottom = ' <span class="corners-bottom"><span></span></span>'; + $block = ' </div><!-- .block -->'; + + if ($corners == CORNERS_NONE) { + echo "$info\n$block\n"; + return; + } + echo "$info\n$bottom\n$block\n"; +} + +// Wrapper for column(COLUMN_*); box(CORNERS_*); (and box(); column();) +// $extra is contains for the moment only one option key, "classes", see box() +function column_box($column = "", $corners = CORNERS_TOP, $extra = array()) { + static $defaults = array( + "classes" => array(), + ); + + $extra = array_merge_recursive($defaults, $extra); + + // No args == closing column + $open = !(func_num_args() == 0); + + if ($open) { + column($column); + box($corners, $extra["classes"]); + } else { + box(); + column(); + } +} + + +function block_info_start($corners = CORNERS_NONE, $classes = array()) { + static $defaults = array( + "block" => array("block"), + "info" => array("info"), + "corners" => array("corners-top"), + ); + $classes = array_merge_recursive($defaults, $classes); + + $block = ' <div class="' .join(" ", $classes["block"]). '"><!-- .block -->'; + $info = ' <div class="' .join(" ", $classes["info"]). '"><!-- .info -->'; + $top = ' <span class="' .join(" ", $classes["corners"]). '"><span></span></span>'; + + if ($corners == CORNERS_NONE) { + return "$block\n$info\n"; + } + if ($corners == CORNERS_TOP) { + return "$block\n$top\n$info\n"; + } +} + +function block_info_end($corners = CORNERS_NONE) { + $info = ' </div><!-- .info -->'; + $bottom = ' <span class="corners-bottom"><span></span></span>'; + $block = ' </div><!-- .block -->'; + + if ($corners == CORNERS_NONE) { + return "$info\n$block\n"; + } + if ($corners == CORNERS_BOTTOM) { + return "$info\n$bottom\n$block\n"; + } +} + +// Yes. I'm seriusly _THAT_ lazy :D +$START_BLOCK_INFO_CORNERS = block_info_start(CORNERS_TOP); +$END_BLOCK_INFO_CORNERS = block_info_end(CORNERS_BOTTOM); + +$START_BLOCK_INFO = block_info_start(CORNERS_NONE); +$END_BLOCK_INFO = block_info_end(CORNERS_NONE); + +// }}} + + /* vim: set et ts=4 sw=4 ft=php: : */ diff --git a/include/shared-manual.inc b/include/shared-manual.inc index b56aa6b..44ffdba 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -15,7 +15,7 @@ */ // Ensure that our environment is set up -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; // Set variable defaults $PGI = array(); $SIDEBAR_DATA = ''; diff --git a/index.php b/index.php index 18f01cb..4965cc3 100644 --- a/index.php +++ b/index.php @@ -1,10 +1,8 @@ -<?php // vim: et +<?php // vim: et fdm=marker /* - If you're reading this, it isn't because you've found a security hole. - this is an open source website. read and learn! -*/ - -/* ------------------------------------------------------------------------- */ + * No. You did not find a security hole. + * This is an open source website. + */ // Modified headers {{{ // Get the modification date of this PHP file @@ -45,18 +43,63 @@ else { // }}} $_SERVER['BASE_PAGE'] = 'index.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-confs.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc'; - -// This goes to the left sidebar of the front page {{{ -$SIDEBAR_DATA = ' -<div class="content"> - <div class="block"> - <span class="corners-top"><span></span></span> - <div class="info"> +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-confs.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc'; + +// Generate conference teaser {{{ +if (is_array($CONF_TEASER) && count($CONF_TEASER)) { + $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); + $teaser = ' <li id="news-line"><span class="corners-top"><span></span></span><ul>' . "\n"; + foreach($CONF_TEASER as $k => $a) { + if (is_array($a) && count($a)) { + $teaser .= " <li><span>" . $categories[$k] . "</span>\n"; + $teaser .= " <ul>"; + $count = 0; + $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); + foreach($a as $url => $title) { + if ($count++ >= 4) { + break; + } + $teaser .= ' <li class="first last"><a href="' . $url. '">' . $title. '</a></li>' . "\n"; + } + $teaser .= " </ul>\n </li>\n"; + } // if set + } + $teaser .= ' </ul><span class="corners-bottom"><span></span></span></li><!-- #news-line -->'."\n"; + $PRE_DATA = $teaser; +} // }}} + +// Write out common header {{{ +site_header("Hypertext Preprocessor", + array( + 'onload' => 'boldEvents();', + 'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Hypertext Preprocessor" href="' . $MYSITE . 'feed.atom" />', + 'link' => array( + array( + "rel" => "search", + "type" => "application/opensearchdescription+xml", + "href" => $MYSITE . "phpnetimprovedsearch.src", + "title" => "Add PHP.net search" + ), + array( + "rel" => "alternate", + "type" => "application/atom+xml", + "href" => $MYSITE . "releases.atom", + "title" => "PHP Release feed" + ), + + ), + ) +); +// }}} + +// {{{ Left sidebar ("What is PHP" & "Thanks to") + +column_box(COLUMN_LEFT); +?> <h3>What is PHP?</h3> <p> @@ -69,11 +112,7 @@ $SIDEBAR_DATA = ' and the example archive sites and some of the other resources available in the <a href="/links.php">links section</a>. </p> -</div> -</div><!-- .block--> - - <div class="block"> - <div class="info"> +<?php echo $END_BLOCK_INFO, $START_BLOCK_INFO; ?> <h3><a href="/thanks.php">Thanks To</a></h3> <ul class="simple"> @@ -96,13 +135,25 @@ $SIDEBAR_DATA = ' <p> You can grab our news as an <a href="/feed.atom">Atom feed</a>. </p> - </div><!--.block--> - <span class="corners-bottom"><span></span></span> - </div> - </div> -'; + +<?php +column_box(); + // }}} +// {{{ News (include/pregen-news.inc) +column(COLUMN_MIDDLE); + +// $NEWS_ENTRIES is generated on master (scripts/pregen_news) from archive/*.xml +print_news($NEWS_ENTRIES, "frontpage"); +echo '<p class="t-center"><a href="/archive/index.php"><strong>News Archive</strong></a></p>'; + +column(); +// }}} + +// Right column (releases/events..) {{{ +column_box(COLUMN_RIGHT, true, array("classes" => array("block" => array("releases")))); + $MIRROR_IMAGE = ''; // Try to find a sponsor image in case this is an official mirror {{{ @@ -154,129 +205,59 @@ if (count($RELEASES[5])>1) { list($PHP_5_RC, ) = each($RELEASES[5]); } +?> -$release_box = <<< RELEASE_DATA - <div class="content"> - <div class="block releases"><span class="corners-top"><span></span></span> - <div class="info"> <h3>Stable releases</h3> - <p class="first">Current PHP 5 Stable: <a href="/ChangeLog-5.php#$PHP_5_STABLE"><strong>$PHP_5_STABLE</strong></a></p> + <p class="first">Current PHP 5 Stable: <a href="/ChangeLog-5.php#<?php echo $PHP_5_STABLE ?>"><strong><?php echo $PHP_5_STABLE ?></strong></a></p> <p class="download-button"><a href="/downloads.php#v5"><span>Download</span></a></p> <p class="top-border">Historical PHP Stable: <a href="/downloads.php#v4"><strong>4.4.9</strong></a></p> -RELEASE_DATA; - -if ($PHP_5_RC) { - $release_box .= <<< RELEASE_DATA +<?php +if ($PHP_5_RC): +?> <h4>Release Candidates</h4> - <p class="top-border"><a href="http://qa.php.net/">$PHP_5_RC</a></p> -RELEASE_DATA; -} -$release_box .= <<< RELEASE_DATA + <p class="top-border"><a href="http://qa.php.net/"><?php echo $PHP_5_RC ?></a></p> +<?php +endif; +?> <p><a href="/downloads.php"><strong>Download area &raquo;</strong></a></p> - </div><!-- .info --> - </div><!--.block--> -RELEASE_DATA; + <?php echo $END_BLOCK_INFO ?> +<?php /* }}} */ // Generate the event box {{{ -$upcoming_events = <<< UPCOMING_EVENTS - <div class="block"> - <div class="info"> +?> + <?php echo $START_BLOCK_INFO ?> <h3 class="upcoming-events">Upcoming Events</h3> - <div class="calendar"><span class="corners-top"><span></span></span> + <div class="calendar"> + <span class="corners-top"><span></span></span> <h4>Events Calendar</h4> <form method="get" action="/cal.php"> <p> <select class="month" name="cm"> -UPCOMING_EVENTS; - +<?php $months = array(1 => "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $current = date("m", $_SERVER["REQUEST_TIME"]); foreach($months as $n => $month) { - $upcoming_events .= "<option value='$n' ". ($n == $current ? 'selected="selected"' : '') .">$month</option>\n"; + echo "<option value='$n' ". ($n == $current ? 'selected="selected"' : '') .">$month</option>\n"; } - -$upcoming_events .= <<< UPCOMING_EVENTS +?> </select> <span><input type="submit" class="button" value="View" /></span> </p> </form> - <span class="corners-bottom"><span></span></span></div> - <p class="add-event"><a href="/submit-event.php"><strong>Add event &raquo;</strong></a></p> - <div class="events"> - $EVENTS_DATA - </div> + <span class="corners-bottom"><span></span></span> </div><!-- .calendar --> - </div><!-- .info --> - </div><!-- .block --> -UPCOMING_EVENTS; + <p class="add-event"><a href="/submit-event.php"><strong>Add event &raquo;</strong></a></p> + <div class="events"> + <?php echo $EVENTS_DATA ?> + </div> +<?php // }}} -// Prepend mirror image & latest releases to sidebar text -$RSIDEBAR_DATA = $MIRROR_IMAGE . $release_box . $upcoming_events; - -// Generate conference teaser {{{ -if (is_array($CONF_TEASER) && count($CONF_TEASER)) { - $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); - $teaser = ' <li id="news-line"><span class="corners-top"><span></span></span><ul>' . "\n"; - foreach($CONF_TEASER as $k => $a) { - if (is_array($a) && count($a)) { - $teaser .= " <li><span>" . $categories[$k] . "</span>\n"; - $teaser .= " <ul>"; - $count = 0; - $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); - foreach($a as $url => $title) { - if ($count++ >= 4) { - break; - } - $teaser .= ' <li class="first last"><a href="' . $url. '">' . $title. '</a></li>' . "\n"; - } - $teaser .= " </ul>\n </li>\n"; - } // if set - } - $teaser .= ' </ul><span class="corners-bottom"><span></span></span></li><!-- #news-line -->'."\n"; - $PRE_DATA = $teaser; -} // }}} - -// Write out common header {{{ -site_header("Hypertext Preprocessor", - array( - 'onload' => 'boldEvents();', - 'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Hypertext Preprocessor" href="' . $MYSITE . 'feed.atom" />', - 'link' => array( - array( - "rel" => "search", - "type" => "application/opensearchdescription+xml", - "href" => $MYSITE . "phpnetimprovedsearch.src", - "title" => "Add PHP.net search" - ), - array( - "rel" => "alternate", - "type" => "application/atom+xml", - "href" => $MYSITE . "releases.atom", - "title" => "PHP Release feed" - ), - - ), - ) -); +column_box(); // }}} -?> - <li id="mid-column"> - <div class="content"> -<?php -/* Where the h*ll did all the news go? - * See ./bin/createNewsEntry - */ -print_news($NEWS_ENTRIES, "frontpage"); -?> - <p class="t-center"><a href="/archive/index.php"><strong>News Archive</strong></a></p> - </div> - </li><!-- #mid-column--> - -<?php site_footer( array("atom" => "/feed.atom") // Add a link to the feed at the bottom ); diff --git a/links.php b/links.php index 7e05d38..d45c43c 100644 --- a/links.php +++ b/links.php @@ -1,8 +1,11 @@ <?php // $Id$ $_SERVER['BASE_PAGE'] = 'links.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -$SIDEBAR_DATA = ' +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; + +site_header("Links"); +column_box(COLUMN_LEFT); +?> <h3>Support tips and links</h3> <p> We suggest you visit <a href="/support.php">our support page</a> @@ -16,8 +19,10 @@ $SIDEBAR_DATA = ' <a href="/software">list of software</a> available under the PHP license. </p> -'; -site_header("Links"); + +<?php +column_box(); +column_box(COLUMN_MAIN); ?> <h1>PHP Related Links</h1> @@ -49,6 +54,9 @@ site_header("Links"); </li> </ul> +<?php echo $END_BLOCK_INFO_CORNERS ?> +<?php echo $START_BLOCK_INFO_CORNERS ?> + <a name="magazines"></a> <h4>PHP Magazines</h4> @@ -81,6 +89,9 @@ site_header("Links"); </ul> +<?php echo $END_BLOCK_INFO_CORNERS ?> +<?php echo $START_BLOCK_INFO_CORNERS ?> + <a name="merchandise"></a> <h4>PHP Merchandise</h4> @@ -95,6 +106,9 @@ site_header("Links"); </li> </ul> +<?php echo $END_BLOCK_INFO_CORNERS ?> +<?php echo $START_BLOCK_INFO_CORNERS ?> + <a name="nonenglish"></a> <h4>Non-English PHP Sites</h4> @@ -434,5 +448,7 @@ dead domain 2007/02/07 <li> </li> </ul> +<?php +column_box(); +site_footer(); -<?php site_footer(); ?> diff --git a/my.php b/my.php index f268466..1a57932 100644 --- a/my.php +++ b/my.php @@ -1,7 +1,7 @@ <?php // $Id$ $_SERVER['BASE_PAGE'] = 'my.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; // Try to make this page non-cached header_nocache(); @@ -70,6 +70,8 @@ if (isset($_POST['hidesuggest'])) { myphpnet_save(); site_header("My PHP.net"); + +column_box(COLUMN_MAIN); ?> <form action="/my.php" method="post"> @@ -274,4 +276,7 @@ foreach ($mirror_sites as $murl => $mdata) { </p> </form> -<?php site_footer(); ?> +<?php +column_box(); +site_footer(); + diff --git a/sites.php b/sites.php index 1bfb14e..82fffb5 100644 --- a/sites.php +++ b/sites.php @@ -1,8 +1,11 @@ <?php // $Id$ $_SERVER['BASE_PAGE'] = 'sites.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -$SIDEBAR_DATA = ' +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; + +site_header("A Tourist's Guide"); +column_box(COLUMN_LEFT); +?> <h3>PHP.net Sitemap</h3> <p> It might also be a good idea to dig deeper into @@ -17,8 +20,10 @@ $SIDEBAR_DATA = ' Our <a href="/links.php">links page</a> offers some start pages you will find interesting. </p> -'; -site_header("A Tourist's Guide"); + +<?php +column_box(); +column_box(COLUMN_MAIN); ?> <h1>PHP.net: A Tourist's Guide</h1> @@ -215,4 +220,8 @@ site_header("A Tourist's Guide"); has a wiki section and everyone is able to apply for wiki commit access. </p> -<?php site_footer(); ?> +<?php +column_box(); + +site_footer(); + diff --git a/support.php b/support.php index 2e7540c..9de37fc 100644 --- a/support.php +++ b/support.php @@ -1,17 +1,19 @@ <?php // $Id$ $_SERVER['BASE_PAGE'] = 'support.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; + site_header("Getting Help"); +column_box(COLUMN_MAIN); ?> <h1>Documentation</h1> <p> - A good place to start is by skimming through the ever-growing list of <a - href="/FAQ.php">frequently asked questions (with answers, of course)</a>. Then - have a look at the rest of the online manual and other resources in the <a - href="/docs.php">documentation</a> section. + A good place to start is by skimming through the ever-growing list of + <a href="/FAQ.php">frequently asked questions (with answers, of course)</a>. + Then have a look at the rest of the online manual and other resources in the + <a href="/docs.php">documentation</a> section. </p> <h1>Books</h1> @@ -118,4 +120,8 @@ site_header("Getting Help"); questions. </p> -<?php site_footer(); ?> +<?php +column_box(); + +site_footer(); + commit 23732f10d49afa3b162d2f3bb64bbe8c9554ef7a Author: Hannes Magnusson <bjori@php.net> Date: Sun Aug 17 16:01:52 2008 +0000 Initial commit of the new design from AOE media # Only index.php and (most of) the manual pages implemented so far diff --git a/images/block_sprites.gif b/images/block_sprites.gif new file mode 100644 index 0000000..d3bd450 Binary files /dev/null and b/images/block_sprites.gif differ diff --git a/images/corners-left.gif b/images/corners-left.gif new file mode 100644 index 0000000..85f3157 Binary files /dev/null and b/images/corners-left.gif differ diff --git a/images/corners-right.gif b/images/corners-right.gif new file mode 100644 index 0000000..d2e5cbc Binary files /dev/null and b/images/corners-right.gif differ diff --git a/images/download-button.gif b/images/download-button.gif new file mode 100644 index 0000000..4ef0c39 Binary files /dev/null and b/images/download-button.gif differ diff --git a/images/footer-back.gif b/images/footer-back.gif new file mode 100644 index 0000000..e625b61 Binary files /dev/null and b/images/footer-back.gif differ diff --git a/images/header-corners.jpg b/images/header-corners.jpg new file mode 100644 index 0000000..245f37b Binary files /dev/null and b/images/header-corners.jpg differ diff --git a/images/header-logo.jpg b/images/header-logo.jpg new file mode 100644 index 0000000..6e724bf Binary files /dev/null and b/images/header-logo.jpg differ diff --git a/images/main-corners-back.gif b/images/main-corners-back.gif new file mode 100644 index 0000000..40b0db7 Binary files /dev/null and b/images/main-corners-back.gif differ diff --git a/images/menu-corners-back.gif b/images/menu-corners-back.gif new file mode 100644 index 0000000..a9554da Binary files /dev/null and b/images/menu-corners-back.gif differ diff --git a/images/news-line-back.gif b/images/news-line-back.gif new file mode 100644 index 0000000..28cb97a Binary files /dev/null and b/images/news-line-back.gif differ diff --git a/images/note-username-back.gif b/images/note-username-back.gif new file mode 100644 index 0000000..4df9839 Binary files /dev/null and b/images/note-username-back.gif differ diff --git a/images/note-username-back.jpg b/images/note-username-back.jpg new file mode 100644 index 0000000..4d75330 Binary files /dev/null and b/images/note-username-back.jpg differ diff --git a/include/layout.inc b/include/layout.inc index a8b48b2..98b8cf9 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -60,7 +60,7 @@ function commonHeader($title) { site_header($title); } function site_header($title = '', $config = array()) { - global $EXPL_LANG, $SIDEBAR_DATA, $RSIDEBAR_DATA, $PAGE_COLUMNS, $PGI; + global $EXPL_LANG, $SIDEBAR_DATA, $PAGE_COLUMNS, $PGI, $PRE_DATA; // Default to empty array if improper parameter passed if (!is_array($config)) { $config = array(); } @@ -73,7 +73,6 @@ function site_header($title = '', $config = array()) // sidebar and no left sidebar $PAGE_COLUMNS = 1; if (!empty($SIDEBAR_DATA)) { $PAGE_COLUMNS++; } - if (!empty($RSIDEBAR_DATA)) { $PAGE_COLUMNS++; } // Print out lang and charset headers if (!isset($config["lang"])) { $config["lang"] = "en"; } @@ -166,93 +165,83 @@ function site_header($title = '', $config = array()) print <<<END_HEADER -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head{$profile}> - <title>PHP{$title}</title> - <style type="text/css" media="all"> - @import url("{$_SERVER['STATIC_ROOT']}/styles/site.css"); - @import url("{$_SERVER['STATIC_ROOT']}/styles/{$mirror_specific_style}.css"); - </style> - <!--[if IE]><![if gte IE 6]><![endif]--> - <style type="text/css" media="print"> - @import url("{$_SERVER['STATIC_ROOT']}/styles/print.css"); - </style> - <!--[if IE]><![endif]><![endif]--> - <meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}"/> - <link rel="shortcut icon" href="{$_SERVER['STATIC_ROOT']}/favicon.ico" />{$link} - <script type="text/javascript" src="{$_SERVER['STATIC_ROOT']}/userprefs.js"></script>{$base}{$meta}{$moreheadtags} + <title>PHP{$title}</title> + <meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" /> + <link type="text/css" media="screen" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/screen.css" /> + <link type="text/css" media="print" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/print.css" /> + <link type="text/css" media="handfield" rel="stylesheet" href="{$_SERVER['STATIC_ROOT']}/styles/handfield.css" /> + <!--[if IE ]> + <link type="text/css" rel="stylesheet" media="screen" href="{$_SERVER['STATIC_ROOT']}/styles/ie.css" /> + <![endif]--> + <link rel="shortcut icon" href="{$_SERVER['STATIC_ROOT']}/favicon.ico" />{$link} + <script type="text/javascript" src="{$_SERVER['STATIC_ROOT']}/userprefs.js"></script> + {$base}{$meta}{$moreheadtags} </head> -<body{$onload}> - -<div id="headnav"> - <a href="/" rel="home"><img src="{$_SERVER['STATIC_ROOT']}/images/php.gif" - alt="PHP" width="120" height="67" /></a> - <div id="headmenu"> - <a href="/downloads.php">downloads</a> | - <a href="/docs.php">documentation</a> | - <a href="/FAQ.php">faq</a> | - <a href="/support.php">getting help</a> | - <a href="/mailing-lists.php">mailing lists</a> | - <a href="http://bugs.php.net/">reporting bugs</a> | - <a href="/sites.php">php.net sites</a> | - <a href="/links.php">links</a> | - <a href="/conferences/">conferences</a> | - <a href="/my.php">my php.net</a> - </div> -</div> - -<div id="headsearch"> - <form method="post" action="/search.php" id="topsearch"> - <p> - <span title="Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)"> - <span class="shortkey">s</span>earch for - </span> - <input type="text" name="pattern" value="" size="30" accesskey="s" /> - <span>in the</span> - <select name="show"> - <option value="quickref" selected="selected">function list</option> - <option value="all" >all php.net sites</option> - <option value="local" >this mirror only</option> - <option value="manual" >online documentation</option> - <option value="bugdb" >bug database</option> - <option value="news_archive">Site News Archive</option> - <option value="changelogs">All Changelogs</option> - <option value="pear" >just pear.php.net</option> - <option value="pecl" >just pecl.php.net</option> - <option value="talks" >just talks.php.net</option> - <option value="maillist" >general mailing list</option> - <option value="devlist" >developer mailing list</option> - <option value="phpdoc" >documentation mailing list</option> - </select> - <input type="image" - src="{$_SERVER['STATIC_ROOT']}/images/small_submit_white.gif" - class="submit" alt="search" />{$lang_input} - </p> - </form> -</div> - -<div id="layout_{$PAGE_COLUMNS}">{$layout_helper} + +<body id="homepage"> + <ul id="root"> + <li id="header"> + <div class="content"> + <h1><a href="/index.php">PHP: Hypertext Preprocessor</a></h1> + <form method="post" action="/search.php" id="topsearch"> + <div id="search-box"> + <label>Search for</label> + <span><input type="text" class="text" maxlength="20" name="pattern" /></span> + <label>in the</label> + <span> + <select name="show"> + <option value="quickref" selected="selected">function list</option> + <option value="all" >all php.net sites</option> + <option value="local" >this mirror only</option> + <option value="manual" >online documentation</option> + <option value="bugdb" >bug database</option> + <option value="news_archive">Site News Archive</option> + <option value="changelogs" >All Changelogs</option> + <option value="pear" >just pear.php.net</option> + <option value="pecl" >just pecl.php.net</option> + <option value="talks" >just talks.php.net</option> + <option value="maillist" >general mailing list</option> + <option value="devlist" >developer mailing list</option> + <option value="phpdoc" >documentation mailing list</option> + </select> + </span> + <span><input type="submit" class="button" value="Search" /></span> + </div> + </form> + </div> + </li><!--#header--> + <li id="main-menu"> + <ul id="top-navigation"> + <li class="first"><a href="/downloads.php">Downloads</a></li> + <li><a href="/docs.php">Documentation</a></li> + <li><a href="/FAQ.php">Faq</a></li> + <li><a href="/support.php">Getting Help</a></li> + <li><a href="/mailing-lists.php">Mailing Lists</a></li> + <li><a href="http://bugs.php.net">Reporting Bugs</a></li> + <li><a href="/sites.php">Php.net Sites</a></li> + <li><a href="/links.php">Links</a></li> + <li><a href="/conferences/">Conferences</a></li> + <li class="last"><a href="/my.php">My Php.net</a></li> + </ul> + </li><!--#main-menu--> + END_HEADER; + echo $PRE_DATA; + // Print out left column if ($PAGE_COLUMNS > 1) { - echo "\n <div id=\"leftbar\">\n$SIDEBAR_DATA\n </div>"; +echo ' + <li id="content"> + <ul id="content-columns"> + <li id="left-column"> + ' . $SIDEBAR_DATA . ' + </li>'; } - // Print out right column - if ($PAGE_COLUMNS > 2) { - echo "\n <div id=\"rightbar\">\n$RSIDEBAR_DATA\n </div>"; - } - - // Any layout workarounds? - if (!empty($config["layout_workaround"])) { - echo $config["layout_workaround"]; - } - - // Start main page content - echo "\n <div id=\"content\" class=\"$classname\"{$rtl}>\n"; } // Stats pages still need this @@ -260,17 +249,17 @@ function commonFooter() { site_footer(); } function site_footer($config = array()) { - global $LAST_UPDATED, $PAGE_COLUMNS; + global $LAST_UPDATED, $PAGE_COLUMNS, $RSIDEBAR_DATA; - $stats = (have_stats() ? "\n <a href=\"/stats/\">stats</a> |" : ""); + $stats = (have_stats() ? "\n <li><a href=\"/stats/\">stats</a></li>" : ""); $rsslink = (isset($config["rss"]) ? - "<a href=\"{$config["rss"]}\">RSS</a> |" : + "<li><a href=\"{$config["rss"]}\">RSS</a></li>" : ""); $atomlink = (isset($config["atom"]) ? - "<a href=\"{$config["atom"]}\">Atom</a> |" : + "<li><a href=\"{$config["atom"]}\">Atom</a></li>" : ""); $viewsource = (isset($_SERVER['BASE_PAGE']) ? - "<a href=\"/source.php?url=/{$_SERVER['BASE_PAGE']}\">show source</a> |" : + "<li><a href=\"/source.php?url=/{$_SERVER['BASE_PAGE']}\">show source</a></li>" : ""); $provider_url = mirror_provider_url(); $provider_name = mirror_provider(); @@ -278,36 +267,40 @@ function site_footer($config = array()) "<a href=\"/mirror.php\">This mirror</a> generously provided by:" : "<a href=\"/mirror.php\">This unofficial mirror</a> is operated at:"); $last_updated = strftime("%c %Z", $LAST_UPDATED); - $layout_helper = ($PAGE_COLUMNS > 2 ? "</div>" : ""); //$functionsjs = (in_array("functionsjs", $config) ? "\n<script src=\"" . $_SERVER['STATIC_ROOT'] . '/functions.js" type="text/javascript"></script>' : ''); + // Print out right column + if ($RSIDEBAR_DATA) { +echo ' + <li id="right-column"> + ' . $RSIDEBAR_DATA . ' + </li>'; + } + print <<<END_FOOTER - </div> - <div class="cleaner">&nbsp;</div> -{$layout_helper}</div> - -<div id="footnav"> - $rsslink $atomlink $viewsource - <a href="/credits.php">credits</a> |$stats - <a href="/sitemap.php">sitemap</a> | - <a href="/contact.php">contact</a> | - <a href="/contact.php#ads">advertising</a> | - <a href="/mirrors.php">mirror sites</a> -</div> - -<div id="pagefooter"> - <div id="copyright"> - <a href="/copyright.php">Copyright &copy; 2001-2008 The PHP Group</a><br /> - All rights reserved. - </div> - - <div id="thismirror"> - {$mirror_text} - <a href="{$provider_url}">{$provider_name}</a><br /> - Last updated: {$last_updated} - </div> -</div> + </ul> <!-- #content-columns --> + </li> <!-- #content --> + <li id="footer"><span class="corners-top"><span></span></span> + <div class="info"> + <div id="copyright"><a href="/copyright.php">Copyright &copy; 2001-2008 The PHP Group</a><br />All rights reserved.</div> + <div id="footer-menu"> + <ul> + $rsslink $atomlink $viewsource + <li><a href="/credits.php">Credits</a></li> + $stats + <li><a href="/stats/">Stats</a></li> + <li><a href="/sitemap.php">Sitemap</a></li> + <li><a href="/contact.php">Contact</a></li> + <li><a href="/contact.php#ads">Advertising</a></li> + <li class="last"><a href="/mirrors.php">Mirror sites</a></li> + </ul><br /> + <small>{$mirror_text} <a href="{$provider_url}">{$provider_name}</a> Last updated: {$last_updated}</small> + </div> + </div> + <span class="corners-bottom"><span></span></span> + </li><!--#footer--> + </ul><!--#root--> </body> </html> @@ -699,16 +692,14 @@ function print_news($news, $dog, $max = 5) { $newsdate = date("d-M-Y", strtotime($published)); echo <<< EOT -<div class="newsItem hentry{$vevent}"> - <div class="newsImage">{$image}</div> - <h1 class="summary entry-title"><a name="{$id}" id="{$id}" href="{$permlink}" rel="bookmark" class="bookmark">{$item["title"]}</a></h1> - <div class="entry-content description"> - <abbr class="published newsdate" title="{$item["published"]}">[{$newsdate}]</abbr> - {$item["content"]} + <div class="block"><span class="corners-top"><span></span></span> + <div class="info hentry{$vevent}"> + <h3 class="summary entry-title"><a name="{$id}" id="{$id}" href="{$permlink}" rel="bookmark" class="bookmark">{$item["title"]}</a></h3> + <p class="news-date"><abbr class="published newsdate" title="{$item["published"]}">$newsdate</abbr></p> + <div class="newsImage">{$image}</div> + {$item["content"]} </div> -</div> - -<hr /> + </div><!--.block--> EOT; } diff --git a/include/shared-manual.inc b/include/shared-manual.inc index 29ca461..b56aa6b 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -26,10 +26,10 @@ function manual_setup($page_data) { global $PGI; $PGI = array_merge($PGI, $page_data); // merge for BC reasons - + // Set base page for this manual page $_SERVER['BASE_PAGE'] = 'manual/' . language_convert($PGI['head'][1]) . "/" . $PGI['this'][0]; - + // Set last modification time on the current manual page if (($time = @filemtime($_SERVER['DOCUMENT_ROOT'] ."/". $_SERVER['BASE_PAGE'])) != false) { $PGI['lastmod'] = gmdate("D, d M Y", $time); @@ -41,25 +41,24 @@ function manual_setup($page_data) // Print out HTTP headers and the HTML header // for this manual page, according to details // already set up -// TODO: replace logo with logos/php-med-trans-light.gif on print function manual_header() { global $PGI, $LAST_UPDATED, $MYSITE; - + // Get values out of the config array $title = $PGI['this'][1]; list($encoding, $lang) = $PGI['head']; - + header("Last-Modified: " . gmdate("D, d M Y H:i:s ", $LAST_UPDATED) . "GMT"); //header("Cache-Control: public, max-age=600"); header("Vary: Cookie"); //header("Content-type: text/html;charset=$encoding"); header("Content-type: text/html;charset=utf-8"); header("Content-language: $lang"); - + // Set base href for this manual page $_SERVER['BASE_HREF'] = $MYSITE . $_SERVER['BASE_PAGE']; - + manual_sidebar(); site_header("$title - Manual", array( "link" => array( @@ -72,7 +71,22 @@ function manual_header() ), "profile" => "http://purl.org/NET/erdf/profile", )); + echo <<< MAIN_CONTENT + <li id="main-column"> + <div class="content"> +MAIN_CONTENT; + manual_navbar(); + +echo <<< MAIN_CONTENT + + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <p class="func-date">Last updated: <span>{$PGI['lastmod']}</span></p> + + +MAIN_CONTENT; + } // Print out manual page footer @@ -83,10 +97,18 @@ function manual_footer() // Get vars for easy handling list($filename, $title) = $PGI['this']; - echo "<br /><br />"; + echo "</div><!-- .info -->\n"; + echo '<span class="corners-bottom"><span></span></span></div><!--.block-->'; + + manual_notes(); - echo "<br />"; + manual_navbar("bottom"); + echo <<< MAIN_CONTENT + </div> <!-- .content --> + </li><!-- #main-column--> +MAIN_CONTENT; + site_footer(); } @@ -100,7 +122,13 @@ function manual_sidebar() global $PGI, $SIDEBAR_DATA; // Start sidebar with its <div> - $BAR = "<!--UdmComment-->\n<ul class=\"toc\">\n"; + $BAR = <<< SIDEBAR + <div class="content"> + <div class="block"><span class="corners-top"><span></span></span> + <div class="info"> + <h3>PHP Manual</h3> + <ul id="functions-list"> +SIDEBAR; // Link to manual home $BAR .= ' <li class="header home"><a href="' . $PGI['home'][0] . '">' . @@ -117,8 +145,8 @@ function manual_sidebar() // Link to one page up if titles does not match if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { - $BAR .= ' <li class="header up"><a href="' . $PGI['up'][0] . '">' . - $PGI['up'][1] . "</a></li>\n"; + $BAR .= ' <li class="header up sel"><a href="' . $PGI['up'][0] . '">' . + $PGI['up'][1] . "</a><ul>\n"; } // Print out one link for all siblings of this page @@ -128,7 +156,7 @@ function manual_sidebar() list($url, $title) = $tocitem; // Get the proper classname to use for this <div> - $liclass = ($url == $PGI['this'][0]) ? ' class="active"' : ""; + $liclass = ($url == $PGI['this'][0]) ? ' class="sel"' : ""; // There are some very long function names, which // make the TOC too wide, so enable the browser to wrap them @@ -144,8 +172,19 @@ function manual_sidebar() make_link($url, $title) . "</li>\n"; } + $close = ""; + if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { + $close = "</ul></li>"; + } // Put navigation content into sidebar, end <div> - $SIDEBAR_DATA = "$BAR</ul><!--/UdmComment-->\n"; + $SIDEBAR_DATA = <<< SIDEBAR + $BAR + </ul> + </div> + <span class="corners-bottom"><span></span></span></div><!--.block--> + </div><!-- .content --> +SIDEBAR; + } function manual_navbar($location = "top") @@ -153,36 +192,27 @@ function manual_navbar($location = "top") global $PGI, $LANG, $LANGUAGES, $INACTIVE_ONLINE_LANGUAGES, $ACTIVE_ONLINE_LANGUAGES; // Start navbar with - echo "<!--UdmComment-->\n<div class=\"manualnavbar manualnavbar_$location\">\n <span class=\"next\">\n"; + echo <<< NAVBAR + <div class="adv-block"><span class="corners-top"><span></span></span> +NAVBAR; + if (isset($PGI['next']) && isset($PGI['next'][1])) { - echo " <a href=\"{$PGI['next'][0]}\">" . - $PGI['next'][1] . - make_image('caret-r.gif', '&gt;') . - "</a>\n"; + echo " <a href=\"{$PGI['next'][0]}\" class=\"next\">" . $PGI['next'][1] . "</a>\n"; } - echo " </span>\n <span class=\"prev\">\n"; if (isset($PGI['prev']) && isset($PGI['prev'][1])) { - echo " <a href=\"{$PGI['prev'][0]}\">" . - make_image('caret-l.gif', '&lt;') . - $PGI['prev'][1] . "</a>\n"; + echo " <a href=\"{$PGI['prev'][0]}\" class=\"prev\">" . $PGI['prev'][1] . "</a>\n"; } else { echo " &nbsp;\n"; } - echo " </span>\n <hr />\n"; - - // Provide last updated information on this page - echo " <span class=\"lastupdated\">Last updated: {$PGI['lastmod']}</span>\n"; // Print out language switch on top of manual pages - echo " <div class=\"langchooser\">\n"; if ($location != 'bottom') { - $links = array(); // Quick access to filename $filename = $PGI['this'][0]; - - // Disable all languages without online content + + // Disable all languages without online content // Add a dropdown item for all languages left foreach ($ACTIVE_ONLINE_LANGUAGES as $code => $name) { if (!preg_match("!/$code/!", $_SERVER['BASE_PAGE']) @@ -194,22 +224,22 @@ function manual_navbar($location = "top") $links[] = array('help-translate.php', 'Other'); // Print out the form with all the options - echo ' <form action="/manual/change.php" method="get">' . "\n" . - ' <p>view this page in </p><fieldset><select name="page">'. "\n"; + echo '<form action="/manual/change.php" method="get"><p>View this page in + + <select name="page">'; + foreach ($links as $link) { echo ' <option value="' . $link[0] . '">' . $link[1] . "</option>\n"; } - echo " </select>\n" . - ' <input type="image" src="' . $_SERVER['STATIC_ROOT'] . - '/images/small_submit.gif" id="changeLangImage" ' . - 'alt="" />' . "\n </fieldset></form>\n"; - + echo '</select><input type="submit" value="&raquo;" /></p></form>'; + } else { echo " &nbsp;\n"; } - echo " </div>\n"; - - echo "</div>\n<!--/UdmComment-->\n\n"; + echo <<< NAVBAR + <span class="corners-bottom"><span></span></span> + </div><!-- .adv-block--> +NAVBAR; } // ============================================================================= @@ -235,25 +265,25 @@ function manual_notes() if(count($notes) > 2) { manual_navbar("bottom"); } +echo <<< MAIN_CONTENT + <div class="block"><span class="corners-top"><span></span></span> +MAIN_CONTENT; + // Link target to add a note to the current manual page, // and it's extended form with a [+] image $addnotelink = '/manual/add-note.php?sect=' . $filename . '&amp;redirect=' . $_SERVER['BASE_HREF']; $addnotesnippet = - make_link($addnotelink, make_image('notes-add.gif', 'add a note', 'middle')) . - ' <small>' . - make_link($addnotelink, 'add a note') . - '</small>'; + '<div class="add-note">' . + make_link($addnotelink, 'Add Note') . + '</div>'; echo <<<END_USERNOTE_HEADER <div id="usernotes"> - <div class="head"> - <span class="action">{$addnotesnippet}</span> - <small>User Contributed Notes</small><br /> - <strong>{$title}</strong> - </div> + {$addnotesnippet} + <h4>User Contributed Notes</h4> END_USERNOTE_HEADER; // If we have no notes, then inform the user @@ -263,17 +293,19 @@ END_USERNOTE_HEADER; // If we have notes, print them out else { - + echo '<ul id="contributed-notes">'; foreach($notes as $note) { manual_note_display( $note['xwhen'], $note['user'], $note['note'], $note['id'] ); } - echo "\n <div class=\"foot\">$addnotesnippet</div>\n"; + echo "</ul>\n"; + echo $addnotesnippet; } // End of #usernotes echo "</div>"; + echo '<span class="corners-bottom"><span></span></span></div><!--.block-->'; } // Get user notes from the appropriate text dump @@ -311,7 +343,6 @@ function manual_note_display($date, $name, $text, $id) if ($name) { $name = "\n <strong>" . htmlspecialchars($name) . "</strong><br />"; } $datestr = date("d-M-Y h:i", $date); $datestr = ($id ? "\n <a href=\"#$id\">$datestr</a>" : "\n $datestr"); - $anchor = ($id ? "<a name=\"$id\"></a>\n " : ""); $text = clean_note($text); // If the viewer is logged in, show admin options @@ -344,11 +375,16 @@ function manual_note_display($date, $name, $text, $id) echo <<<USER_NOTE_TEXT - {$anchor}<div class="note">{$admin}{$name}{$datestr} - <div class="text"> + <li id="{$id}"> + <div class="username">{$name}<a name="#{$id}">{$datestr}</a></div> + <div class="ncontent"> + <div class="note"> + <span class="corners-top"><span></span></span> {$text} + <span class="corners-bottom"><span></span></span> + </div> </div> - </div> + </li> USER_NOTE_TEXT; } diff --git a/index.php b/index.php index 3e0dafb..18f01cb 100644 --- a/index.php +++ b/index.php @@ -6,6 +6,7 @@ /* ------------------------------------------------------------------------- */ +// Modified headers {{{ // Get the modification date of this PHP file $timestamps = array(@getlastmod()); @@ -41,6 +42,7 @@ if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && else { header("Last-Modified: " . $tsstring); } +// }}} $_SERVER['BASE_PAGE'] = 'index.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; @@ -49,8 +51,13 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-confs.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc'; -// This goes to the left sidebar of the front page +// This goes to the left sidebar of the front page {{{ $SIDEBAR_DATA = ' +<div class="content"> + <div class="block"> + <span class="corners-top"><span></span></span> + <div class="info"> + <h3>What is PHP?</h3> <p> <acronym title="recursive acronym for PHP: Hypertext Preprocessor">PHP</acronym> @@ -62,10 +69,11 @@ $SIDEBAR_DATA = ' and the example archive sites and some of the other resources available in the <a href="/links.php">links section</a>. </p> -<p> - Ever wondered how popular PHP is? see the - <a href="/usage.php">Netcraft Survey</a>. -</p> +</div> +</div><!-- .block--> + + <div class="block"> + <div class="info"> <h3><a href="/thanks.php">Thanks To</a></h3> <ul class="simple"> @@ -83,27 +91,21 @@ $SIDEBAR_DATA = ' <li><a href="http://www.rackspace.com/">Rackspace</a></li> <li><a href="http://www.eukhost.com/">EUKhost</a></li> </ul> -<h3>Related sites</h3> -<ul class="simple"> - <li><a href="http://www.apache.org/">Apache</a></li> - <li><a href="http://www.mysql.com/">MySQL</a></li> - <li><a href="http://www.postgresql.org/">PostgreSQL</a></li> - <li><a href="http://www.zend.com/">Zend Technologies</a></li> -</ul> -<h3>Community</h3> -<ul class="simple"> - <li><a href="http://www.linuxfund.org/">LinuxFund.org</a></li> - <li><a href="http://www.ostg.com/">OSTG</a></li> -</ul> <h3>Syndication</h3> <p> You can grab our news as an <a href="/feed.atom">Atom feed</a>. -</p>'; +</p> + </div><!--.block--> + <span class="corners-bottom"><span></span></span> + </div> + </div> +'; +// }}} $MIRROR_IMAGE = ''; -// Try to find a sponsor image in case this is an official mirror +// Try to find a sponsor image in case this is an official mirror {{{ if (is_official_mirror()) { // Iterate through possible mirror provider logo types in priority order @@ -141,62 +143,102 @@ if (is_official_mirror()) { break; } } -} - -/* {{{ Generate latest release info */ -/* NOTE: You are editing the wrong file, you should be in include/version.inc - * For RC: See the $PHP_x_RC variable - * For STABLE: See the $PHP_x_VERSION/_DATE/_MD5 variables - */ -$PHP_5_STABLE = $PHP_4_STABLE = array(); -$PHP_5_RC = $PHP_4_RC = ""; -$rel = $rc = ""; +} // }}} +// {{{ Generate latest release info list($PHP_5_STABLE, ) = each($RELEASES[5]); -list($PHP_4_STABLE, ) = each($RELEASES[4]); - -$rel = <<< EOT - <div id="releaseBox"> - <h4>Stable Releases</h4> - <ol id="releases"> - <li class="php5"><a href="/downloads.php#v5">Current PHP 5 Stable: <span class="release">$PHP_5_STABLE</span></a></li> - <li class="php5"><a href="/downloads.php#v4">Historical PHP 4 Stable: <span class="release">$PHP_4_STABLE</span></a></li> - </ol> - </div>\n -EOT; +$PHP_5_RC = null; /* Do we have any release candidates to brag about? */ if (count($RELEASES[5])>1) { list($PHP_5_RC, ) = each($RELEASES[5]); - - if (!empty($PHP_5_RC)) { - $rc .= " <li class=\"php5\"><a href=\"http://qa.php.net/\">Current PHP 5 RC: <span class=\"release\">$PHP_5_RC</span></a></li>\n"; - } } -if (count($RELEASES[4])>1) { - list($PHP_4_RC, ) = each($RELEASES[4]); - if (!empty($PHP_4_RC)) { - $rc .= " <li class=\"php4\"><a href=\"http://qa.php.net/\">Current PHP 4 RC: <span class=\"release\">$PHP_4_RC</span></a></li>\n"; - } -} -if (!empty($rc)) { - $rel .= <<< EOT - <div id="candidateBox"> - <h4><a href="http://qa.php.net/rc.php">Release Candidates</a></h4> - <ol id="candidates"> -$rc - </ol> - </div>\n -EOT; +$release_box = <<< RELEASE_DATA + <div class="content"> + <div class="block releases"><span class="corners-top"><span></span></span> + <div class="info"> + <h3>Stable releases</h3> + <p class="first">Current PHP 5 Stable: <a href="/ChangeLog-5.php#$PHP_5_STABLE"><strong>$PHP_5_STABLE</strong></a></p> + <p class="download-button"><a href="/downloads.php#v5"><span>Download</span></a></p> + <p class="top-border">Historical PHP Stable: <a href="/downloads.php#v4"><strong>4.4.9</strong></a></p> +RELEASE_DATA; + +if ($PHP_5_RC) { + $release_box .= <<< RELEASE_DATA + <h4>Release Candidates</h4> + <p class="top-border"><a href="http://qa.php.net/">$PHP_5_RC</a></p> +RELEASE_DATA; } +$release_box .= <<< RELEASE_DATA + <p><a href="/downloads.php"><strong>Download area &raquo;</strong></a></p> + </div><!-- .info --> + </div><!--.block--> +RELEASE_DATA; /* }}} */ +// Generate the event box {{{ +$upcoming_events = <<< UPCOMING_EVENTS + <div class="block"> + <div class="info"> + <h3 class="upcoming-events">Upcoming Events</h3> + <div class="calendar"><span class="corners-top"><span></span></span> + <h4>Events Calendar</h4> + <form method="get" action="/cal.php"> + <p> + <select class="month" name="cm"> +UPCOMING_EVENTS; + +$months = array(1 => "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); +$current = date("m", $_SERVER["REQUEST_TIME"]); +foreach($months as $n => $month) { + $upcoming_events .= "<option value='$n' ". ($n == $current ? 'selected="selected"' : '') .">$month</option>\n"; +} + +$upcoming_events .= <<< UPCOMING_EVENTS + </select> + <span><input type="submit" class="button" value="View" /></span> + </p> + </form> + <span class="corners-bottom"><span></span></span></div> + <p class="add-event"><a href="/submit-event.php"><strong>Add event &raquo;</strong></a></p> + <div class="events"> + $EVENTS_DATA + </div> + </div><!-- .calendar --> + </div><!-- .info --> + </div><!-- .block --> +UPCOMING_EVENTS; +// }}} + // Prepend mirror image & latest releases to sidebar text -$RSIDEBAR_DATA = $MIRROR_IMAGE . $rel . $RSIDEBAR_DATA; +$RSIDEBAR_DATA = $MIRROR_IMAGE . $release_box . $upcoming_events; -// Write out common header +// Generate conference teaser {{{ +if (is_array($CONF_TEASER) && count($CONF_TEASER)) { + $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); + $teaser = ' <li id="news-line"><span class="corners-top"><span></span></span><ul>' . "\n"; + foreach($CONF_TEASER as $k => $a) { + if (is_array($a) && count($a)) { + $teaser .= " <li><span>" . $categories[$k] . "</span>\n"; + $teaser .= " <ul>"; + $count = 0; + $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); + foreach($a as $url => $title) { + if ($count++ >= 4) { + break; + } + $teaser .= ' <li class="first last"><a href="' . $url. '">' . $title. '</a></li>' . "\n"; + } + $teaser .= " </ul>\n </li>\n"; + } // if set + } + $teaser .= ' </ul><span class="corners-bottom"><span></span></span></li><!-- #news-line -->'."\n"; + $PRE_DATA = $teaser; +} // }}} + +// Write out common header {{{ site_header("Hypertext Preprocessor", array( 'onload' => 'boldEvents();', @@ -218,38 +260,21 @@ site_header("Hypertext Preprocessor", ), ) ); +// }}} -if (is_array($CONF_TEASER) && count($CONF_TEASER)) { - $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); - echo ' <div id="confTeaser">' . "\n"; - echo " <table>\n"; - foreach($CONF_TEASER as $k => $a) { - if (is_array($a) && count($a)) { - echo " <tr>\n <td valign='top' style='white-space: nowrap'>".$categories[$k].":</td>\n"; - echo " <td valign='top'>\n"; - echo ' <ul class="' .$k. '">' . "\n"; - $count = 0; - $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); - foreach($a as $url => $title) { - if ($count++ >= 4) { - break; - } - echo ' <li><a href="' . $url. '">' . $title. '</a></li>' . "\n"; - } - echo " </ul>\n </td>\n </tr>\n"; - } // if set - } - echo " </table>\n </div>\n\n<br />\n"; -} - - +?> + <li id="mid-column"> + <div class="content"> +<?php /* Where the h*ll did all the news go? - * See archives/2007.xml + * See ./bin/createNewsEntry */ print_news($NEWS_ENTRIES, "frontpage"); ?> + <p class="t-center"><a href="/archive/index.php"><strong>News Archive</strong></a></p> + </div> + </li><!-- #mid-column--> -<p class="center"><a href="/archive/index.php">News Archive</a></p> <?php site_footer( diff --git a/styles/base.css b/styles/base.css new file mode 100644 index 0000000..55164fb --- /dev/null +++ b/styles/base.css @@ -0,0 +1,126 @@ +/* Main styles +*******************************/ +html { + height: 100%; + margin-bottom: 1px;/* force vertical scrollbars */ +} + +body { + background: #E2E2E2; + color: #000; + font-size: 62.5%; + text-align: left; + margin: 0; + padding: 0; +} + +/* Default fonts +*******************************/ +body { font-family: Tahoma, Arial, sans-serif, serif, monospace } + +input, +select { font-family: Tahoma, Arial, Helvetica, sans-serif; } + +textarea, +pre, +tt, +kbd, +var, +code { font-family:"Courier New", Courier, monospace; } + + +/* Header elements +*******************************/ +h1, +h2, +h3, +h4, +h5, +h6 { font-weight:normal; } + +h1 { font-size: 1.7em; line-height: 2.4em; } +h2 { font-size: 1.6em; line-height: 2.2em; } +h3 { font-size: 1.4em; line-height: 2.0em; } +h4 { font-size: 1.3em; line-height: 1.8em; } +h5 { font-size: 1.2em; line-height: 1.6em; } +h6 { font-size: 1.1em; line-height: 1.2em; } + + +/* Text elements +*******************************/ +p { margin: 0 0 1em 0; text-align: left; } +p.last, +p.cite { margin-bottom:0; } +p.first { margin-top:1em; } +p.img { float: left; margin:0 1em 1em 0; padding:0; } +p.top-border { border-top: 1px dotted #000; padding-top:1em; } + +blockquote { margin: 0 0 2em 2em; border:1px dotted #666; padding:1em; } +strong { font-weight: bold; } +em { font-style: italic; } +pre { border: 1px solid #ddd; margin-bottom: 1.2em; padding:1.2em; } +small { font-size: .9em; } +code { /*style*/ } +ins { text-decoration:none; } /*remove underline from text*/ +del { text-decoration:line-through; } +sub { vertical-align:sub;font-size: .9em; } +sup { vertical-align:super;font-size: .9em; } +acronym { border-bottom:1px dotted #666; } +abbr { /*style*/ } +dfn { font-style:italic; } +bdo { /*style*/ } + +/*quotes*/ +q { font-style:italic; } +cite { font-style:italic; quotes: "\00ab" "\00bb"; } +cite:after, +q:after { content: "\00bb"; } +cite:before, +q:before { content: "\00ab"; } + +hr { + color: #fff; + background:transparent; + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 dotted; +} + +/*links*/ +a:link, +a:visited, +a:focus, +a:hover, +a:active { color: #6181B7; text-decoration: underline; cursor:pointer; } + +a:hover { } + +a:active, +a:focus { outline: 0; } /*remove border in ff*/ +/* +a:visited { color:#849BCA } +*/ + + +/* Images +*******************************/ +img { vertical-align:middle; outline:0 } + +/* Form styles +*******************************/ +input, +select, +textarea { + font-size:1.0em;/*by default font-size is bigger*/ + vertical-align:baseline; +} + +input.text, +input.file { cursor:text; } + +input.button { cursor:pointer; } + +input.radio, +input.checkbox { border: 0;padding: 0; } + diff --git a/styles/content.css b/styles/content.css new file mode 100644 index 0000000..0acdaf5 --- /dev/null +++ b/styles/content.css @@ -0,0 +1,859 @@ +/* Main styles + *******************************/ +#root { + padding-bottom:10px; + min-width: 970px; +} + + +/* Corners + *******************************/ +.corners-top, +.corners-bottom, +.corners-top span, +.corners-bottom span { + font-size: 1px; + line-height: 1px; + display: block; + height: 11px; + background-repeat: no-repeat; + background-image: none; +} + +.corners-top { + margin: 0 -11px; +} + +.corners-bottom { + margin: 0 -11px; + clear: both; +} + +/* Header + *******************************/ +#header { + background: url(../images/header-corners.jpg) repeat-x 0 -232px; + height: 116px; + clear:both; +} + +#header .side-left, +#header .side-right { + display: block; + width: 13px; + height: 116px; + background: url(../images/header-corners.jpg) no-repeat; +} + +#header .side-left { + background-position: 0 0; + float: left; +} +#header .side-right { + background-position: 100% -116px; + float: right; +} + +#header .content { + margin: 0 13px; + padding:20px 11px; +} + +#header h1 a { + background:url(../images/header-logo.jpg) left top no-repeat; + float:left; + width:434px; + height:76px; + text-indent: -9999px; +} + +/* search box */ +#search-box { + text-align:right; + margin-left:440px; + padding:26px 0; + font-size:1.1em; + color:#B5B5E9; +} + +#search-box span { + padding-left:8px; +} + +#search-box label { + padding-left:8px; +} + +#search-box input.text, +#search-box select { +} + +#search-box input.text { + width:20%; + line-height:1; + padding:0; +} + +#search-box select { + width:20%; +} + +#search-box input.button { + background:url(../images/block_sprites.gif) 0 -104px no-repeat; + width:69px; + border:0; + height:24px; + line-height:1.2; + color:#56518B; +} + + +/* Main menu & Newsline styles + *******************************/ +#main-menu, +#news-line, +#main-column .adv-block { + font-size: 1.1em; + line-height:1.2; + margin-bottom: 6px; + padding: 0 11px; + background: none left bottom repeat-x #F6F6F6; +} + +#main-menu, +#main-column .adv-block { + background-image: url(../images/menu-corners-back.gif); + clear:both; +} + +#news-line { + background-image: url(../images/news-line-back.gif); +} + +/* main corners */ +#main-menu .corners-top, +#main-menu .corners-bottom, +#main-column .adv-block .corners-top, +#main-column .adv-block .corners-bottom{ + background-image: url(../images/corners-left.gif); +} + +#main-menu .corners-top, +#main-column .adv-block .corners-top { + background-position:0 -22px; +} + +#main-menu .corners-bottom, +#main-column .adv-block .corners-bottom { + background-position:0 -33px; +} + +#main-menu .corners-top span, +#main-menu .corners-bottom span, +#main-column .adv-block .corners-top span, +#main-column .adv-block .corners-bottom span { + background-image: url(../images/corners-right.gif); +} + +#main-menu .corners-top span, +#main-column .adv-block .corners-top span { + background-position:100% -22px; +} + +#main-menu .corners-bottom span, +#main-column .adv-block .corners-bottom span { + background-position:100% -33px; +} +/* end main corners */ + +#main-menu ul { + padding:8px 0; + text-align: center; +} + +#news-line ul ul, +#main-menu ul { + margin-left: 12px; +} + +#news-line ul ul{ + display:inline; +} + +#news-line li li, +#main-menu li { + display: inline; + padding:0 1%; + border-right:1px solid #CDCDCD; +} + +#news-line li .first, +#main-menu .first { + padding-left:0; +} + +#news-line li .last, +#main-menu .last { + border:0; +} + +#news-line ul span { + float: left; + margin-left: 12px; + width: 140px; +} + +#news-line .corners-top, +#news-line .corners-bottom { + background-image: url(../images/corners-left.gif); +} + +#news-line .corners-top { + background-position:0 -44px; +} + +#news-line .corners-bottom { + background-position:0 -55px; +} + +#news-line .corners-top span, +#news-line .corners-bottom span { + background-image: url(../images/corners-right.gif); +} + +#news-line .corners-top span { + background-position:100% -44px; +} + +#news-line .corners-bottom span { + background-position:100% -55px; +} + +/* main column top and bottom blocks */ +#main-column .adv-block { + font-size:0.92em; + line-height:1.4em; +} + +#main-column .adv-block a { +} + +#main-column .adv-block .prev { + background:url(../images/block_sprites.gif) no-repeat 0 -27px; + float:left; + padding:5px 0 5px 40px; +} + +#main-column .adv-block .next { + background:url(../images/block_sprites.gif) no-repeat 100% -51px; + float:right; + padding:5px 40px 5px 0; +} + +#main-column .adv-block p { + text-align:center; + margin:0 160px; +} + +#main-column .adv-block select { + width:25%; +} + +#main-column .adv-block input { + background:url(../images/../img/block_sprites.gif) 0 -77px no-repeat; + width:57px; + height:26px; + border:0; + color:#6181B7; + text-indent: -9999px; + cursor:pointer; +} + +/* Content + *******************************/ +#content { + font-size: 1.2em; + line-height:1.4; +} + +#content-columns { + overflow: hidden; +} + +/* every left column */ +#left-column { + float: left; + overflow: hidden; + width: 22%; +} + +/* mid column on first page */ +#mid-column { + float: left; + overflow: hidden; + width: 57%; +} + +/* main column on other pages */ +#main-column { + float: left; + overflow: hidden; + width: 78%; +} + +/* simple page area */ +#page-area { + overflow: hidden; + width: 100%; +} + +/* right column on first page */ +#right-column { + float: left; + overflow: hidden; + width: 21%; +} + +#mid-column .content{ + margin: 0 6px; +} + +#main-column .content { + margin-left:6px; +} + +#content-columns .block, +#page-area .content { + background: url(../images/main-corners-back.gif) left bottom repeat-x #F0F0F0; + margin-bottom: 6px; + padding: 0 11px; +} + +#content-columns .block .corners-top, +#content-columns .block .corners-bottom, +#page-area .content .corners-top, +#page-area .content .corners-bottom { + background-image: url(../images/corners-left.gif); +} + +#content-columns .block .corners-top, +#page-area .content .corners-top { + background-position:0 0; +} + +#content-columns .block .corners-bottom, +#page-area .content .corners-bottom { + background-position:0 -11px; +} + +#content-columns .block .corners-top span, +#content-columns .block .corners-bottom span, +#page-area .content .corners-top span, +#page-area .content .corners-bottom span { + background-image: url(../images/corners-right.gif); +} + +#content-columns .block .corners-top span, +#page-area .content .corners-top span { + background-position:100% 0; +} + +#content-columns .block .corners-bottom span, +#page-area .content .corners-bottom span { + background-position:100% -11px; +} + +/* set min-height for info blocks */ +#content-columns .block .info { + min-height: 127px; + height: auto!important; + height: 127px; +} + +/* news item*/ +#content-columns .news-date { + border-bottom:1px dotted #000000; + color:#A0A0A0; + padding-bottom:1em; + margin:0 0 1em 0; + text-align:right; +} + +#content-columns .news-update { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; +} + + +/* Project specific styles + *******************************/ + +/* download-button link */ +.download-button { + overflow:hidden; + margin:0 0 2em 14%; +} + +.download-button a { + background: url(../images/download-button.gif) no-repeat 100% 0; + height: 43px; + display:block; + width:76%; + text-align:center; + padding-right: 5%; /* sliding doors padding */ + text-decoration: none; +} + +.download-button a span { + background: url(../images/download-button.gif) no-repeat bottom left!important; + display: block; + font-weight:bold; + line-height: 15px; + padding: 14px 0 14px 5%; +} + +/* styles for every info-block */ +#root .content .info { + padding:.4em 1em 1.6em 1em; + position:relative; +} + +/* set default styles for elements in info blocks */ + +.content .info ul, +.content .info ol { + margin: 0 0 1em 2em; +} + +.content .info ul { + list-style-type:square; +} + +.content .info ol { + list-style-type:decimal; +} + +.content .info ul li, +.content .info ol li { + line-height:2; +} + +.content .info .simple { + list-style:none; + list-style-image:none; + margin: 0 0 1em 1em; +} +.content .info .simple li { + line-height:1.2; +} + +.content .info .simplelist li { + line-height:1.2; +} + +.content .info h3 { + font-size:1.17em; + font-weight:bold; + line-height:1.3; +} + +.content .info h4 { + font-size:1em; + font-weight:bold; +} + +.content .info h3 a { + color:#000; +} + + +/* right column specific styles */ +.events { + border-top:1px dotted #000000; + margin: 1.6em 0 1em 0; + padding-top:1.6em; +} + +.info .events ul.simple { + margin-left:0; +} + +.info .events h3 { + margin-bottom:1em; +} + +.upcoming-events { + padding-bottom:1.4em; +} + +.calendar { + background: #DADADA; + margin-bottom: 6px; + padding: 0 11px; +} + +.calendar h4 { + line-height:1; +} + +.calendar p { + margin:1em 0 0 0; + text-align:center; +} + +.calendar .year { + width:38%; +} + +.calendar .month { + margin-right:2%; + width:58%; +} + +#right-column .calendar .corners-top, +#right-column .calendar .corners-bottom { + background-repeat:no-repeat; + background-image: url(../images/corners-left.gif); +} + +#right-column .calendar .corners-top { + background-position:0 -110px; +} + +#right-column .calendar .corners-bottom { + background-position:0 -121px; +} + +#right-column .calendar .corners-top span, +#right-column .calendar .corners-bottom span { + background-repeat:no-repeat; + background-image: url(../images/corners-right.gif); +} + +#right-column .calendar .corners-top span { + background-position:100% -110px; +} + +#right-column .calendar .corners-bottom span { + background-position:100% -121px; +} + +/* Main area + *******************************/ +#main-column .func-descr, +#main-column .func-date { + line-height:1; + margin:0; +} + +#main-column .verinfo { + margin-bottom:0; +} + +#main-column .func-date span { + color:#888; +} + +#main-column .func-descr { + font-size:1.17em; + font-style:normal; +} +#main-column .func-date { + text-align:right; +} + +#main-column h4 { + padding:1.2em 0; +} + +#main-column .info-block h4 { + padding:0 0 1em 0; +} + +#main-column .info-block, +#main-column .warning, +#main-column .notes, +#main-column dd { + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; +} + +#main-column dt { + line-height:1.6; +} + +#main-column .warning { + color:#6F0000; +} + +#main-column .notes { + color:#A2754B; +} + +/* Function list + *******************************/ +#functions-list { + margin:2em 0 0 1em; + font-weight:bold; + list-style:none; +} + +#functions-list li { + line-height:1; + padding:0 0 1em 14px; + background:url(../images/block_sprites.gif) -14px -131px no-repeat; +} + +#functions-list li li { + padding-bottom:6px; + list-style:none; + background:none; +} + +#functions-list li li a { + text-decoration:none; +} + +#functions-list ul { + margin: 1em 0 1em -14px; + font-weight:normal; + list-style:none; +} + +#functions-list li .sel { + background:url(../images/block_sprites.gif) 0 -147px no-repeat; +} + +#functions-list li .sel a { + color:#000; + font-weight:bold; +} + + +/* Contributed Notes + *******************************/ +.add-note { + float:right; + padding:12px 0; + line-height:1; + font-weight:bold; + background:url(../images/../img/block_sprites.gif) 100% 6px no-repeat; +} + +.add-note a { + padding-right:34px; + +} + +#contributed-notes { + margin:0; + list-style:none; +} + +#contributed-notes li { + padding-top:12px; +} + +#contributed-notes .username { + background:url(../images/note-username-back.jpg) bottom right no-repeat; + color:#808080; + line-height:1.2; + padding:0 60px 6px 0; + float:left; +} + +#contributed-notes .username strong { + font-size:1.08em; +} + +#contributed-notes .username a { + font-size:.83em; +} + +#contributed-notes .ncontent { + clear:left; +} + +#contributed-notes .note { + padding:0 11px; + line-height:1.2; + background:url(../images/note-corners-back.gif) 0 100% repeat-x #FFFFFF; +} + +#contributed-notes .note .corners-top, +#contributed-notes .note .corners-bottom { + background-image: url(../images/corners-left.gif); +} + +#contributed-notes .note .corners-top { + background-position:0 -66px; +} + +#contributed-notes .note .corners-bottom { + background-position:0 -77px; +} + +#contributed-notes .note .corners-top span, +#contributed-notes .note .corners-bottom span { + background-image: url(../images/corners-right.gif); +} + +#contributed-notes .note .corners-top span { + background-position:100% -66px; +} + +#contributed-notes .note .corners-bottom span { + background-position:100% -77px; +} + +/* Forms + *******************************/ +.form dt { + width:20%; + font-weight:bold; + float:left; + padding-bottom:1em; +} + +.form dd { + margin-left:20%; + padding-bottom:1em; +} + +.form .max{ + width:50%; +} + +.errors { + border:1px dotted #ff0000; + padding:1em; + list-style:inside; + margin-left:0!important; +} + + +/* Footer + *******************************/ +#footer { + font-size: 1.1em; + padding: 0 11px; + background: url(../images/footer-back.gif) left bottom repeat-x #CECECE; +} + +#footer .corners-top, +#footer .corners-bottom { + background-image: url(../images/corners-left.gif); +} + +#footer .corners-top { + background-position:0 -88px; +} + +#footer .corners-bottom { + background-position:0 -99px; +} + +#footer .corners-top span, +#footer .corners-bottom span { + background-image: url(../images/corners-right.gif); +} + +#footer .corners-top span { + background-position:100% -88px; +} + +#footer .corners-bottom span { + background-position:100% -99px; +} + +#footer .info { + line-height:1.4; + padding:18px 12px; +} + +#copyright { + float:left; +} + +#footer-menu { + text-align:right; +} + +#footer-menu ul { + display:inline; + color: #6280B2; +} + +#footer-menu ul li { + display:inline; + border-right:1px solid #6280B2; + padding: 0 1%; +} + +#footer-menu ul .last { + border:0; + padding-right:0; +} + +#footer-menu ul .first { + padding-left:0; +} + +#footer-menu small { + color:#7C7C7C; +} + +#footer-menu small a { + color:#000; +} + +/* Manual tweaks + *******************************/ +.refnamediv { + margin: 0 0 0.5em 0; + padding: 0 0 0.5em 0; + border:0; + border-bottom: 1px #000 dotted; +} + +.methodsynopsis { + padding:.4em 1em 1.6em 1em; + position:relative; + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; +} + +#main-column b.warning { + padding: 0; +} +#main-column .notes { + background: inherit; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; +} +#main-column .notes blockquote { + border: 0; + border-bottom:1px solid #D0D0D0; + padding: 1em; + background: #ffffff; +} + +#root .content .examples { + position:relative; + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; +} + +#main-column .examples h3 { + padding:0 0 1em 0; +} + + diff --git a/styles/handfield.css b/styles/handfield.css new file mode 100644 index 0000000..046c8c3 --- /dev/null +++ b/styles/handfield.css @@ -0,0 +1,9 @@ +/* Screen version +*******************************/ +@import 'reset.css'; + +@import 'base.css'; + +@import 'content.css'; + +@import 'helpers.css'; \ No newline at end of file diff --git a/styles/helpers.css b/styles/helpers.css new file mode 100644 index 0000000..9b452f4 --- /dev/null +++ b/styles/helpers.css @@ -0,0 +1,67 @@ +/* Code colors +*******************************/ +.default { color:#0000BB; } +.keyword { color:#009900; } +.string { color:#BB0000; } +.comment { color:#FF9900; } + +/* Text size +*******************************/ +.em18 { font-size: 1.8em; } +.em16 { font-size: 1.6em; } +.em12 { font-size: 1.2em; } +.em11 { font-size: 1.1em; } +.em10 { font-size: 1.0em; } +.em9 { font-size: 0.9em; } + +/* Text decorations +*******************************/ +.bold { font-weight: bold; } +.normal { font-weight: normal; } +.italic { font-style: italic } +.underline { text-decoration: underline; } + +/* Float +*******************************/ +.f-right { float: right; } +.f-left { float: left; } +.f-none { float: none; } + +/* Text align +*******************************/ +.t-right { text-align: right; } +.t-left { text-align: left; } +.t-center { text-align: center; } +.t-justify { text-align: justify; } + +/* Width +*******************************/ +.w_25 { width:2.5em; } +.w_30 { width:3em; } +.w_50 { width:5em; } +.w_70 { width:7em; } +.w_100 { width:10em; } +.w_150 { width:15em; } +.w_200 { width:20em; } +.w_250 { width:25em; } +.w_300 { width:30em; } + +/* Text transform +*******************************/ +.lower { text-transform: lowercase; } +.upper { text-transform: uppercase; } +.capitalize { text-transform: capitalize; } + +/* Other +*******************************/ +.clear:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden +} + +.zoom{ + overflow:hidden; +} \ No newline at end of file diff --git a/styles/ie.css b/styles/ie.css new file mode 100644 index 0000000..e94e1c5 --- /dev/null +++ b/styles/ie.css @@ -0,0 +1,44 @@ +/* IE Hacks +*******************************/ +html {filter: expression(document.execCommand("BackgroundImageCache", false, true));} + +* html hr {margin: 0; /* IE6 */} +*+html hr {margin: 0; /* IE7 */} + + +#root { + width: expression(document.body.clientWidth < 971 ? "970px" : document.body.clientWidth > 2509 ? "2508px" : "auto"); +} + +.zoom, +.download-button, +#content-columns, +#content-columns li { zoom:1; } + +.clear { display: inline-block } +.clear { display: block } +* html .clear{ height: 1% } + +.wordwrap { + word-wrap: break-word; +} + +#contributed-notes .ncontent { + clear:none; + width:100%; +} + +sub, +sup { + font-size:1.0em; +} + +input, +select, +textarea { + vertical-align:middle; +} + +.calendar p { + border:1px solid #DADADA; +} diff --git a/styles/mirror.css b/styles/mirror.css deleted file mode 100644 index 510e1d5..0000000 --- a/styles/mirror.css +++ /dev/null @@ -1,21 +0,0 @@ -/* TOC elements on manual pages ------------------------------------------- */ -ul.toc li { - background-image: url(/images/box-0.gif); -} -ul.toc li.up { - background-image: url(/images/caret-u.gif); -} -ul.toc li.home { - background-image: url(/images/caret-t.gif); -} -ul.toc li.active { - background-image: url(/images/box-1.gif); -} - -/* Sidebar backgrounds ---------------------------------------------------- */ -#layout_2, #layout_3 { - background-image: url(/images/leftbar.png); -} -#layout_3_helper { - background-image: url(/images/rightbar.png); -} diff --git a/styles/phpnet.css b/styles/phpnet.css deleted file mode 100644 index 54536ae..0000000 --- a/styles/phpnet.css +++ /dev/null @@ -1,21 +0,0 @@ -/* TOC elements on manual pages ------------------------------------------- */ -ul.toc li { - background-image: url(http://static.php.net/www.php.net/images/box-0.gif); -} -ul.toc li.up { - background-image: url(http://static.php.net/www.php.net/images/caret-u.gif); -} -ul.toc li.home { - background-image: url(http://static.php.net/www.php.net/images/caret-t.gif); -} -ul.toc li.active { - background-image: url(http://static.php.net/www.php.net/images/box-1.gif); -} - -/* Sidebar backgrounds ---------------------------------------------------- */ -#layout_2, #layout_3 { - background-image: url(http://static.php.net/www.php.net/images/leftbar.png); -} -#layout_3_helper { - background-image: url(http://static.php.net/www.php.net/images/rightbar.png); -} diff --git a/styles/print.css b/styles/print.css index 5ab0658..f34c463 100644 --- a/styles/print.css +++ b/styles/print.css @@ -1,22 +1,89 @@ -#headmenu, #headsearch, #leftbar, #rightbar, #footnav, #thismirror, -.manualnavbar .next, .manualnavbar .prev, .manualnavbar .langchooser, -.manualnavbar hr, .manualnavbar_bottom, #usernotes .action, #usernotes .foot { - display: none; -} - -#layout_2 #content, #layout_3 #content { - width: 100%; - margin: 0; -} +body { + margin:.2in .55in; + padding:0; + font:12pt "Times New Roman", serif; + } -#headnav, #layout_2, #layout_3, #layout_3_helper, div.manualnavbar { - background: none; +/* Hide and reset blocks + *******************************/ +#mid-column, +#main-column, +#right-column, +#header, +#content { + margin:0; + list-style:none; + } -#headnav { - float: right; +#left-column, +#footer, +.adv-block, +#main-menu, +#search-box, +#news-line, +.releases, +.calendar, +.add-event, +.add-note { + display:none; } -#usernotes .note, #usernotes { - border-top: 1px solid black; -} +/* Links decoration + *******************************/ +a { + color:black; + text-decoration:none; + } +a img { + border-width:0; + } + +/* Headings + *******************************/ +h1, h2, h3,h4 { + margin:1em 0 .5em; + font-family:Georgia,Serif; + font-weight:normal; + clear:both; + } + h1 { + margin-top:.5em; + font-size:180%; + } + h2 { + font-size:240%; + margin:.3em 0 0 0; + padding-bottom:0; + } + h3 { + font-size:150%; + margin-bottom:0; + } + + h4 { + font-size:120%; + margin-bottom:0; + } +p{ + margin:0 0 .6em 0; + } +blockquote{ + font-style:italic; + } +h3+blockquote, h2+blockquote, p+ul, h2+ul, h3+ul{ + margin-top:.2em; + } + +/* Etc + *******************************/ +.content a[href]:after, +.secondary a[href]:after, +#footer a[href]:after { + content: " (" attr(href) ") "; + font-size: 90%; + } +.content a[href^="/"]:after, +.secondary a[href^="/"]:after { + content: " (http://php.net/" attr(href) ") "; + } \ No newline at end of file diff --git a/styles/reset.css b/styles/reset.css new file mode 100644 index 0000000..952bffd --- /dev/null +++ b/styles/reset.css @@ -0,0 +1,44 @@ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { +margin: 0; +padding: 0; +border: 0; +outline: 0; +font-weight: inherit; +font-style: inherit; +font-size: 100%; +font-family: inherit; +vertical-align: baseline; +} +:focus { +outline: 0; +} +body { +line-height: 1; +color: black; +background: white; +} +ol, ul { +list-style: none; +} +table { +border-collapse: separate; +border-spacing: 0; +} +caption, th, td { +text-align: left; +font-weight: normal; +} +blockquote:before, blockquote:after, +q:before, q:after { +content: ""; +} +blockquote, q { +quotes: "" ""; +} diff --git a/styles/screen.css b/styles/screen.css new file mode 100644 index 0000000..046c8c3 --- /dev/null +++ b/styles/screen.css @@ -0,0 +1,9 @@ +/* Screen version +*******************************/ +@import 'reset.css'; + +@import 'base.css'; + +@import 'content.css'; + +@import 'helpers.css'; \ No newline at end of file diff --git a/styles/searchbar.css b/styles/searchbar.css deleted file mode 100644 index 2bbc86f..0000000 --- a/styles/searchbar.css +++ /dev/null @@ -1,47 +0,0 @@ -body { - margin: 0px; - padding: 0px; - background-color: white; - color: black; -} -select, input, body { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 80%; -} -input, select { - width: 95%; - margin: 2px; -} -p.input { - margin: 5px; -} -p.copyright { - font-size: 70%; - padding: 5px; - background-color: #cccccc; - color: inherit; - border-top: 1px solid #333366; -} -h1 { - font-size: 25px; - color: black; - background-color: #9999cc; - font-weight: bold; - padding: 5px; - margin: 0px; - border-bottom: 1px solid #333366; -} -h1 a { - font-style: italic; - text-decoration: none; - color: black; - background-color: transparent; -} -a, a:visited { - color: #000099; - background-color: transparent; -} -a:active { - color: #0000ff; - background-color: transparent; -} diff --git a/styles/site.css b/styles/site.css deleted file mode 100644 index 529c57e..0000000 --- a/styles/site.css +++ /dev/null @@ -1,972 +0,0 @@ -/* General page styles ---------------------------------------------------- */ -body, html { - margin: 0px; - padding: 0px; - color: black; - background-color: white; -} - -body, input, textarea, select, option { - font-family: verdana, arial, helvetica, sans-serif; -} -code, pre, tt { - font-family: "Courier New", Courier, monospace; -} -pre { - background-color: #ddd; -} - -#content, #headmenu, #footnav, #copyright, #thismirror, -#headsearch span, #headsearch input, #headsearch select { - font-size: 85%; -} - -a, a:visited, a:hover { - color: #000099; - background-color: transparent; -} - -a:active { - color: #0000ff; - background-color: transparent; -} - -h1, h2, h3, h4 { - font-weight: bold; - color: #000066; - background-color: transparent; -} -h1 { font-size: 130%; } -h2 { font-size: 125%; } -h3 { font-size: 110%; } -h4 { font-size: 100%; } - -/* browsers handle this differently -input.max, textarea.max, select.max { - width: 100%; -} -*/ - -img { - border: 0px; -} - -/* {{{ The "latest releases" box on the top right */ -#releaseBox, #candidateBox { - border : 1px dotted #999; - margin : 0 0 5px 0; - padding: 2px; -} -#releaseBox h4, #candidateBox h4 { - border: 1px solid #000; - border-width: 0px 1px 1px 0px; - background-color: #d3d3d3; - margin : 0; - padding: 2px; -} -#releaseBox h4 { -/* color: #080; */ -} -#candidateBox h4 { -/* color: #C70; */ -} -ol#releases, ol#candidates { - margin : 0; - padding: 0 1px 0 2px; - background-color: white; - border-bottom: 1px solid white; -} -ol#releases li, ol#candidates li{ - list-style-type: none; - font-size: .9em; -} -ol#releases li span.release { - font-weight: bold; -} -/* }}} */ - -/* {{{ Errors, warning, tips classes */ -p.formerror, p.warn { - border: 1px solid #666600; - color: #660000; - background-color: #ffeeee; - margin: 4px; - padding: 6px; -} - -/* Manual warnings/cautions/tips */ -div.warning , div.caution, div.tip { - margin: 20px; - padding: 20px 30px; - text-align: center; -} -div.warning p, div.caution p, div.tip p { - text-align: justify; -} -div.tip { - border: 1px solid #00c; - color: #006; - background-color: #eef; -} -div.warning { - border: 1px solid #660; - color: #600; - background-color: #fee; -} -div.caution { - border: 1px solid #333; - color: #333; - background-color: #ffc; -} -#leftbar div.tip { - margin: 0; - padding: 5px; - text-align: left; -} -#leftbar div.tip p { - text-align: left; -} - -/* FIXME: Remove when the new XSL build has finished */ -div.warning table, div.warning table tr, div.warning table td, -div.caution table, div.caution table tr, div.caution table td { - border: 0; -} -/* }}} */ - -hr { - border: 0px; - color: black; - background-color: black; - height: 1px; - /* clear: both; has problems in IE and Opera */ -} - -.center { - text-align: center; -} -.center table { - margin-left: auto; - margin-right: auto; - text-align: left; -} -.center th { - text-align: center; -} - -.newsdate { - font-size: smaller; - font-style: italic; - color: #6666cc; - background-color: transparent; -} -div.newsItem .newsdate { - float:left; - margin-right: 10px; -} - -div.indent { - margin-left: 50px; -} - -li { - padding-top: 3px; - padding-bottom: 3px; - list-style-type: square; -} - -em { - font-weight: bold; - font-style: italic; -} - -ul.simple { - padding-left: 8px; - margin: 0 0 1em 0; -} -ul.simple li { - padding: 0px; - list-style-type: none; -} - -.md5sum { - color: #6666cc; - background-color: transparent; -} - -/* Used for manual page toc wrapping */ -.w { - font-size: 0; -} - -/* Content are styles ----------------------------------------------------- */ -#content { - padding: 10px; -} -#content h1 { - margin-top: 0px; -} - -/* 3px IE bug hack hidden from IE5-mac \*/ -* html #content { height: 1%; } -/* End hide from IE5-mac */ - -/* Layout styling and helpers --------------------------------------------- */ -#layout_2, #layout_3 { - /* Background image will be set in a mirror specific CSS rule */ - background-position: top left; - background-repeat: repeat-y; -} -#layout_3_helper { - /* Background image will be set in a mirror specific CSS rule */ - background-position: top right; - background-repeat: repeat-y; -} - -.cleaner { - clear: both; - height: 1px; - font-size: 1px; -} - -#leftbar { - float: left; - width: 186px; - padding: 5px; - font-size: smaller; -} -#conferencesSidebar { - float: left; - width: 300px; - border-right: 1px dotted #000; - padding: 0 0 0 5px; - background-color: #efefef; - font-size: smaller; -} - -/* {{{ Latest conference announcements on the frontpage */ -#confTeaser { - border: 1px dotted #999; - padding: 10px 0; - margin: 0; - background-color: #eee; - font-size: small; -} - -#confTeaser p { - display: inline; -} - -#confTeaser ul { - margin: 0; - padding: 0; - display: inline; -} - -#confTeaser ul li { - background-color: #eee; - padding: 0 2px; - margin: 0; - display: inline; -} -/* }}} */ - -#leftbar p, #leftbar h3, #rightbar p, #rightbar h3 { - margin-top: 0; - margin-bottom: 1em; -} -#rightbar { - float: right; - width: 186px; - padding: 5px; - font-size: smaller; -} - -#rightbar h3 { - font-size: small; -} - -#layout_1 #content.conferences { - margin-left: 310px; -} -#layout_2 #content, #layout_3 #content { - margin-left: 196px; -} -#layout_3 #content { - margin-right: 196px; -} - -/* Header navigation area ------------------------------------------------- */ -#headnav { - color: inherit; - background-color: #9999cc; - height: 67px; - position: relative; -} -#headnav img { - border: 0px; - margin: 0px 3px; -} -#headmenu { - position: absolute; - bottom: 0px; - right: 5px; - text-align: right; - padding-left: 126px; -} -#headsearch { - background-color: #666699; - border-width: 1px 0px; - border-color: #333366; - border-style: solid; - text-align: right; - padding-right: 6px; - font-size: 75%; - color: white; -} -#headsearch input.submit { - vertical-align: baseline; -} -#headsearch form, #headsearch p { - margin: 0px; -} -#headsearch span.shortkey { - text-decoration: underline; - font-size: 100%; -} - -/* Footer navigation area ------------------------------------------------- */ -#footnav { - color: inherit; - background-color: #9999cc; - border-width: 1px 0px; - border-color: #333366; - border-style: solid; - text-align: right; - padding-right: 6px; -} -#pagefooter { - position: relative; - font-size: 75%; - color: inherit; - background-color: #cccccc; - width: 100%; -} -#thismirror { - text-align: right; - margin-left: 50%; - padding: 6px; -} -#copyright { - position: absolute; - top: 0px; - left: 0px; - padding: 6px; - margin-right: 30%; -} -#footnav a, #headmenu a { - font-size: 75%; - text-decoration: none; -} - -/* Credits page styles ---------------------------------------------------- */ -.e { - background-color: #ccccff; - color: inherit; - font-weight: bold; -} -.h { - background-color: #9999cc; - color: inherit; - font-weight: bold; -} -.v, .vr { - background-color: #cccccc; - color: inherit; -} -.vr { - text-align: right; -} - -/* PHP source code highlighting ------------------------------------------- */ -.phpcode, div.classsynopsis { - padding: 0.5em; - text-align: left; -} -div.phpcode span.html { - color: black; - background-color: transparent; -} -div.phpcode span.comment, div.classsynopsisinfo_comment { - color: #FF8000; - background-color: transparent; -} -div.classsynopsisinfo_comment { - font-weight: bold; -} -div.phpcode span.default { - color: #0000BB; - background-color: transparent; -} -div.phpcode span.keyword { - color: #007700; - background-color: transparent; -} -div.phpcode span.string { - color: #DD0000; - background-color: transparent; -} - -/* XML source code highlighting ------------------------------------------- */ -div.xmlcode span.attributes { - color: #333366; - background-color: transparent; -} -div.xmlcode span.cdata { - color: #990000; - background-color: transparent; -} -div.xmlcode span.comment { - color: #666666; - background-color: transparent; -} -div.xmlcode span.tags { - color: #000066; - background-color: transparent; -} -div.xmlcode span.keyword { - color: #cc6600; - background-color: transparent; -} -div.xmlcode span.string { - color: #006600; - background-color: transparent; -} - -.refentry table td { - text-indent: 5px; -} - -/* Standard tables -------------------------------------------------------- */ -table.standard td { - background-color: #eeeeee; - color: inherit; -} -table.standard th { - background-color: #cccccc; - color: inherit; -} -table.standard td.highlight { - background-color: #ffffcc; - color: inherit; -} -table.standard td.sub, table.standard th.sub, -table.standard th.subr, table.standard th.subl { - background-color: #dddddd; - color: inherit; -} -table.standard th.subr { - text-align: right; - vertical-align: top; -} -table.standard th.subl { - text-align: left; - vertical-align: top; -} - -/* Mirror listing tables -------------------------------------------------- */ -table.mirrors td { - background-color: #eeeeee; - color: inherit; - font-size: smaller; -} -table.mirrors th { - background-color: #cccccc; - color: inherit; -} -table.mirrors th.ch { - text-align: left; -} -table.mirrors th img { - border: 1px solid #000000; -} -table.mirrors th.flag { - width: 45px; -} -table.mirrors tr.this td { - background-color: #ffffcc; - color: inherit; -} -table.mirrors td.caret { - text-align: right; - background-color: white !important; - color: inherit; -} - -/* Calendar table --------------------------------------------------------- */ -table#cal { - font-size: smaller; - background-color: #a0a0a0; - color: inherit; -} -table#cal td { - background-color: #f0f0f0; - color: inherit; - vertical-align: top; -} -table#cal a { - text-decoration: none; -} -table#cal a:hover { - text-decoration: underline; -} -table#cal a.day { - float: right; - font-weight: bold; - color: #666666; - background-color: transparent; -} -table#cal div.event { - margin-bottom: 2px; - padding-bottom: 2px; - border-bottom: 1px dashed #000000; -} -table#calnav td, table#cal td.notaday { - background-color: #d0d0d0; - color: inherit; -} -table#cal a.cat1 { - color: green; - background-color: transparent; -} -table#cal a.cat3 { - color: black; - background-color: transparent; -} - -/* Logos table ------------------------------------------------------------ */ -table#logos { - background-color: #f0f0f0; - color: inherit; -} -table#logos td { - vertical-align: middle; -} -table#logos td.logo, table#logos td.logob { - text-align: center; - width: 33%; - background-color: #ffffff; - color: inherit; -} -table#logos td.logob { - background-color: #000000; - color: inherit; -} -table#logos td.star { - width: 20px; -} -span.star { - font-size: 1.5em; - font-weight: bold; - color: #6868cd; -} -table#logos td ul { - padding-left: 15px; - list-style-type: square; -} - -/* User notes on manual pages --------------------------------------------- */ -div#usernotes { - background-color: #e0e0e0; - color: inherit; -} -div#usernotes div.head, div#usernotes div.foot { - background-color: #d0d0d0; - color: inherit; - padding: 4px; -} -div#usernotes div.foot { - text-align: right; -} -div#usernotes div.foot a, div#usernotes div.head a { - color: black; - background-color: transparent; -} -div#usernotes span.action { - float: right; -} -div#usernotes div.note { - padding: 4px; -} -div#usernotes div.text { - background-color: #f0f0f0; - color: inherit; - padding: 2px; - margin-top: 4px; -} - -/* Left sidebar TOC on manual pages --------------------------------------- */ -ul.toc { - margin: 0px 5px 5px 5px; - padding: 0px; -} -ul.toc li { - font-size: 85%; - margin: 1px 0 1px 1px; - padding: 1px 0 1px 11px; - list-style-type: none; - background-repeat: no-repeat; - background-position: center left; -} -ul.toc li.header { - font-size: 115%; - padding: 5px 0px 5px 11px; - border-bottom: 1px solid #cccccc; - margin-bottom: 5px; -} -ul.toc li.active { - font-weight: bold; -} -ul.toc li a { - text-decoration: none; -} -ul.toc li a:hover { - text-decoration: underline; -} - -/* Top and bottom navigation controls on manual pages --------------------- */ -div.manualnavbar { - background-color: #e0e0e0; - color: inherit; - padding: 4px; - margin-bottom: 10px; -} -div.manualnavbar a { - text-decoration: none; -} -div.manualnavbar a:hover { - text-decoration: underline; -} -div.manualnavbar .prev, div.manualnavbar .langchooser { - padding-right: 4px; -} -div.manualnavbar .next, div.manualnavbar .lastupdated { - float: right; - padding-left: 4px; -} -div.manualnavbar hr { - color: #cccccc; - background-color: #cccccc; -} -div.manualnavbar form { - margin: 0px; - font-size: 75%; -} -div.manualnavbar .lastupdated { - font-size: 75%; -} -div.manualnavbar div.langchooser #changeLangImage { - border: 0px solid #000; - width: 11px; - height: 11px; -} -div.manualnavbar fieldset { - margin: 0px; - padding: 0px; - border: 0px solid #000; -} -div.manualnavbar div.langchooser p { - margin: 0px 10px 0 5px; - padding: 0px; - float: left; -} - -/* for searching system... */ -ul#search-results { - list-style-type: none; -} -ul#search-results li { - margin-top: 0.5em; - list-style-type: none; -} -ul#search-results p { - margin: 0; -} -ul#search-results p.result { - font-weight: 700; -} -ul#search-results p.summary, -ul#search-results p.meta { - font-size: 0.8em; - margin-left: 1em; -} -ul#search-results p.meta { - color: #008000; -} -ul#search-results p.meta a { - color: #8284cc; -} -div#results_nav { - margin: auto; - width: 200px; - text-align: center; -} - -ul#results_nav_list { - margin-top: -1em; - text-align: center; - padding: 0px; -} -ul#results_nav_list li { - display: inline; - margin-right: 0.4em; - list-style-type: none; -} - -/* Definition lists used on eg. the unsub page */ -dl dd { - margin: 0.5em 0 0.5em 2em; - padding: 0.5em; -} - -/* Event month header on homepage */ -h4.eventmonth { - border-style: solid; - border-color: black; - border-width: 0px 1px 1px 0px; - background-color: #d3d3d3; - padding: 2px; -} -#conferencesSidebar h4.eventmonth { - border-width: 0px 0px 1px 0px; -} - - -/* {{{ Security Respons section */ -#content.security { - width: 610px; -} -#content.security .record { - width: 550px; - border-style: solid; - border-color: black; - border-width: 1px 0px; - padding: 5px; -} -#content.security .record .id, -#content.security .record .date, -#content.security .record .range { - float: left; -} -#content.security .record .date { - text-indent: 5px; - width: 105px; -} -#content.security .record .id { - width: 90px; -} -#content.security .record .range { - width: 55px; -} -#content.security .record .affects { - font-weight: bold; -} -#content.security .record .summary { - text-indent: 10px; - padding: 3px 0px; -} -#content.security .low { - background-color: yellow; -} -#content.security .medium { - background-color: #f90; -} -#content.security .critical { - background-color: #FF0000; -} -#content ul.colors { - width: 150px; -} -#content ul.colors li { - text-indent: 10px; -} - -/* Single records */ -#content.security .singlerecord { - text-align: left; - font-size: 1.1em; - width: 650px; -} -#content.security .singlerecord .title { - float: left; - font-weight: bold; - width: 150px; - text-indent: 10px; -} -#content.security .singlerecord .reporter, -#content.security .singlerecord .references { - margin: 0 0 10px 0; -} -#content.security .description .title { - border-style: solid; - border-color: black; - border-width: 0px 0px 0px 0px; -} -#content.security .description .data { - float: left; - text-indent: 20px; - padding: 5px; - width: 650px; -} -/* }}} */ - -/* {{{ phpdoc examples */ -div.example, div.informalexample, div.classsynopsis div.ooclass { - background-color: #fff; - border: 1px solid #000; - text-align: left; - color: #000; -} - -div.classsynopsis div.ooclass, -div.example p { - margin: 0px; - padding: 0.2em; - text-indent: 1em; - border-bottom: 1px dotted #000; -} -div.classsynopsis div.ooclass { - border: 1px solid #000; - padding: 10px; - margin: 0 0 10px 0; -} - -div.example div.example-contents, -table .phpcode, -div.mediaobject, -div.classsynopsis, -div.informalexample pre, -div.informalexample .phpcode { - background-color: #e1e1e1; - margin: 10px; - border: 1px outset #000; -} - -/* Konq & Fx, for what ever reason, dislike br:before so this doesn't work at the moment... - * This should however add line-number to examples - which will _not_ be copied to clipboard - * when the code is copy/pasted -div.example div.example-contents:after { - counter-reset: phpexample; -} - -div.example-contents br:before { - content: counter(phpexample); - counter-increment: phpexample; -} -*/ - -div.example div.example-contents p, div.informalexample p { - background-color: #ccc; - text-indent: 0; - border-bottom: 1px outset #000; -} - -div.example div.screenshot img { - padding: 20px; - border: 1px dotted #000; - background-color: #E0E0E0; -} -/* }}} */ - -/* Make sure the underscore in many function names are visible */ -div.refentry a, div.reference a, div.section a { - text-decoration: none; - border-bottom: 1px solid #009; -} - -div.refsect1 { - border: solid 2px #cccccc; - border-collapse: collapse; - margin: 1em; - padding: 1em; - background-color: #eeeeff; -} -div.refsect1 h3 { - margin-top: 0; - padding-top: 0; - border-bottom: dashed 1px #ffffff; -} -div.refsect1 dl { - padding: 15px; - border: 1px solid #ddd; -} -div.refsect1 dd { - border: groove 2px #ffffff; - background-color: #f5f5ff; -} -div.refsect1 span.term { - font-size: 1.2em; - border-bottom: groove 1px #dddddd; -} -div.section dt { - background: #FAFAFA; - border-bottom: 1px solid #CCC; -} - -div.refsect1 span.term b tt { - font-size: 0.9em; -} - -div.classsynopsisinfo_comment { - text-indent: 30px; - padding-top: 2em; -} -div.classsynopsis div.methodsynopsis, -div.classsynopsis div.constructorsynopsis, -div.classsynopsis div.destructorsynopsis, -div.classsynopsis div.fieldsynopsis { - text-indent: 30px; - padding: 3px; -} -div.refsect1 div.methodsynopsis, -div.refsect1 div.constructorsynopsis, -div.refsect1 div.destructorsynopsis { - background-color: #fff; - padding: 0.5em; - border: 1px solid black; -} -div.classsynopsis { - color: rgb(0, 119, 0); -} -div.classsynopsis b.classname, -div.classsynopsis span.interfacename, -div.classsynopsis div.fieldsynopsis var, -div.classsynopsis div.classsynopsisinfo var, -div.classsynopsis span.methodname, -div.classsynopsis tt.parameter, -div.classsynopsis span.modifier_role { - color: rgb(0, 0, 187); -} -span.replaceable, span.initializer { - font-style: italic; -} -div.authorgroup { - padding: 10px; -} -blockquote { - border: 1px solid #000; - background-color: #FFF; - margin: 0.5em 0; - padding: 0.5em 1em; -} - -div.footnote sup { - float: left; -} -div.footnote p { - text-indent: 10px; -} -/* - * vim: noet - */ - commit 719bdc46b02f609d4b8c41a828ab7f4efd51784a Author: SVN Migration <svn@php.net> Date: Fri Aug 8 08:56:50 2008 +0000 This commit was manufactured by cvs2svn to create branch 'NEW_LOOK_2008'. Thank you for your contribution.

« previous php.webmaster (#12863) next »