$query_auth"; $result_auth = @mysql_query($query_auth); $row = @mysql_fetch_array($result_auth); if(isset($row["id"])) { $d = date("Y-m-d G-i-s"); $query="UPDATE uczestnicy SET ostatnie_logowanie = '$d' WHERE id = " .$row["id"]; @mysql_query($query); $_SESSION['user']['id'] = $row["id"]; $_SESSION['user']['login'] = $row["email"]; $_SESSION['user']['name'] = $row["nazwisko"] ." " .$row["imie"]; $_SESSION['user']['last_login'] = $row["ostatnie_logowanie"]; $_SESSION['login'] = 1; $page = "show_user"; } else $login_error = true; } } if(isset($_GET["code"]) and isset($_GET["id"])) { $id = $_GET["id"]; $query = "SELECT * FROM uczestnicy WHERE id = $id"; // echo "
$query
"; $result = @mysql_query($query); $row = @mysql_fetch_array($result); if($_GET["code"] == md5($id)) { $d = date("Y-m-d G-i-s"); $query1 = "UPDATE uczestnicy SET data_aktywacji = '$d' WHERE id = $id"; // echo "
$query1
"; if(@mysql_query($query1)) { $comment = "

" .$account_activate["aktywowano"][$lang] ."

"; $query2 = "UPDATE uczestnicy SET ostatnie_logowanie = '$d' WHERE id = $id"; // echo "
$query2
"; @mysql_query($query2); $_SESSION['user']['id'] = $row["id"]; $_SESSION['user']['login'] = $row["email"]; $_SESSION['user']['name'] = $row["nazwisko"] ." " .$row["imie"]; $_SESSION['user']['last_login'] = $row["ostatnie_logowanie"]; $_SESSION['login'] = 1; $page = "show_user"; } } } if(isset($_GET['logout'])) { $_SESSION = array(); session_destroy(); echo ""; } ?>
 
menu $query"; $result = @mysql_query($query); while($row = @mysql_fetch_array($result)) { echo ""; } ?>
"; $c = get_count_submenu_items($row["id"], $lang); if($c > 0) { echo "\"menu\" " .strtoupper($row["name_show"]) .""; echo "
"; $query1 = "SELECT * FROM menu_$lang WHERE parent_id = " .$row["id"] ." ORDER BY priority"; $result1 = @mysql_query($query1); while($row1 = @mysql_fetch_array($result1)) { echo "" .$row1["name_show"] .""; echo "
"; } echo "
"; } else { echo "\"menu\" " .strtoupper($row["name_show"]) .""; } echo "
"><? echo strtolower($menu[" width="32" height="26" border="0" /> "> menu menu
XLII Zjazd Psychiatrów Polskich
© 2006-2007 Medforum ">">