diff --git a/bin/createNewsEntry b/bin/createNewsEntry index ab00e0013d..ba0af65ed5 100755 --- a/bin/createNewsEntry +++ b/bin/createNewsEntry @@ -1,4 +1,4 @@ -#!/usr/local/bin/php +#!/usr/share/php createElement($name); } - foreach($attrs as $k => $v) { + foreach((array)$attrs as $k => $v) { $n->setAttribute($k, $v); } if ($to) { diff --git a/conferences/index.php b/conferences/index.php index 848f718066..84c55f1001 100644 --- a/conferences/index.php +++ b/conferences/index.php @@ -1,29 +1,34 @@ '', +)); -$layout_workaround = <<< EOT -
-
-

- Are you planning a PHP related conference and want it listed here? - Let us know. -

-
- $RSIDEBAR_DATA -
-EOT; -unset($RSIDEBAR_DATA); +column_box(COLUMN_LEFT); +?> +
+

+ Are you planning a PHP related conference and want it listed here? + Let us know. +

+
+ $layout_workaround, 'headtags' => '')); +column_box(); +column(COLUMN_MAIN); print_news($NEWS_ENTRIES, array("conferences", "cfp"), 10); - +?> +

News Archive

+ "/feed.atom") // Add a link to the feed ); diff --git a/design/css/ie.css b/design/css/ie.css new file mode 100644 index 0000000000..e94e1c5205 --- /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/style.css b/design/css/style.css new file mode 100644 index 0000000000..e6816e9fc5 --- /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 0000000000..5e0a8eb0fe --- /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 new file mode 100644 index 0000000000..94f1ae3a7d --- /dev/null +++ b/design/events.html @@ -0,0 +1,185 @@ + + + +strpos - PHP: Hypertext Preprocessor + + + + + + + + + \ No newline at end of file diff --git a/design/homepage.html b/design/homepage.html new file mode 100644 index 0000000000..daa0b24150 --- /dev/null +++ b/design/homepage.html @@ -0,0 +1,593 @@ + + + +strpos - PHP: Hypertext Preprocessor + + + + + + + + + \ No newline at end of file diff --git a/design/img/back.gif b/design/img/back.gif new file mode 100644 index 0000000000..3ce7e294f3 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 new file mode 100644 index 0000000000..728edd0868 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 0000000000..85f315744b 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 0000000000..d2e5cbc55f 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 0000000000..4ef0c392d1 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 0000000000..e625b61883 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 0000000000..245f37b536 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 0000000000..6e724bf261 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 0000000000..40b0db7c4e 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 0000000000..a9554da8a6 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 0000000000..28cb97aa09 Binary files /dev/null and b/design/img/news-line-back.gif differ diff --git a/design/img/note-corners-back.gif b/design/img/note-corners-back.gif new file mode 100644 index 0000000000..7fbec27e39 Binary files /dev/null and b/design/img/note-corners-back.gif differ diff --git a/design/img/note-username-back.gif b/design/img/note-username-back.gif new file mode 100644 index 0000000000..4df9839c41 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 0000000000..4d75330bba Binary files /dev/null and b/design/img/note-username-back.jpg differ diff --git a/design/img/usernote.gif b/design/img/usernote.gif new file mode 100644 index 0000000000..8a36b9a374 Binary files /dev/null and b/design/img/usernote.gif differ diff --git a/design/index.html b/design/index.html new file mode 100644 index 0000000000..5a1ac74405 --- /dev/null +++ b/design/index.html @@ -0,0 +1,42 @@ + + + +strpos - PHP: Hypertext Preprocessor + + + + + + + + + \ No newline at end of file diff --git a/design/strpos.html b/design/strpos.html new file mode 100644 index 0000000000..80a82f4876 --- /dev/null +++ b/design/strpos.html @@ -0,0 +1,266 @@ + + + +strpos - PHP: Hypertext Preprocessor + + + + + + + + + \ No newline at end of file diff --git a/design/styles.html b/design/styles.html new file mode 100644 index 0000000000..b8e80950b1 --- /dev/null +++ b/design/styles.html @@ -0,0 +1,144 @@ + + + +strpos - PHP: Hypertext Preprocessor + + + + + + + + + \ No newline at end of file diff --git a/design/support.html b/design/support.html new file mode 100644 index 0000000000..51a219b689 --- /dev/null +++ b/design/support.html @@ -0,0 +1,159 @@ + + + +strpos - PHP: Hypertext Preprocessor + + + + + + + + \ No newline at end of file diff --git a/docs-echm.php b/docs-echm.php index ffaa0a37c1..b9abb651a7 100644 --- a/docs-echm.php +++ b/docs-echm.php @@ -276,6 +276,25 @@ to display the quick help.

+ +
  • +

    + Notepad++: + 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): +

    +
    +   <Command name="PHP Manual" Ctrl="yes" Alt="yes" Shift="no" Key="116">
    +   hh.exe "ms-its:c:/Program Files/Phpmanual/php_manual_en.chm::/function.$(CURRENT_WORD).html"
    +   </Command>
    +  
    +

    + 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. +

    +
  • diff --git a/docs.php b/docs.php index 76fade7e64..5628715e9b 100644 --- a/docs.php +++ b/docs.php @@ -1,13 +1,17 @@

    FAQ

    The PHP FAQ 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 License FAQ.

    @@ -37,10 +41,11 @@ great places to find many example scripts and useful functions, organized for your searching pleasure!

    -'; -site_header("Documentation"); +

    Documentation

    @@ -122,4 +127,8 @@ -"; } - // Define layout helper in case we need it - if ($PAGE_COLUMNS > 2) { - $layout_helper = "
    "; - } - // Choose name of mirror site specific CSS file $mirror_specific_style = ($_SERVER['STATIC_ROOT'] ? 'phpnet' : 'mirror'); @@ -166,93 +154,78 @@ function site_header($title = '', $config = array()) print << + - PHP{$title} - - - - - - {$link} - {$base}{$meta}{$moreheadtags} + PHP{$title} + + + + {$link} + + {$base}{$meta}{$moreheadtags} - - - - -
    -
    -

    - - search for - - - in the - - {$lang_input} -

    -
    -
    - -
    {$layout_helper} -END_HEADER; - // Print out left column - if ($PAGE_COLUMNS > 1) { - echo "\n
    \n$SIDEBAR_DATA\n
    "; - } - - // Print out right column - if ($PAGE_COLUMNS > 2) { - echo "\n
    \n$RSIDEBAR_DATA\n
    "; - } - - // Any layout workarounds? - if (!empty($config["layout_workaround"])) { - echo $config["layout_workaround"]; - } + +
      + + + +
    • +
      + WARNING: You are browsing a developmental server. +
      +
    • + + $PRE_DATA +
    • +
        - // Start main page content - echo "\n
        \n"; +END_HEADER; } // Stats pages still need this @@ -260,17 +233,17 @@ function commonFooter() { site_footer(); } function site_footer($config = array()) { - global $LAST_UPDATED, $PAGE_COLUMNS; + global $LAST_UPDATED; - $stats = (have_stats() ? "\n stats |" : ""); + $stats = (have_stats() ? "\n
      • stats
      • " : ""); $rsslink = (isset($config["rss"]) ? - "RSS |" : + "
      • RSS
      • " : ""); $atomlink = (isset($config["atom"]) ? - "Atom |" : + "
      • Atom
      • " : ""); $viewsource = (isset($_SERVER['BASE_PAGE']) ? - "show source |" : + "
      • show source
      • " : ""); $provider_url = mirror_provider_url(); $provider_name = mirror_provider(); @@ -278,36 +251,32 @@ function site_footer($config = array()) "This mirror generously provided by:" : "This unofficial mirror is operated at:"); $last_updated = strftime("%c %Z", $LAST_UPDATED); - $layout_helper = ($PAGE_COLUMNS > 2 ? "
        " : ""); //$functionsjs = (in_array("functionsjs", $config) ? "\n' : ''); print << -
         
        -{$layout_helper}
    - -
    - $rsslink $atomlink $viewsource - credits |$stats - sitemap | - contact | - advertising | - mirror sites -
    - - + + + + @@ -384,24 +353,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 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 ' $max) { @@ -698,20 +634,169 @@ function print_news($news, $dog, $max = 5) { $published = substr($item["published"], 0, 10); $newsdate = date("d-M-Y", strtotime($published)); - echo <<< EOT -
    -
    {$image}
    -

    {$item["title"]}

    -
    - [{$newsdate}] - {$item["content"]} -
    -
    - -
    + echo block_info_start(CORNERS_TOP, array("info" => $extra)); + echo <<< EOT +

    {$item["title"]}

    +

    $newsdate

    +
    {$image}
    + {$item["content"]} 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 +
  • +
    + +OPEN; + return true; + } + if($id === "") { + echo <<< CLOSE +
    +
  • + +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 = '
    '; + $info = '
    '; + $top = ' '; + + $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 = '
    '; + $bottom = ' '; + $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 = '
    '; + $info = '
    '; + $top = ' '; + + 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 = '
    '; + $bottom = ' '; + $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 29ca461a81..1d0da980d6 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -15,10 +15,10 @@ */ // 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 = ''; +$PGI = array(); // Set up variables important for this page // including HTTP header information @@ -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,38 +41,43 @@ 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( - "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", - )); + "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 '

    Last updated: ' .$PGI['lastmod']. '

    '; + } // Print out manual page footer @@ -83,10 +88,13 @@ function manual_footer() // Get vars for easy handling list($filename, $title) = $PGI['this']; - echo "

    "; + box(); + manual_notes(); - echo "
    "; + manual_navbar("bottom"); + column(); + site_footer(); } @@ -94,31 +102,34 @@ function manual_footer() // Manual page navigation parts // ============================================================================= -// Append all the table of contents data to $SIDEBAR_DATA +// Print the TOC function manual_sidebar() { - global $PGI, $SIDEBAR_DATA; + global $PGI; + column_box(COLUMN_LEFT); - // Start sidebar with its
    - $BAR = "\n
      \n"; + echo <<< SIDEBAR +

      PHP Manual

      +
        +SIDEBAR; // Link to manual home - $BAR .= '
      • ' . + echo '
      • ' . $PGI['home'][1] . "
      • \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 .= '
      • ' . + echo '
      • ' . $PGI['parents'][$i][1] . "
      • \n"; } } // Link to one page up if titles does not match if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { - $BAR .= '
      • ' . - $PGI['up'][1] . "
      • \n"; + echo '
      • ' . + $PGI['up'][1] . "
          \n"; } // Print out one link for all siblings of this page @@ -128,24 +139,19 @@ function manual_sidebar() list($url, $title) = $tocitem; // Get the proper classname to use for this
          - $liclass = ($url == $PGI['this'][0]) ? ' class="active"' : ""; - - // 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 = ' '; - $title = str_replace(array('_', '->', '::'), array("_$wrap", "->$wrap", "::$wrap"), $title); - } - + $liclass = ($url == $PGI['this'][0]) ? ' class="sel"' : ""; + // Print out the TOC item using a
          - $BAR .= " " . + echo " " . make_link($url, $title) . "\n"; } - // Put navigation content into sidebar, end
          - $SIDEBAR_DATA = "$BAR
        \n"; + if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1]) { + echo "
      "; + } + echo "
    \n"; + column_box(); + } function manual_navbar($location = "top") @@ -153,36 +159,27 @@ function manual_navbar($location = "top") global $PGI, $LANG, $LANGUAGES, $INACTIVE_ONLINE_LANGUAGES, $ACTIVE_ONLINE_LANGUAGES; // Start navbar with - echo "\n
    \n \n"; + echo <<< NAVBAR +
    +NAVBAR; + if (isset($PGI['next']) && isset($PGI['next'][1])) { - echo " " . - $PGI['next'][1] . - make_image('caret-r.gif', '>') . - "\n"; + echo " " . $PGI['next'][1] . "\n"; } - echo " \n \n"; if (isset($PGI['prev']) && isset($PGI['prev'][1])) { - echo " " . - make_image('caret-l.gif', '<') . - $PGI['prev'][1] . "\n"; + echo " " . $PGI['prev'][1] . "\n"; } else { echo "  \n"; } - echo " \n
    \n"; - - // Provide last updated information on this page - echo " Last updated: {$PGI['lastmod']}\n"; // Print out language switch on top of manual pages - echo "
    \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 +191,22 @@ function manual_navbar($location = "top") $links[] = array('help-translate.php', 'Other'); // Print out the form with all the options - echo '
    ' . "\n" . - '

    view this page in

    '; + foreach ($links as $link) { echo ' \n"; } - echo " \n" . - ' ' . "\n
    \n"; - + echo '

    '; + } else { echo "  \n"; } - echo "
    \n"; - - echo "
    \n\n\n"; + echo <<< NAVBAR + +
    +NAVBAR; } // ============================================================================= @@ -235,25 +232,22 @@ function manual_notes() if(count($notes) > 2) { manual_navbar("bottom"); } + box(CORNERS_TOP); // 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 . '&redirect=' . $_SERVER['BASE_HREF']; $addnotesnippet = - make_link($addnotelink, make_image('notes-add.gif', 'add a note', 'middle')) . - ' ' . - make_link($addnotelink, 'add a note') . - ''; + '
    ' . + make_link($addnotelink, 'Add Note') . + '
    '; echo << -
    - {$addnotesnippet} - User Contributed Notes
    - {$title} -
    + {$addnotesnippet} +

    User Contributed Notes

    END_USERNOTE_HEADER; // If we have no notes, then inform the user @@ -263,17 +257,18 @@ END_USERNOTE_HEADER; // If we have notes, print them out else { - + echo '
      '; foreach($notes as $note) { manual_note_display( $note['xwhen'], $note['user'], $note['note'], $note['id'] ); } - echo "\n
      $addnotesnippet
      \n"; + echo "
    \n"; + echo $addnotesnippet; } - // End of #usernotes - echo "
    "; + echo "
    \n"; + box(); } // Get user notes from the appropriate text dump @@ -311,7 +306,6 @@ function manual_note_display($date, $name, $text, $id) if ($name) { $name = "\n " . htmlspecialchars($name) . "
    "; } $datestr = date("d-M-Y h:i", $date); $datestr = ($id ? "\n $datestr" : "\n $datestr"); - $anchor = ($id ? "\n " : ""); $text = clean_note($text); // If the viewer is logged in, show admin options @@ -344,11 +338,17 @@ function manual_note_display($date, $name, $text, $id) echo <<{$admin}{$name}{$datestr} -
    +
  • +
    {$name}{$datestr}
    +
    +
    + {$text} + +
    -
  • + USER_NOTE_TEXT; } + diff --git a/index.php b/index.php index 3e0dafba14..4965cc3bc1 100644 --- a/index.php +++ b/index.php @@ -1,11 +1,10 @@ - "Upcoming conferences", "cfp" => "Calling for papers"); + $teaser = '
  • '."\n"; + $PRE_DATA = $teaser; +} // }}} + +// Write out common header {{{ +site_header("Hypertext Preprocessor", + array( + 'onload' => 'boldEvents();', + 'headtags' => '', + '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); +?> +

    What is PHP?

    PHP @@ -62,10 +112,7 @@ and the example archive sites and some of the other resources available in the links section.

    -

    - Ever wondered how popular PHP is? see the - Netcraft Survey. -

    +

    Thanks To

    -

    Related sites

    - -

    Community

    -

    Syndication

    You can grab our news as an Atom feed. -

    '; +

    + +News Archive

    '; + +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 +// 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,117 +194,70 @@ 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 -
    -

    Stable Releases

    -
      -
    1. Current PHP 5 Stable: $PHP_5_STABLE
    2. -
    3. Historical PHP 4 Stable: $PHP_4_STABLE
    4. -
    -
    \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 .= "
  • Current PHP 5 RC: $PHP_5_RC
  • \n"; - } } -if (count($RELEASES[4])>1) { - list($PHP_4_RC, ) = each($RELEASES[4]); - if (!empty($PHP_4_RC)) { - $rc .= "
  • Current PHP 4 RC: $PHP_4_RC
  • \n"; - } -} +?> -if (!empty($rc)) { - $rel .= <<< EOT -
    -

    Release Candidates

    -
      -$rc -
    -
    \n -EOT; -} +

    Stable releases

    +

    Current PHP 5 Stable:

    +

    Download

    +

    Historical PHP Stable: 4.4.9

    + +

    Release Candidates

    +

    + +

    Download area »

    + + 'boldEvents();', - 'headtags' => '', - '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" - ), - - ), - ) -); - -if (is_array($CONF_TEASER) && count($CONF_TEASER)) { - $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); - echo '
    ' . "\n"; - echo " \n"; - foreach($CONF_TEASER as $k => $a) { - if (is_array($a) && count($a)) { - echo " \n \n"; - echo " \n \n"; - } // if set - } - echo "
    ".$categories[$k].":\n"; - echo '
      ' . "\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 '
    • ' . $title. '
    • ' . "\n"; - } - echo "
    \n
    \n
    \n\n
    \n"; +// Generate the event box {{{ +?> + +

    Upcoming Events

    +
    + +

    Events Calendar

    +
    +

    + + +

    +
    + +
    +

    Add event »

    +
    + +
    +News Archive

    - "/feed.atom") // Add a link to the feed at the bottom ); diff --git a/links.php b/links.php index 7e05d384ea..d45c43c308 100644 --- a/links.php +++ b/links.php @@ -1,8 +1,11 @@

    Support tips and links

    We suggest you visit our support page @@ -16,8 +19,10 @@ list of software available under the PHP license.

    -'; -site_header("Links"); + +

    PHP Related Links

    @@ -49,6 +54,9 @@ + + +

    PHP Magazines

    @@ -81,6 +89,9 @@ + + +

    PHP Merchandise

    @@ -95,6 +106,9 @@ + + +

    Non-English PHP Sites

    @@ -434,5 +448,7 @@ + diff --git a/mirroring.php b/mirroring.php index df4d1af8f9..76089c97d7 100644 --- a/mirroring.php +++ b/mirroring.php @@ -239,7 +239,7 @@ function make_seed()

    - 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 diff --git a/my.php b/my.php index f268466d70..1a579326b0 100644 --- a/my.php +++ b/my.php @@ -1,7 +1,7 @@

    @@ -274,4 +276,7 @@

    - + -
    -

    Security Center?

    -

    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.

    - -

    Security related books

    - - -

    Other links

    - -
    -EOT; - - -site_header("PHP Security center"); -echo "

    PHP Security Center

    \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 "
    ";print_r($RECORDS);
    -    $id = isset($_GET["id"]) ? (int)$_GET["id"] : 0;
    -    if(!$id || !isset($RECORDS[$id])) {
    -?>
    -

    PHP Vulnerability Disclosures

    -

    This page contains information about PHP-related security threats, patches and known workarounds.

    -

    If you believe you have discovered a security problem in PHP please inform the
    PHP Security Response Team in confidence by mailing security@php.net

    -
    -

    The following colors are used to highlight the severity of a bug:

    - -= $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 "

    ", date("F Y", strtotime($record["published"])), "

    \n"; - } -?> -
    "> - -
    -
    ">
    -
    -
    -
    - -%s (%s)\n", $RECORDS[$id]["id"], $date); - echo "
    \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|<|\)|"|\\|\'|$)!', - '\1\4', - $data - ); - echo <<< EOT -
    -
    $title
    -
    $data
    -
    \n -EOT; - } - echo "
    \n"; -} - -site_footer(); - diff --git a/security/vulndb.txt b/security/vulndb.txt deleted file mode 100644 index 4614915a0e..0000000000 --- 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. diff --git a/sites.php b/sites.php index 1bfb14ea55..82fffb5c0e 100644 --- a/sites.php +++ b/sites.php @@ -1,8 +1,11 @@

    PHP.net Sitemap

    It might also be a good idea to dig deeper into @@ -17,8 +20,10 @@ Our links page offers some start pages you will find interesting.

    -'; -site_header("A Tourist's Guide"); + +

    PHP.net: A Tourist's Guide

    @@ -215,4 +220,8 @@ function is detected within the code, it is linked to its definition, and has a wiki section and everyone is able to apply for wiki commit access.

    - + 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; +} + +/* + * vim: ts=2 sw=2 et + */ + diff --git a/styles/mirror.css b/styles/mirror.css deleted file mode 100644 index 510e1d5f80..0000000000 --- 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 54536ae145..0000000000 --- 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 deleted file mode 100644 index 5ab0658869..0000000000 --- a/styles/print.css +++ /dev/null @@ -1,22 +0,0 @@ -#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; -} - -#headnav, #layout_2, #layout_3, #layout_3_helper, div.manualnavbar { - background: none; -} - -#headnav { - float: right; -} - -#usernotes .note, #usernotes { - border-top: 1px solid black; -} diff --git a/styles/searchbar.css b/styles/searchbar.css deleted file mode 100644 index 2bbc86fcac..0000000000 --- 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 529c57e1ad..0000000000 --- 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 - */ - diff --git a/styles/style_uncompressed.css b/styles/style_uncompressed.css new file mode 100644 index 0000000000..64477ee4e9 --- /dev/null +++ b/styles/style_uncompressed.css @@ -0,0 +1,1196 @@ +@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; + } + +/***** {{{ 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; +} +#header { + margin-bottom: 0; +} +#main-menu { + text-align: center; +} +/***** }}} *****/ +/***** {{{ Additional styling, mostly for the manual *****/ +#main-column .tip { + background:#ffffff; + padding:1em; + margin-bottom:1em; + border-bottom:1px solid #D0D0D0; + color: #000066; +} + +/***** }}} *****/ + + +} + + +@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) ") "; + } +} + +/* + * vim: ts=2 sw=2 et + */ + diff --git a/support.php b/support.php index 2e7540cfe7..455529a4e9 100644 --- a/support.php +++ b/support.php @@ -1,20 +1,22 @@ -

    Documentation

    +

    Documentation

    - A good place to start is by skimming through the ever-growing list of frequently asked questions (with answers, of course). Then - have a look at the rest of the online manual and other resources in the documentation section. + A good place to start is by skimming through the ever-growing list of + frequently asked questions (with answers, of course). + Then have a look at the rest of the online manual and other resources in the + documentation section.

    -

    Books

    +

    Books

    Books are convenient resources to begin exploring or extend your PHP knowledge. There are literally thousands of books available in @@ -27,7 +29,7 @@ and search there.

    -

    Mailing Lists

    +

    Mailing Lists

    There are a number of mailing lists devoted to talking about PHP and related @@ -36,7 +38,7 @@ subscribe to the lists.

    -

    Newsgroups

    +

    Newsgroups

    The PHP language newsgroup is comp.lang.php, available on any @@ -53,7 +55,7 @@ that these newsgroups are only available on this server.

    -

    User Groups

    +

    User Groups

    Christopher R. Moewes-Bystrom is running a PHP user group registry at -

    Events & Training

    +

    Events & Training

    A list of upcoming events (such as user group meetings and PHP training @@ -75,7 +77,7 @@ href="/submit-event.php">on this page.

    -

    Sample Code

    +

    Sample Code

    Looking for some more sample PHP scripts? Our -

    Instant Resource Center

    +

    Instant Resource Center

    Otherwise known as IRC or Internet Relay Chat. Here you can usually find @@ -107,7 +109,7 @@ freenode).

    -

    PHP.net webmasters

    +

    PHP.net webmasters

    If you have a problem or suggestion in connection with the PHP.net @@ -118,4 +120,8 @@ questions.

    - +