This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Sample</title> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
<h1>What's new?</h1><?php |
| 7 |
require('main.php'); |
| 8 |
|
| 9 |
$filters = array(); |
| 10 |
$filter_keys = array('tag', 'feed'); |
| 11 |
foreach ($filter_keys as $key) { |
| 12 |
if (isset($_GET[$key]) && $_GET[$key]) { |
| 13 |
$filters[$key] = $_GET[$key]; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
$max = isset($_GET['max']) && is_numeric($_GET['max']) ? $_GET['max'] : 20; |
| 18 |
echo get_entries($filters, $max); ?> |
| 19 |
|
| 20 |
</body> |
| 21 |
</html> |