Skip to content
Browse files

Add current config option (ignored in old-web), and FIXME placeholder…

…s for pages

not in any menu yet
  • Loading branch information...
1 parent 2cf9bb3 commit 60d5c3b903583022ddc8849865048b45127c0a9a @bjori bjori committed
View
2 ChangeLog-4.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'ChangeLog-4.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("PHP 4 ChangeLog");
+site_header("PHP 4 ChangeLog", array("current" => "FIXME"));
function bugfix($number) { echo "Fixed bug "; bugl($number); }
function bugl($number) { echo "<a href=\"http://bugs.php.net/$number\">#$number</a>"; }
?>
View
2 ChangeLog-5.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'ChangeLog-5.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("PHP 5 ChangeLog");
+site_header("PHP 5 ChangeLog", array("current" => "FIXME"));
function bugfix($number) { echo "Fixed bug "; bugl($number); }
function bugl($number) { echo "<a href=\"http://bugs.php.net/$number\">#$number</a>"; }
function peclbugfix($number) { echo "Fixed PECL bug "; bugl($number); }
View
6 cal.php
@@ -30,7 +30,7 @@
if ($id) {
// Try to load event by ID and display header and info for that event
if ($event = load_event($id)) {
- site_header("Event: " . stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8')));
+ site_header("Event: " . stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8')), array("current" => "FIXME"));
display_event($event, 0);
$begun = TRUE;
}
@@ -51,7 +51,7 @@
// Try to load events for that day, and display them all
if ($events = load_events($date)) {
- site_header("Events: ".date("F j, Y", $date));
+ site_header("Events: ".date("F j, Y", $date), array("current" => "FIXME"));
echo "<h2>", date("F j, Y", $date), "</h2>\n";
foreach ($events as $event) {
display_event($event, 0);
@@ -87,7 +87,7 @@
$date = mktime(0, 0, 1, $cm, 1, $cy);
if (!$begun) {
- site_header("Events: ".date("F Y", $date));
+ site_header("Events: ".date("F Y", $date), array("current" => "FIXME"));
?>
<div class="tip">
<p>
View
2 contact.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'contact.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Contact");
+site_header("Contact", array("current" => "community"));
?>
<a name="ads"></a>
View
2 copyright.php
@@ -10,7 +10,7 @@
<a href="/license/">see our licensing information page</a>.
</p>
';
-site_header("Copyright");
+site_header("Copyright", array("current" => "footer"));
?>
<a name="copyright"></a>
View
2 credits.php
@@ -23,7 +23,7 @@
// If there is something left, print it out
if ($credits) {
- site_header("Credits");
+ site_header("Credits", array("current" => "community"));
echo $credits;
site_footer();
}
View
2 cvsup.php
@@ -28,7 +28,7 @@
Compiled snapshots for Windows users are also included.
</p>
';
-site_header("Using CVSup to maintain a local CVS repository");
+site_header("Using CVSup to maintain a local CVS repository", array("current" => "FIXME"));
?>
<h1>Using CVSup To Maintain A Local CVS Repository</h1>
View
2 docs.php
@@ -39,7 +39,7 @@
</p>
';
-site_header("Documentation");
+site_header("Documentation", array("current" => "docs"));
?>
View
2 download-docs.php
@@ -45,7 +45,7 @@
</p>
';
-site_header("Download documentation");
+site_header("Download documentation", array("current" => "docs"));
// Format to look for
$formats = array(
View
2 download-logos.php
@@ -11,7 +11,7 @@
under a GPL license.
</p>
';
-site_header("Download Logos");
+site_header("Download Logos", array("current" => "downloads"));
// Print recommended star cell
function print_star()
View
1 downloads.php
@@ -78,6 +78,7 @@
"title" => "PHP Release feed"
),
),
+ "current" => "downloads",
)
);
?>
View
2 get-involved.php
@@ -3,7 +3,7 @@
$_SERVER['BASE_PAGE'] = 'get-involved.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Get Involved");
+site_header("Get Involved", array("current" => "community"));
?>
<aside class="tips">
View
2 include/header.inc
@@ -45,7 +45,7 @@
<li id="headhome">
<a href="/" rel="home" class="menu-link">Home</a>
</li>
- <li>
+ <li class="<?php echo $curr == "downloads" ? "current" : ""?>">
<a href="/downloads.php" class="menu-link">Downloads</a>
</li>
<li class="parent <?php echo $curr == "docs" ? "current" : ""?>">
View
2 license/contrib-guidelines-code.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'license/contrib-guidelines-code.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("License Information");
+site_header("License Information", array("current" => "help"));
?>
<h2>PHP Contributor Guidelines for Code Developers</h2>
View
2 license/distrib-guidelines-code.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'license/distrib-guidelines-code.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("License Information");
+site_header("License Information", array("current" => "help"));
?>
<h2>PHP Distribution Guidelines</h2>
View
2 license/index.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'license/index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("License Information");
+site_header("License Information", array("current" => "help"));
?>
<h1>PHP Licensing</h1>
View
2 links.php
@@ -17,7 +17,7 @@
the PHP license.
</p>
';
-site_header("Links");
+site_header("Links", array("current" => "community"));
?>
<h1>PHP Related Links</h1>
View
2 mailing-lists.php
@@ -40,7 +40,7 @@
</ul>
';
-site_header("Mailing Lists");
+site_header("Mailing Lists", array("current" => "help"));
// Some mailing list is selected for [un]subscription
if (isset($_POST['maillist'])) {
View
2 mirror.php
@@ -16,7 +16,7 @@
mirroring page</a>.
</p>
';
-site_header("Information About This PHP Mirror Site");
+site_header("Information About This PHP Mirror Site", array("current" => "FIXME"));
?>
<h1>Information About This PHP Mirror Site</h1>
View
2 mirroring-stats.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'mirroring-stats.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Setting Up Local Stats");
+site_header("Setting Up Local Stats", array("current" => "FIXME"));
?>
<h1>Setting Up Local Stats</h1>
View
2 mirroring-troubles.php
@@ -13,7 +13,7 @@
</p>
';
-site_header("The PHP mirrors problem and troubleshooting guide");
+site_header("The PHP mirrors problem and troubleshooting guide", array("current" => "FIXME"));
?>
<h1>Common troubles that PHP.net mirrors face</h1>
View
2 mirroring.php
@@ -20,7 +20,7 @@
';
*/
-site_header("Mirroring The PHP Website");
+site_header("Mirroring The PHP Website", array("current" => "FIXME"));
// Get a minute to print out for the cron example
function make_seed()
View
2 mirrors.php
@@ -3,7 +3,7 @@
$_SERVER['BASE_PAGE'] = 'mirrors.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/mirrortable.inc';
-site_header("Mirror Sites");
+site_header("Mirror Sites", array("current" => "community"));
?>
<h1>Mirror Sites</h1>
View
2 mod.php
@@ -10,7 +10,7 @@
$_SERVER['BASE_PAGE'] = 'mod.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Email confirmation");
+site_header("Email confirmation", array("current" => "community"));
// Only run on www.php.net
if ($MYSITE != "http://www.php.net/") {
View
2 my.php
@@ -73,7 +73,7 @@
myphpnet_save();
-site_header("My PHP.net");
+site_header("My PHP.net", array("current" => "community"));
?>
<form action="/my.php" method="post">
View
2 privacy.php
@@ -2,7 +2,7 @@
// $Id: tips.php 286580 2009-07-31 10:28:16Z bjori $
$_SERVER['BASE_PAGE'] = 'privacy.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Privacy Policy");
+site_header("Privacy Policy", array("current" => "footer"));
?>
<h1>Privacy Policy</h1>
View
2 quickref.php
@@ -125,7 +125,7 @@ function quickref_table($functions, $sort = true)
if (count($maybe) > 0) { $head_options = array("noindex"); }
else { $head_options = array(); }
-site_header("Manual Quick Reference", $head_options);
+site_header("Manual Quick Reference", $head_options+array("current" => "docs"));
?>
<h1>PHP Function List</h1>
View
2 results.php
@@ -54,7 +54,7 @@ function exit_with_pretty_error($title, $header, $msg) {
$res = unserialize($data);
// HTTP status line is passed on, signifies an error
-site_header('Search results', array("noindex"));
+site_header('Search results', array("noindex", "current" => "FIXME")));
if (!is_array($res)) {
exit_with_pretty_error(null, 'Internal error', 'Please try again later');
View
2 search.php
@@ -107,7 +107,7 @@
"href" => $MYSITE . "phpnetimprovedsearch.src",
"title" => "Add PHP.net search"
);
- site_header("Search", array("link" => array($link)));
+ site_header("Search", array("link" => array($link), "current" => "FIXME"));
?>
<p>
The autocompleting search feature is accessible via the form elements at the top
View
2 security-note.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'security-note.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("A Note on Security in PHP");
+site_header("A Note on Security in PHP", array("current" => "FIXME"));
?>
<h1>A Note on Security in PHP</h1>
View
2 sidebars.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'sidebars.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("PHP.net Search Bars");
+site_header("PHP.net Search Bars", array("current" => "help"));
?>
<h1>PHP.net Search Bars</h1>
View
2 sitemap.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'sitemap.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Sitemap");
+site_header("Sitemap", array("current" => "help"));
?>
<h1>PHP.net Sitemap</h1>
View
2 sites.php
@@ -18,7 +18,7 @@
pages you will find interesting.
</p>
';
-site_header("A Tourist's Guide");
+site_header("A Tourist's Guide", array("current" => "help"));
?>
<h1>PHP.net: A Tourist's Guide</h1>
View
2 software.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'software.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("PHP Software");
+site_header("PHP Software", array("current" => "help"));
?>
<h1>PHP Software</h1>
View
2 source.php
@@ -32,7 +32,7 @@
<a href="http://svn.php.net/web/php/">svn.php.net</a>.
</p>
';
-site_header("Show Source");
+site_header("Show Source", array("current" => "FIXME"));
// No file param specified
if (!isset($_GET['url']) || (isset($_GET['url']) && !is_string($_GET['url']))) {
View
2 submit-event.php
@@ -4,7 +4,7 @@
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
-site_header("Submit an Event");
+site_header("Submit an Event", array("current" => "FIXME"));
// No errors, processing depends on POST data
$errors = array();
View
2 support.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'support.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Getting Help");
+site_header("Getting Help", array("current" => "help"));
?>
<h1>Documentation</h1>
View
2 svn-php.php
@@ -20,7 +20,7 @@
<a href="/svn.php">SVN</a>. No SVN account is required.
</p>
';
-site_header("Using SVN for PHP Development");
+site_header("Using SVN for PHP Development", array("current" => "FIXME"));
$groups = array(
"php" => "PHP Group",
View
2 svn.php
@@ -26,7 +26,7 @@
Compiled snapshots for Windows users are also included.
</p>
';
-site_header("SVN Access");
+site_header("SVN Access", array("current" => "community"));
?>
<h1>SVN Access</h1>
View
2 thanks.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'thanks.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("Thanks");
+site_header("Thanks", array("current" => "FIXME"));
?>
<h1>Thanks</h1>
View
2 tips.php
@@ -17,7 +17,7 @@
<a href="/my.php">the My PHP.net page</a>.
</p>
';
-site_header("Quick Reference Tips");
+site_header("Quick Reference Tips", array("current" => "help"));
function tip_title($title, $author = '', $date = '')
{
View
2 unsub.php
@@ -12,7 +12,7 @@
lists</a> on their own pages.
</p>
';
-site_header("Unsubscribing");
+site_header("Unsubscribing", array("current" => "community"));
?>
<h1>Unsubscribing From a Mailing List</h1>
View
2 urlhowto.php
@@ -31,7 +31,7 @@
</p>
';
-site_header("URL Howto");
+site_header("URL Howto", array("current" => "help"));
function a($href) {
global $MYSITE;
echo '<a href="' . $MYSITE . $href . '">' . $MYSITE . $href . '</a>';
View
2 usage.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'usage.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-site_header("PHP Usage Stats");
+site_header("PHP Usage Stats", array("current" => "FIXME"));
?>
<h1>Usage Stats for April 2007</h1>

0 comments on commit 60d5c3b

Please sign in to comment.
Something went wrong with that request. Please try again.