ou need not rely solely upon myself, Lafay, for words about our
glorious empire or the adventures had within. Below you may read the
words of others who roam the Empire and have their own thoughts to
share about its unique offerings and rewards. Should you come to have
your own thoughts to share, please add your voice to the chorus to
tell of your own perceptions that others may hear!
| Reviews by fellow Adventurers |
// read in the reviewers
$d = dir(getPathVar());
//echo "Handle: ".$d->handle."
\n";
//echo "Path: ".$d->path."
\n";
while($entry = $d->read()) {
if(!strstr($entry, 'php') && ($entry[0] != '.') && ($entry[strlen($entry) - 1] != '~')) {
$arr[] = $entry;
}
}
$d->close();
sort($arr);
// build a table
$count = count($arr);
$mod = $count/4;
$z = 0;
for($i = 0; $i < $mod + 1; $i++) {
echo('
');
for($j = 0; $j < 4; $j++) {
if($i % 2 == 0)
echo('| ');
else
echo(' | ');
getSubPage('', 'reviews&reviewer=' . $arr[$z], ucfirst($arr[$z]));
echo(' | ');
$z++;
}
echo('
');
}
?>
if(isset($_GET['reviewer'])) {
$filename = getPathVar() . $_GET['reviewer'];
if(file_exists($filename)) {
echo('
| ' . ucfirst($_GET['reviewer']) . ' | | ');
readfile($filename);
echo(' |
');
}
}
?>