Skip to content

Commit

Permalink
Add current config option (ignored in old-web), and FIXME placeholder…
Browse files Browse the repository at this point in the history
…s for pages

not in any menu yet
  • Loading branch information
bjori committed Dec 28, 2010
1 parent 2cf9bb3 commit 60d5c3b
Show file tree
Hide file tree
Showing 44 changed files with 46 additions and 45 deletions.
2 changes: 1 addition & 1 deletion ChangeLog-4.php
Expand Up @@ -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>"; }
?>
Expand Down
2 changes: 1 addition & 1 deletion ChangeLog-5.php
Expand Up @@ -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); }
Expand Down
6 changes: 3 additions & 3 deletions cal.php
Expand Up @@ -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;
}
Expand All @@ -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);
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion contact.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion copyright.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion credits.php
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion cvsup.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs.php
Expand Up @@ -39,7 +39,7 @@
</p>
';

site_header("Documentation");
site_header("Documentation", array("current" => "docs"));

?>

Expand Down
2 changes: 1 addition & 1 deletion download-docs.php
Expand Up @@ -45,7 +45,7 @@
</p>
';

site_header("Download documentation");
site_header("Download documentation", array("current" => "docs"));

// Format to look for
$formats = array(
Expand Down
2 changes: 1 addition & 1 deletion download-logos.php
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions downloads.php
Expand Up @@ -78,6 +78,7 @@
"title" => "PHP Release feed"
),
),
"current" => "downloads",
)
);
?>
Expand Down
2 changes: 1 addition & 1 deletion get-involved.php
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion include/header.inc
Expand Up @@ -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" : ""?>">
Expand Down
2 changes: 1 addition & 1 deletion license/contrib-guidelines-code.php
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion license/distrib-guidelines-code.php
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion license/index.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion links.php
Expand Up @@ -17,7 +17,7 @@
the PHP license.
</p>
';
site_header("Links");
site_header("Links", array("current" => "community"));
?>

<h1>PHP Related Links</h1>
Expand Down
2 changes: 1 addition & 1 deletion mailing-lists.php
Expand Up @@ -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'])) {
Expand Down
2 changes: 1 addition & 1 deletion mirror.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion mirroring-stats.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion mirroring-troubles.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion mirroring.php
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion mirrors.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion mod.php
Expand Up @@ -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/") {
Expand Down
2 changes: 1 addition & 1 deletion my.php
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion privacy.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion quickref.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion results.php
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion search.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion security-note.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion sidebars.php
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion sitemap.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion sites.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion software.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion source.php
Expand Up @@ -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']))) {
Expand Down
2 changes: 1 addition & 1 deletion submit-event.php
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion support.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion svn-php.php
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion svn.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion thanks.php
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion tips.php
Expand Up @@ -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 = '')
{
Expand Down
2 changes: 1 addition & 1 deletion unsub.php
Expand Up @@ -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>
Expand Down

0 comments on commit 60d5c3b

Please sign in to comment.