From 247f5d615539784c46b5c7c5b35b6ee348e04151 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 4 May 2012 09:48:27 -0700 Subject: initial commit --- issue.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 issue.php (limited to 'issue.php') diff --git a/issue.php b/issue.php new file mode 100644 index 0000000..3a3ed6f --- /dev/null +++ b/issue.php @@ -0,0 +1,52 @@ + +"; + echo ""; + echo "\n"; + } else { + echo " \n"; + } +} + +function pages($first, $last) { + if (file_exists("Pages${first}-${last}.pdf")) { + page("s${first}-${last}", ($last-$first)+1); + } else { + $exists = false; + for ($i=$first; $i<=$last; $i++) { + $exists |= file_exists("Page${i}.pdf"); + } + if ($exists) { + for ($i=$first; $i<=$last; $i++) { + page($i); + } + } else { + return false; + } + } + return true; +} + +?> + + + + North Star issue <?php echo basename(dirname(__FILE__)) ?> + + + + + + +
+ + + + + + +
+ + -- cgit v1.2.3