The following files exists in this folder. Click to view.
header.php
20 lines ASCII Windows (CRLF)
<?php
include_once(dirname(__FILE__) . "/../ini/ini.php");
include_once(BASE_PATH . "/util/db_connect.php");
include_once(BASE_PATH . "/util/user.php");
?>
<header>
<a href="<?php echo path_to_url(BASE_PATH . "/index.php") ?>">Home</a>
<a href="<?php echo path_to_url(BASE_PATH . "/practice.php") ?>">Practice</a>
<a href="<?php echo path_to_url(BASE_PATH . "/progress.php") ?>">Progress</a>
<a href="<?php echo path_to_url(BASE_PATH . "/add-words.php") ?>">Add Word</a>
<a href="<?php echo path_to_url(BASE_PATH . "/login.php") ?>">Login</a>
<a href="<?php echo path_to_url(BASE_PATH . "/scripts/index.php") ?>">Scripts</a>
<?php if (logged_in()) { ?>
<p style="margin-left:auto;">
<?php echo $_SESSION["userEmail"]; ?>
</p>
<?php } ?>
</header>