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:
@@ -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: : */
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
require __DIR__ . "/layout.inc";
|
||||
|
||||
Reference in New Issue
Block a user