Kode: Vælg alt
<?php
include 'widgets/core/intit.php';
include 'widgets/head.html';
?>
<body>
<div id="holder">
<?php
include 'widgets/menu.php';
?>
<div id="indhold">
<?php
if (logged_in() === true) {
?>
<?php
include 'widgets/kontrol.php';
?>
<?php
if (isset($_GET['username']) === true && empty($_GET['username']) === false) {
if (user_exists($username) === true) {
$user_id = user_id_from_username($username);
$profile_data = user_data($user_id, 'first_name', 'last_name', 'email');
?>
<?php
} else {
echo 'Den bruger findes ikke!.';
}
} else {
header("Location: index.php");
exit();
}
?>
<?php } else { ?>
<?php
include 'widgets/indhold.php';
}
?>