Skip to content

Increment style #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cal.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,18 @@
"\n",'<tr>',"\n";

// Print out headers for weekdays
for ($i = 0; $i < 7; $i++) {
for ($i = 0; $i < 7; ++$i) {
echo '<th width="14%">', date("l",mktime(0,0,1,4,$i+1,2001)), "</th>\n";
}
echo "</tr>\n<tr>";

// 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 '<td class="notaday">&nbsp;</td>';
}

// 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 '<td><a class="day" href="/cal.php', "?cm=$cm&amp;cd=$i&amp;cy=$cy",
Expand All @@ -197,7 +197,7 @@
}

// Generate the requisite number of blank days to wrap things up
for (; $days % 7; $days++) {
for (; $days % 7; ++$days) {
echo '<td class="notaday">&nbsp;</td>';
}

Expand Down
2 changes: 1 addition & 1 deletion images/elephpants.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
continue;
}

$got++;
++$got;
// add photo to response array.
$elephpants[] = array(
'title' => $photo['title'],
Expand Down
4 changes: 2 additions & 2 deletions manual/vote-note.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
}
else {
if ($_REQUEST['vote'] === 'up') {
$N[$_REQUEST['id']]['votes']['up']++;
++$N[$_REQUEST['id']]['votes']['up'];
}
elseif ($_REQUEST['vote'] === 'down') {
$N[$_REQUEST['id']]['votes']['down']++;
++$N[$_REQUEST['id']]['votes']['down'];
}
$update = $N[$_REQUEST['id']]['votes']['up'] - $N[$_REQUEST['id']]['votes']['down'];
$hash = substr(md5($_REQUEST['page']), 0, 16);
Expand Down
6 changes: 3 additions & 3 deletions releases/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$release['supported_versions'] = $supportedVersions[$ver] ?? [];
}
$machineReadable[$version] = $release;
$count++;
++$count;
}
}

Expand Down Expand Up @@ -100,7 +100,7 @@

$i = 0;
foreach($a as $ver => $release) {
$i++;
++$i;
mk_rel(
$major,
$ver,
Expand Down Expand Up @@ -172,7 +172,7 @@ function recentEOLBranchesHTML(): string {
foreach (get_eol_branches() as $branches) {
foreach ($branches as $branch => $detail) {
$detail_date = $detail['date'];
while (isset($eol[$detail_date])) $detail_date++;
while (isset($eol[$detail_date])) ++$detail_date;
$eol[$detail_date] = sprintf('<li>%s: %s</li>', $branch, date('j M Y', $detail_date));
}
}
Expand Down
2 changes: 1 addition & 1 deletion security/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$RECORDS[$record_no]["id"] = $record_no;
}
$field = null;
$record_no++;
++$record_no;
continue;
}
if(preg_match("/^([-\w]+):\s*(.*)/", $s, $m)) {
Expand Down
4 changes: 2 additions & 2 deletions submit-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@
if (count($errors)) { display_errors($errors); }

// Generate days and months arrays for form
for ($i = 1; $i <= 7; $i++) {
for ($i = 1; $i <= 7; ++$i) {
$days[$i] = date('l', mktime(12, 0, 0, 4, $i));
}
for ($i = 1; $i <= 12; $i++) {
for ($i = 1; $i <= 12; ++$i) {
$months[$i] = date('F', mktime(12, 0, 0, $i, 1));
}

Expand Down