svn: /web/php/branches/PROTOTYPE_2010/ sidebars.php sites.php support.php tips.php urlhowto.php
| From: | Hannes Magnusson | Date: | Sun, 26 Dec 2010 11:56:53 +0000 |
| Subject: | svn: /web/php/branches/PROTOTYPE_2010/ sidebars.php sites.php support.php tips.php urlhowto.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9793@lists.php.net to get a copy of this message | ||
bjori Sun, 26 Dec 2010 11:56:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306653
Log:
Pure copy&paste from phpweb
Changed paths:
U web/php/branches/PROTOTYPE_2010/sidebars.php
U web/php/branches/PROTOTYPE_2010/sites.php
U web/php/branches/PROTOTYPE_2010/support.php
U web/php/branches/PROTOTYPE_2010/tips.php
U web/php/branches/PROTOTYPE_2010/urlhowto.php
Modified: web/php/branches/PROTOTYPE_2010/sidebars.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/sidebars.php 2010-12-26 11:56:31 UTC (rev 306652)
+++ web/php/branches/PROTOTYPE_2010/sidebars.php 2010-12-26 11:56:53 UTC (rev 306653)
@@ -1,7 +1,8 @@
<?php
-// $Id: sidebars.php 232850 2007-03-28 10:01:12Z bjori $
-$curr = "help";
-require "./header.php";
+// $Id: sidebars.php 306633 2010-12-25 19:13:25Z bjori $
+$_SERVER['BASE_PAGE'] = 'sidebars.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+site_header("PHP.net Search Bars");
?>
<h1>PHP.net Search Bars</h1>
@@ -118,6 +119,4 @@
database directly from your Desktop.
</p>
-<?php
-require "./footer.php";
-
+<?php site_footer(); ?>
Modified: web/php/branches/PROTOTYPE_2010/sites.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/sites.php 2010-12-26 11:56:31 UTC (rev 306652)
+++ web/php/branches/PROTOTYPE_2010/sites.php 2010-12-26 11:56:53 UTC (rev 306653)
@@ -1,9 +1,8 @@
<?php
// $Id: sites.php 302079 2010-08-10 18:18:17Z philip $
-$curr = "help";
-require "./header.php";
-?>
-<aside>
+$_SERVER['BASE_PAGE'] = 'sites.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+$SIDEBAR_DATA = '
<h3>PHP.net Sitemap</h3>
<p>
It might also be a good idea to dig deeper into
@@ -18,7 +17,9 @@
Our <a href="/links.php">links page</a> offers some start
pages you will find interesting.
</p>
-</aside>
+';
+site_header("A Tourist's Guide");
+?>
<h1>PHP.net: A Tourist's Guide</h1>
@@ -235,6 +236,4 @@
has a wiki section and everyone is able to apply for wiki commit access.
</p>
-<?php
-require "./footer.php";
-
+<?php site_footer(); ?>
Modified: web/php/branches/PROTOTYPE_2010/support.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/support.php 2010-12-26 11:56:31 UTC (rev 306652)
+++ web/php/branches/PROTOTYPE_2010/support.php 2010-12-26 11:56:53 UTC (rev 306653)
@@ -1,7 +1,8 @@
<?php
// $Id: support.php 278578 2009-04-11 08:44:21Z bjori $
-$curr = "help";
-require "./header.php";
+$_SERVER['BASE_PAGE'] = 'support.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+site_header("Getting Help");
?>
<h1>Documentation</h1>
@@ -118,6 +119,4 @@
questions.
</p>
-<?php
-require "./footer.php";
-
+<?php site_footer(); ?>
Modified: web/php/branches/PROTOTYPE_2010/tips.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/tips.php 2010-12-26 11:56:31 UTC (rev 306652)
+++ web/php/branches/PROTOTYPE_2010/tips.php 2010-12-26 11:56:53 UTC (rev 306653)
@@ -1,15 +1,8 @@
<?php
// $Id: tips.php 286580 2009-07-31 10:28:16Z bjori $
-$curr = "help";
-require "./header.php";
-
-function tip_title($title, $author = '', $date = '')
-{
- echo "<hr />\n<h2>$title<br />\n";
- echo "<small>Submitted by $author ($date)</small></h2>\n";
-}
-?>
-<aside>
+$_SERVER['BASE_PAGE'] = 'tips.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+$SIDEBAR_DATA = '
<h3>About URL shortcuts</h3>
<p>
Most of the tips here utilize PHP.net URL shortcuts, so they allow you
@@ -23,8 +16,16 @@
by the PHP site. For more information on language selection, see
<a href="/my.php">the My PHP.net page</a>.
</p>
-</aside>
+';
+site_header("Quick Reference Tips");
+function tip_title($title, $author = '', $date = '')
+{
+ echo "<hr />\n<h2>$title<br />\n";
+ echo "<small>Submitted by $author ($date)</small></h2>\n";
+}
+?>
+
<h1>Quick Reference Tips</h1>
<p>
@@ -369,6 +370,4 @@
'\1'|sed -e ': p;s/+/%2B/;t p;: s;s/\ /+/;t s;: q;s/\"/%22/;t
q')</tt>
</p>
-<?php
-require "./footer.php";
-
+<?php site_footer(); ?>
Modified: web/php/branches/PROTOTYPE_2010/urlhowto.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/urlhowto.php 2010-12-26 11:56:31 UTC (rev 306652)
+++ web/php/branches/PROTOTYPE_2010/urlhowto.php 2010-12-26 11:56:53 UTC (rev 306653)
@@ -1,15 +1,9 @@
<?php
// $Id: urlhowto.php 283997 2009-07-13 08:14:46Z gwynne $
-$curr = "help";
-require "./header.php";
+$_SERVER['BASE_PAGE'] = 'urlhowto.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-function a($href) {
- global $MYSITE;
- echo '<a href="' . $MYSITE . $href . '">' . $MYSITE . $href .
'</a>';
-}
-
-?>
-<aside>
+$SIDEBAR_DATA='
<h3>URL examples</h3>
<p>
We have many kind of URL shortcuts. Here are some
@@ -35,9 +29,16 @@
your <a href="/my.php">language preferences</a>
detected and set.
</p>
-</aside>
+';
+site_header("URL Howto");
+function a($href) {
+ global $MYSITE;
+ echo '<a href="' . $MYSITE . $href . '">' . $MYSITE . $href .
'</a>';
+}
+?>
+
<h1>Navigation tips&tricks</h1>
<p>
@@ -189,6 +190,4 @@
<li><a href="/source.php?url=/search.php">search.php</a></li>
</ul>
-<?php
-require "footer.php";
-
+<?php site_footer(); ?>