Location: PHPKode > projects > Readenglish > readenglish/menu_vis.php
<table width="100" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" class="borde_menu"> 
  <tr> 
    <?php
	$pos = strrpos($_SERVER['PHP_SELF'],"/");
	if ($pos === false) {
		$file =  $_SERVER['PHP_SELF'];
	} else {
		$file = substr($_SERVER['PHP_SELF'],$pos+1);
	}
	if ($file != "index.php") { ?>
        <td><a href="index.php">Home</a></td>
        <?php } else { ?>
        <td><strong>Home</strong></td>
        <?php } ?>
  </tr> 
  <tr> 
    <?php if ($file != "rules.php") { ?>
        <td><a href="rules.php">Rules</a></td>
        <?php } else { ?>
        <td><strong>Rules</strong></td>
        <?php } ?>
  </tr> 
  <tr> 
    <?php if ($file != "english_readenglish.php"
	  && $file != "english_readenglish_words.php"
	  && $file != "english_readenglish_result.php") { ?>
            <td><a href="english_readenglish.php">English - readenglish</a></td>
            <?php } else { ?>
	    <td><strong>English - readenglish</strong></td>
            <?php } ?>
  </tr> 
  <tr> 
    <?php if ($file != "dictionary.php") { ?>
            <td><a href="dictionary.php">Dictionary</a></td>
            <?php } else { ?>
	    <td><strong>Dictionary</strong></td>
            <?php } ?>
  </tr> 
</table>
Return current item: Readenglish