From da0ff2e830cacd11fada58ac191f3d6d348d1fd8 Mon Sep 17 00:00:00 2001 From: Alan Hardman Date: Sun, 28 Jul 2019 23:19:02 -0600 Subject: [PATCH] Adding completed Jay Naylor comics --- .gitignore | 2 ++ betterdays.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ originallife.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 betterdays.php create mode 100644 originallife.php diff --git a/.gitignore b/.gitignore index 3af2c6d..5a1e149 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /alicegrove/ +/betterdays/ /blasternation/ /crashzoom/ /doa/ @@ -16,6 +17,7 @@ /loadingartist/ /nerfnow/ /octopuspie/ +/originallife/ /qc/ /sandraandwoo/ /sleeplessdomain/ diff --git a/betterdays.php b/betterdays.php new file mode 100644 index 0000000..4ae0072 --- /dev/null +++ b/betterdays.php @@ -0,0 +1,48 @@ +« Previous@'; + preg_match($regex, $html, $prevMatch); + + if (empty($prevMatch[1])) { + echo "No previous URL found!\n"; + return; + } + + $html = @file_get_contents($prevMatch[1]); + if (!$html) { + echo "Failed to load previous page!\n"; + return; + } + + preg_match('@/betterdays/comic/(.+\\.(jpg|png|gif))@', $html, $matches); + if (empty($matches[1])) { + echo "No image found on page!\n"; + return; + } + + usleep(5e5); +} diff --git a/originallife.php b/originallife.php new file mode 100644 index 0000000..910fcdf --- /dev/null +++ b/originallife.php @@ -0,0 +1,48 @@ +« Previous@'; + preg_match($regex, $html, $prevMatch); + + if (empty($prevMatch[1])) { + echo "No previous URL found!\n"; + return; + } + + $html = @file_get_contents($prevMatch[1]); + if (!$html) { + echo "Failed to load previous page!\n"; + return; + } + + preg_match('@/originallife/comic/(.+\\.(jpg|png|gif))@', $html, $matches); + if (empty($matches[1])) { + echo "No image found on page!\n"; + return; + } + + usleep(5e5); +}