1
0
mirror of https://github.com/php/web-php.git synced 2026-04-29 01:43:15 +02:00

All our existing pages include these files.. add basic skeleton of them

Makes it easier to port this back to phpweb
This commit is contained in:
Hannes Magnusson
2010-12-26 11:56:31 +00:00
parent 07c09f31cf
commit ff495e1bdb
2 changed files with 46 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
$MYSITE = "/"; // Will be http://[foo.]php.net
$MY_LANG = 'en'; // Will use lang from accept header, or last saved 'preferred lang'
function site_header($title = '', $config = array())
{
global $MYSITE, $MY_LANG;
global $SIDEBAR_DATA;
if (isset($config["current"])) {
$curr = $config["current"];
}
else {
switch($_SERVER["BASE_PAGE"]) {
case "privacy.php":
default:
$curr = "";
break;
case "docpage.php":
$curr = "docs";
break;
case "mailing-lists.php":
case "sidebars.php":
case "sites.php":
case "support.php":
case "tips.php":
case "urlhowto.php":
$curr = "help";
break;
}
}
require __DIR__ ."/../header.php";
}
function site_footer($config = array())
{
require __DIR__ . "/../footer.php";
}
/* vim: set et ts=4 sw=4 ft=php: : */
+3
View File
@@ -0,0 +1,3 @@
<?php
require __DIR__ . "/layout.inc";