From d0c4db9f0348cd42215f95a9038d4304ff449ecb Mon Sep 17 00:00:00 2001 From: fourfivesix Date: Tue, 23 Sep 2014 20:45:48 -0300 Subject: [PATCH 1/3] Improves the legibility of boards.php --- boards.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/boards.php b/boards.php index 93ba7fe2..5b01ddef 100644 --- a/boards.php +++ b/boards.php @@ -95,7 +95,12 @@ foreach ($boards as $i => &$board) { $lock = ''; } $board['ago'] = human_time_diff(strtotime($board['time'])); - $body .= "$img/{$board['uri']}/$lock{$board['pph']}{$board['max']}{$board['time']} ({$board['ago']} ago)"; + $body .= ""; + $body .= "$img"; + $body .= "/{$board['uri']}/$lock"; + $body .= "{$board['pph']}"; + $body .= "{$board['max']}"; + $body .= "{$board['time']} ({$board['ago']} ago)"; } else { unset($boards[$i]); $hidden_boards_total += 1; From 2865b17594472c1572bbb9402c318b2a187fd7b6 Mon Sep 17 00:00:00 2001 From: fourfivesix Date: Tue, 23 Sep 2014 20:46:33 -0300 Subject: [PATCH 2/3] Fixes a little HTML mistake in boards.php. --- boards.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.php b/boards.php index 5b01ddef..e78f2698 100644 --- a/boards.php +++ b/boards.php @@ -33,7 +33,7 @@ th.headerSortDown { } CSS; -$body .= ''; +$body .= '
LBoardPosts in last hourTotal postsCreated
'; $total_posts_hour = 0; $total_posts = 0; From 52b9afe4a83a24d26cbcb7d5c5105cc404785b8a Mon Sep 17 00:00:00 2001 From: fourfivesix Date: Tue, 23 Sep 2014 20:49:59 -0300 Subject: [PATCH 3/3] Tabs > spaces. --- boards.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/boards.php b/boards.php index e78f2698..46bddb38 100644 --- a/boards.php +++ b/boards.php @@ -95,12 +95,12 @@ foreach ($boards as $i => &$board) { $lock = ''; } $board['ago'] = human_time_diff(strtotime($board['time'])); - $body .= ""; - $body .= ""; - $body .= ""; - $body .= ""; - $body .= ""; - $body .= ""; + $body .= ""; + $body .= ""; + $body .= ""; + $body .= ""; + $body .= ""; + $body .= ""; } else { unset($boards[$i]); $hidden_boards_total += 1;
LBoardPosts in last hourTotal postsCreated
$img/{$board['uri']}/$lock{$board['pph']}{$board['max']}{$board['time']} ({$board['ago']} ago)
$img/{$board['uri']}/$lock{$board['pph']}{$board['max']}{$board['time']} ({$board['ago']} ago)