mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Migrate more pages to use the new header and footer functions
This commit is contained in:
10
cal.php
10
cal.php
@@ -30,7 +30,7 @@ if ($cy != 0 && !valid_year($cy)) {
|
||||
if ($id) {
|
||||
// Try to load event by ID and display header and info for that event
|
||||
if ($event = load_event($id)) {
|
||||
commonHeader("Event: " . stripslashes(htmlentities($event['sdesc'])));
|
||||
site_header("Event: " . stripslashes(htmlentities($event['sdesc'])));
|
||||
display_event($event, 0);
|
||||
$begun = TRUE;
|
||||
}
|
||||
@@ -51,7 +51,7 @@ elseif ($cy && $cm && $cd) {
|
||||
|
||||
// Try to load events for that day, and display them all
|
||||
if ($events = load_events($date)) {
|
||||
commonHeader("Events: ".date("F j, Y", $date));
|
||||
site_header("Events: ".date("F j, Y", $date));
|
||||
echo "<h2>", date("F j, Y", $date), "</h2>\n";
|
||||
foreach ($events as $event) {
|
||||
display_event($event, 0);
|
||||
@@ -87,7 +87,7 @@ if (!isset($cy) || $cy == 0) { $cy = date("Y"); }
|
||||
$date = mktime(0, 0, 1, $cm, 1, $cy);
|
||||
|
||||
if (!$begun) {
|
||||
commonHeader("Events: ".date("F Y", $date));
|
||||
site_header("Events: ".date("F Y", $date));
|
||||
?>
|
||||
<div class="tip">
|
||||
<p>
|
||||
@@ -114,7 +114,7 @@ if ($events === FALSE || count($events) == 0) {
|
||||
// If there were any error, display them
|
||||
if (count($errors) > 0) {
|
||||
display_errors($errors);
|
||||
commonFooter();
|
||||
site_footer();
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ for (; $days % 7; $days++) {
|
||||
echo "</tr>\n</table>\n";
|
||||
|
||||
// Print out common footer
|
||||
commonFooter();
|
||||
site_footer();
|
||||
|
||||
// Generate the date on which a recurring event falls for a given month
|
||||
// $bom and $eom are the first and last day of the month to look at
|
||||
|
||||
4
my.php
4
my.php
@@ -63,7 +63,7 @@ $mirror_sites["NONE"] = array(7 => MIRROR_OK);
|
||||
|
||||
myphpnet_save();
|
||||
|
||||
commonHeader("My PHP.net");
|
||||
site_header("My PHP.net");
|
||||
?>
|
||||
|
||||
<form action="/my.php" method="post">
|
||||
@@ -233,4 +233,4 @@ foreach ($mirror_sites as $murl => $mdata) {
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<?php commonFooter(); ?>
|
||||
<?php site_footer(); ?>
|
||||
|
||||
@@ -98,7 +98,7 @@ if (count($temp) > 0) {
|
||||
unset($matches, $temp);
|
||||
}
|
||||
|
||||
commonHeader("Manual Quick Reference");
|
||||
site_header("Manual Quick Reference");
|
||||
?>
|
||||
|
||||
<h1>PHP Function List</h1>
|
||||
@@ -132,7 +132,7 @@ commonHeader("Manual Quick Reference");
|
||||
</p>
|
||||
|
||||
<?php
|
||||
commonFooter();
|
||||
site_footer();
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -145,5 +145,5 @@ commonHeader("Manual Quick Reference");
|
||||
|
||||
<?php
|
||||
quickref_table($functions);
|
||||
commonFooter();
|
||||
?>
|
||||
site_footer();
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user