}
$title = $lang['optfrm_title'];
include "testa.php";
require 'lib/user_panel.php';
include_once 'lib/bbcode_parser.php';
if (!$_SESSION[$SNAME]['sess_auth']) {
    $url = "login.php";
    echo "<tr><td><center>" . $lang['sign_login'] . "<br>";
    echo "" . $lang['reply_loginred'] . "</center></td></tr><script language=\"javascript\">setTimeout('delayer()', 1500);\nfunction delayer(){ window.location='{$url}';}</script>";
    include "end.php";
    exit(0);
}
//AQUISIZIONE DATI
$mem_id = $_GET['MEM_ID'];
$mem_hash = pack('H*', $mem_id);
list($user_hash, $user_id) = get_my_info($SNAME);
if (!$mem_id) {
    $mem_id = $user_id;
}
$verify = $user_id == $mem_id ? 1 : 0;
//POSTBACK PAGE
if ($_POST['MEM_ID']) {
    $is_post_back = 1;
    if (!$verify) {
        echo '<tr><td>
		<table cellspacing="0" width="100%">
		<tr>
		<td valign="top" class="nopad" width="24%">' . show_menu() . '</td>
		<td class="nopad" width="1%"><!-- --></td>
		<!-- Start main CP area -->
		<td valign="top" class="nopad" width="75%">
Beispiel #2
0
function WhoIsMe()
{
    global $SNAME, $db;
    list($user_hash, $user_id) = get_my_info($SNAME);
    $user_hash = mysql_real_escape_string($user_hash);
    $query = "SELECT *\r\n\t\t\tFROM {$SNAME}_membri where hash = '{$user_hash}'\r\n\t\t\tLIMIT 1";
    $Iam = $db->get_row($query);
    return $Iam;
}