loop/ring_index.php

30 lines
496 B
PHP

<?php include('ring.php'); ?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title>tildeverse webloop demo page</title>
</head>
<body>
<div>
<h1>Webring Index</h1>
<ol>
<?php
$index = array_keys( $web_ring );
for( $i = 0; $i < $ring_size; $i++ ) {
print "\n <li>".'<a href="'.$web_ring[$index[$i]].'">'.$index[$i].'</a></li>';
}
?>
</ol>
</div>
</body>
</html>