Example #1
0
<link rel="shortcut icon" href="/favicon.ico" />
</head>

<body>
<div id="superframe">
<div id="frame">

<?php 
    echo "<div id=\"mini-header\">\n";
    //
    echo '<div id="logout"><a href="' . $tld . 'user/logout.php"><strong>Logout</strong></a></div>';
    echo '<div id="greeting">Bonjour <strong>' . $username . '</strong>,</div>';
    //menu
    echo "</div>";
    //Vos informations
    if ($myUser->account_not_active($username)) {
        echo '<img src="warning.jpg" width="20" height="20" />Activez votre compte<br /><br />';
    }
    //display the user email
    //===================================================
    $privateemail = "SELECT `email` FROM `{$tprefix}" . "_users` WHERE `user_id` = " . $_SESSION['UserId'];
    //echo $privateemail;
    $result = $db->query($privateemail);
    if ($result) {
        $row = $result->fetch_assoc();
        $email = $row["email"];
        echo '<table class="profile-table"><tr><td colspan="2" class="profile-title">Vos données de contact</td></tr>';
        echo '<tr><td class="profile-label">Email</td><td class="profile-data">' . $email . '</td></tr>';
        echo '</table>';
    }
    //end of user email display