Login ne radi

Skinia sam ovu skriptu
http://www.frech.ch/online-bookmarks/

Sve lijepo instalirao.

Na početnoj se nalazi login: kada se ova skripta instalira, u bazi se automatski doda admin,admin. I ja se idem prijavit s tim podacima i uspije

No, kad sam se išao registrirat kao običan user, upišem podatke, stisnem prijavi, skripta mi ne uđe nego me ostavi na početnoj

Koliko sam ja na prvi pogled skužio, potrebno je aktivirati account…

$message .= “included in this email. To activate your account, visit the following URL:\r\n\r\n”;

[quote=“iGoG”]Koliko sam ja na prvi pogled skužio, potrebno je aktivirati account…

$message .= “included in this email. To activate your account, visit the following URL:\r\n\r\n”;[/quote]

aktivirao sam

		if (mysql_query ("$query")) {
			# dieser key wird als username und secret md5 hash an den
			# user geschickt und für die verifikation der registrierung gebraucht.
			$key = md5 ($username . $secret);

			$headers = "From: info@pagebooking.com" .
			$subject = 'Your registration at PageBooking.com';
			$message  = "Hi $username,\r\n\r\n";
			$message .= "This email confirms the creation of your PageBooking user account. ";
			$message .= "Your username is '$username'. For security reasons your password is not ";
			$message .= "included in this email. To activate your account, visit the following URL:\r\n\r\n";
			$message .= "http://pagebooking.com/register.php?confirm=$key\r\n\r\n";
			$message .= "In case of complications regarding this user account registration, ";
			$message .= "please contact info@pagebooking.com";
			$message .= "With kind regards, your PageBooking.com.com Team";

			mail($email, $subject, $message, $headers);

			echo "  you have been successfully registered.
				Read your email and click the link to activate your account.";
		}
		else {
			echo mysql_error ();
		}

Dodaj atribut active u tablicu user, ja ga ne vidim… stavi default nulu pa kad netko aktivira account prebacit će na 1.

http://slike.hr/slike/a/agrfhtj_7b4cc.png

Koliko vidim nisi stavio default 0.

evo kako to u bazi izgleda

http://slike.hr/slike/b/baza_b2292.gif

[quote=“Josip Balić”]evo kako to u bazi izgleda

http://slike.hr/slike/b/baza_b2292.gif
[/quote]

Stavi tu komplet kod fajla u kojem se odvija registracija i komplet kod od logina fajla.


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja