Commit 56fe0065e0
Unsigned
Layout: unified · split
index.php +7 −7
| @@ -6,7 +6,7 @@ $elements = explode('/', $path); | ||
| 6 | 6 | |
| 7 | 7 | if (empty($elements[0])) { |
| 8 | 8 | $html_output = get_stories( |
| 9 | 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=30&orderBy="$key"', | |
| 9 | 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=10&orderBy="$key"', | |
| 10 | 10 | 'Top' |
| 11 | 11 | ); |
| 12 | 12 | echo_html( |
| @@ -19,7 +19,7 @@ if (empty($elements[0])) { | ||
| 19 | 19 | switch (array_shift($elements)) { |
| 20 | 20 | case 'top': |
| 21 | 21 | $html_output = get_stories( |
| 22 | 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=30&orderBy="$key"', | |
| 22 | 'https://hacker-news.firebaseio.com/v0/topstories.json?limitToFirst=10&orderBy="$key"', | |
| 23 | 23 | 'Top' |
| 24 | 24 | ); |
| 25 | 25 | echo_html( |
| @@ -32,7 +32,7 @@ if (empty($elements[0])) { | ||
| 32 | 32 | |
| 33 | 33 | case 'best': |
| 34 | 34 | $html_output = get_stories( |
| 35 | 'https://hacker-news.firebaseio.com/v0/beststories.json?limitToFirst=30&orderBy="$key"', | |
| 35 | 'https://hacker-news.firebaseio.com/v0/beststories.json?limitToFirst=10&orderBy="$key"', | |
| 36 | 36 | 'Best' |
| 37 | 37 | ); |
| 38 | 38 | echo_html( |
| @@ -45,7 +45,7 @@ if (empty($elements[0])) { | ||
| 45 | 45 | |
| 46 | 46 | case 'new': |
| 47 | 47 | $html_output = get_stories( |
| 48 | 'https://hacker-news.firebaseio.com/v0/newstories.json?limitToFirst=30&orderBy="$key"', | |
| 48 | 'https://hacker-news.firebaseio.com/v0/newstories.json?limitToFirst=10&orderBy="$key"', | |
| 49 | 49 | 'New' |
| 50 | 50 | ); |
| 51 | 51 | echo_html( |
| @@ -58,7 +58,7 @@ if (empty($elements[0])) { | ||
| 58 | 58 | |
| 59 | 59 | case 'ask': |
| 60 | 60 | $html_output = get_stories( |
| 61 | 'https://hacker-news.firebaseio.com/v0/askstories.json?limitToFirst=30&orderBy="$key"', | |
| 61 | 'https://hacker-news.firebaseio.com/v0/askstories.json?limitToFirst=10&orderBy="$key"', | |
| 62 | 62 | 'Ask' |
| 63 | 63 | ); |
| 64 | 64 | echo_html( |
| @@ -71,7 +71,7 @@ if (empty($elements[0])) { | ||
| 71 | 71 | |
| 72 | 72 | case 'show': |
| 73 | 73 | $html_output = get_stories( |
| 74 | 'https://hacker-news.firebaseio.com/v0/showstories.json?limitToFirst=30&orderBy="$key"', | |
| 74 | 'https://hacker-news.firebaseio.com/v0/showstories.json?limitToFirst=10&orderBy="$key"', | |
| 75 | 75 | 'Show' |
| 76 | 76 | ); |
| 77 | 77 | echo_html( |
| @@ -84,7 +84,7 @@ if (empty($elements[0])) { | ||
| 84 | 84 | |
| 85 | 85 | case 'job': |
| 86 | 86 | $html_output = get_stories( |
| 87 | 'https://hacker-news.firebaseio.com/v0/jobstories.json?limitToFirst=30&orderBy="$key"', | |
| 87 | 'https://hacker-news.firebaseio.com/v0/jobstories.json?limitToFirst=10&orderBy="$key"', | |
| 88 | 88 | 'Job' |
| 89 | 89 | ); |
| 90 | 90 | echo_html( |