filebot/website/reviews.php
2015-10-20 07:19:29 +00:00

38 lines
1.1 KiB
PHP

<html>
<head>
<title>FileBot Reviews</title>
<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'>
</head>
<body>
<!--
<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>
-->
<?
// 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>