filebot/website/reviews.php

36 lines
926 B
PHP
Raw Permalink Normal View History

2012-12-14 15:23:38 +00:00
<html>
<head>
2016-05-26 09:32:43 +00:00
<meta charset="UTF-8" />
2015-10-20 07:19:29 +00:00
<title>FileBot Reviews</title>
2012-12-14 15:23:38 +00:00
<link rel="stylesheet" href="base.css" type="text/css" />
<link href='https://fonts.googleapis.com/css?family=Dawning+of+a+New+Day' rel='stylesheet' type='text/css'>
2012-12-14 15:23:38 +00:00
</head>
<body>
<?
// read file
$filename = "reviews.json";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
// parse Json
$reviews = json_decode($contents);
shuffle($reviews);
foreach ($reviews as $review) {
?>
<div class="review message box" style="float:left">
<div class="thumbs up">
<img src="images/thumbs_up.png" />
</div>
<div>
<p class="head">Posted by <span class="user"><? echo $review->user ?></span> on <span class="date"><? echo $review->date ?></span></p>
<p class="text quote"><? echo $review->text ?></p>
</div>
</div>
<?
}
?>
</body>
</html>