Example #1
0
<!DOCTYPE html>
<html lang="en">
	<head>
	    <meta charset="utf-8">  
	    <title>The Journal.ie</title>
	    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
	</head>
	<body class="bg-primary">
		<div class="container">
			<?php 
require_once 'classes/River.php';
$url_parts = preg_split('/\\//', $_SERVER['REQUEST_URI'], NULL, PREG_SPLIT_NO_EMPTY);
$last_part_of_url = end($url_parts);
$success = River::printRiver($last_part_of_url);
if (FALSE === $success) {
    echo 'Too many requests. If this page does not refresh automatically in 5 seconds please refresh your browser...';
    echo '<meta http-equiv="refresh" content="5">';
}
?>
		</div>
	</body>
</html>