22 lines
377 B
PHP
22 lines
377 B
PHP
<?php
|
|
/**
|
|
* My home page
|
|
*/
|
|
|
|
$page = __DIR__."/home.txt";
|
|
|
|
if(isset($_GET["page"]))
|
|
$page = $_GET["page"];
|
|
|
|
?>
|
|
|
|
<pre>
|
|
<?php echo file_get_contents($page); ?>
|
|
</pre>
|
|
|
|
Browse my website:
|
|
<ul>
|
|
<li><a href="index.php?page=home.txt">home</a></li>
|
|
<li><a href="index.php?page=about.txt">about</a></li>
|
|
<li><a href="index.php?page=privacy.txt">privacy</a></li>
|
|
</ul>
|