@include ("admin/includes/mysql.inc.php"); @include ("includes/session.inc.php"); if(!empty($_GET['uid']) && !empty($_GET['key'])) { $z=@mysql_query("SELECT * FROM `bs_users` WHERE `id`='".$_GET['uid']."' && `stamp`='".$_GET['key']."' LIMIT 1; ") or die(mysql_error()); if (@mysql_num_rows($z)) { @mysql_query ("UPDATE bs_users SET `active`=1 WHERE id='".$_GET['uid']."';"); $_SESSION["ok"]="
Konto zostało aktywowane.
"; } else $_SESSION["error"]="Konto nie istnieje lub jest już aktywne.
"; header ("location: /login"); } ?>