";
// Generate the requisite number of blank days to get things started
-for ($days = $i = date("w",$bom); $i > 0; $i--) {
+for ($days = $i = date("w", $bom); $i > 0; $i--) {
echo ' | ';
}
// Print out all the days in this month
-for ($i = 1; $i <= date("t",$bom); $i++) {
+for ($i = 1; $i <= date("t", $bom); $i++) {
// Print out day number and all events for the day
echo '',$i,'';
- display_events_for_day(date("Y-m-",$bom).sprintf("%02d",$i), $events);
+ display_events_for_day(date("Y-m-", $bom).sprintf("%02d", $i), $events);
echo ' | ';
// Break HTML table row if at end of week
@@ -218,11 +222,11 @@ function date_for_recur($recur, $day, $bom, $eom)
if ($recur > 0) {
$bomd = date("w", $bom) + 1;
$days = (($day - $bomd + 7) % 7) + (($recur - 1) * 7);
- return mktime(0,0,1, date("m",$bom), $days + 1, date("Y",$bom));
+ return mktime(0, 0, 1, date("m", $bom), $days + 1, date("Y", $bom));
}
// ${recur}th to last $day of the month
- $eomd = date("w",$eom) + 1;
+ $eomd = date("w", $eom) + 1;
$days = (($eomd - $day + 7) % 7) + ((abs($recur) - 1) * 7);
return mktime(0, 0, 1, date("m", $bom)+1, -$days, date("Y", $bom));
@@ -256,7 +260,7 @@ function display_events_for_day($day, $events): void
function load_event($id)
{
// Open events CSV file, return on error
- $fp = @fopen("backend/events.csv",'r');
+ $fp = @fopen("backend/events.csv", 'r');
if (!$fp) { return FALSE; }
// Read as we can, event by event
@@ -283,15 +287,15 @@ function load_events($from, $whole_month = FALSE)
{
// Take advantage of the equality behavior of this date format
$from_date = date("Y-m-d", $from);
- $bom = mktime(0, 0, 1, date("m",$from), 1, date("Y",$from));
- $eom = mktime(0, 0, 1, date("m",$from) + 1, 0, date("Y",$from));
+ $bom = mktime(0, 0, 1, date("m", $from), 1, date("Y", $from));
+ $eom = mktime(0, 0, 1, date("m", $from) + 1, 0, date("Y", $from));
$to_date = date("Y-m-d", $whole_month ? $eom : $from);
// Set arrays to their default
$events = $seen = array();
// Try to open the events file for reading, return if unable to
- $fp = @fopen("backend/events.csv",'r');
+ $fp = @fopen("backend/events.csv", 'r');
if (!$fp) { return FALSE; }
// For all events, read in the event and check it if fits our scope
diff --git a/downloads.php b/downloads.php
index 71c38b1fc7..9d84de8675 100644
--- a/downloads.php
+++ b/downloads.php
@@ -25,7 +25,8 @@
Old archives
';
-site_header("Downloads",
+site_header(
+ "Downloads",
array(
'link' => array(
array(
diff --git a/index.php b/index.php
index 6248628818..f6c8f5f091 100644
--- a/index.php
+++ b/index.php
@@ -121,7 +121,8 @@
$meta_image_path = $MYSITE . 'images/meta-image.png';
$meta_description = "PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.";
-site_header("Hypertext Preprocessor",
+site_header(
+ "Hypertext Preprocessor",
array(
'current' => 'home',
'headtags' => array(
diff --git a/manual/vote-note.php b/manual/vote-note.php
index a050363879..8bc48c6539 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -32,7 +32,7 @@
"vote" => $_REQUEST['vote'],
"ip" => $_SERVER['REMOTE_ADDR']
);
- if (($r = posttohost($master_url, $data)) === null || strpos($r,"failed to open socket to") !== false) {
+ if (($r = posttohost($master_url, $data)) === null || strpos($r, "failed to open socket to") !== false) {
$response["success"] = false;
$response["msg"] = "Could not process your request at this time. Please try again later...";
}
@@ -76,7 +76,7 @@
"vote" => $_REQUEST['vote'],
"ip" => $_SERVER['REMOTE_ADDR'],
);
- if (($r = posttohost($master_url, $data)) !== null && strpos($r,"failed to open socket to") === false) {
+ if (($r = posttohost($master_url, $data)) !== null && strpos($r, "failed to open socket to") === false) {
$r = json_decode($r);
if (isset($r->status, $r->votes) && $r->status) {
$thankyou = true;
@@ -129,8 +129,12 @@
$backID = htmlspecialchars($_REQUEST['id']);
$backPAGE = htmlspecialchars($_REQUEST['page']);
manual_note_display(
- $N[$_REQUEST['id']]['xwhen'], $N[$_REQUEST['id']]['user'], $N[$_REQUEST['id']]['note'], $N[$_REQUEST['id']]['id'],
- $N[$_REQUEST['id']]['votes'], false
+ $N[$_REQUEST['id']]['xwhen'],
+ $N[$_REQUEST['id']]['user'],
+ $N[$_REQUEST['id']]['note'],
+ $N[$_REQUEST['id']]['id'],
+ $N[$_REQUEST['id']]['votes'],
+ false
);
?>
@@ -185,8 +189,12 @@
$backID = htmlspecialchars($_REQUEST['id']);
$backPAGE = htmlspecialchars($_REQUEST['page']);
manual_note_display(
- $N[$_REQUEST['id']]['xwhen'], $N[$_REQUEST['id']]['user'], $N[$_REQUEST['id']]['note'], $N[$_REQUEST['id']]['id'],
- $N[$_REQUEST['id']]['votes'], false
+ $N[$_REQUEST['id']]['xwhen'],
+ $N[$_REQUEST['id']]['user'],
+ $N[$_REQUEST['id']]['note'],
+ $N[$_REQUEST['id']]['id'],
+ $N[$_REQUEST['id']]['votes'],
+ false
);
?>
diff --git a/releases/8.0/common.php b/releases/8.0/common.php
index c4256286ae..7e37ae76f8 100644
--- a/releases/8.0/common.php
+++ b/releases/8.0/common.php
@@ -7,7 +7,8 @@ function common_header(string $description): void {
global $MYSITE;
$meta_image_path = \htmlspecialchars(
- \filter_var($MYSITE . 'images/php8/php_8_released.png', \FILTER_VALIDATE_URL));
+ \filter_var($MYSITE . 'images/php8/php_8_released.png', \FILTER_VALIDATE_URL)
+ );
$meta_description = \htmlspecialchars($description);
\site_header("PHP 8.0.0 Release Announcement", [
diff --git a/releases/8.0/de.php b/releases/8.0/de.php
index 939ec822ab..929b8c9d52 100644
--- a/releases/8.0/de.php
+++ b/releases/8.0/de.php
@@ -7,7 +7,8 @@
'Es beinhaltet viele neue Funktionen und Optimierungen wie beispielsweise ' .
'Named Arguments, Union Types, Attribute, Constructor Property Promotion, ' .
'Match Ausdrücke, Nullsafe Operator, JIT und Verbesserungen des Typen-Systems, ' .
- 'der Fehlerbehandlung und der Konsistenz.');
+ 'der Fehlerbehandlung und der Konsistenz.'
+);
?>