topical media & game development
basic-php-16-header.php / php
<?php
session_start();
require_once 'config.php';
admin['titlebar']['value'];
if (isset(pageTitle != "") {
pageTitle;
}
if (isset(userid = userid = null;
}
if (isset(access_lvl = access_lvl = null;
}
if (isset(username = username = null;
}
?>
<html>
<head>
<title><?php echo _GET['keywords'])) {
echo ' value="' . htmlspecialchars(admin['title']['value']; ?></h1>
<div id="login">
<?php
if (isset(_SESSION['name'];
}
?>
</div>
<p id="subtitle"><?php echo _SESSION['user_id'])) {
echo ' | <a href=<login.php>>Log In</a>';
echo ' | <a href=<useraccount.php>>Register</a>';
} else {
echo ' | <a href="transact-user.php?action=Logout">';
echo "Log out " . _SESSION['access_lvl'] > 2) {
echo ' | <a href=<admin.php>>Admin</a>';
}
echo ' | <a href=<useraccount.php>>Profile</a>';
}
?>
</div>
</div>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.