2012-12-14 15:23:38 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
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" />
|
2014-12-19 16:38:53 +00:00
|
|
|
<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>
|
2015-10-20 07:19:29 +00:00
|
|
|
<!--
|
2012-12-14 15:23:38 +00:00
|
|
|
<div class="top"><small>Write a review for FileBot at <a href="https://sourceforge.net/projects/filebot/reviews/?sort=usefulness#review-form">SourceForge.net</a></small></div>
|
2015-10-20 07:19:29 +00:00
|
|
|
-->
|
2012-12-14 15:23:38 +00:00
|
|
|
<?
|
|
|
|
// 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>
|