Jump to content
php.lv forumi

md5


xmas12

Recommended Posts

Sveiki, varbuut kāds var palīdzēt uzlikt md5 šitiem script ? Es salieku bet viniem neko neraada, logojoties rad kad dati nav pareizi! Un reģistrēties arī vairs nevar kad ir uzlikts md5 . Lūdzu palīdzat :

 

Register.php : http://paste.php.lv/535691a9e9619f7dbb3a2dc0c80c0fe6?lang=php

 

Login.php : http://paste.php.lv/94eda4988d31ab371bd47c370f7c275a?lang=php

Link to comment
Share on other sites

kad inserto paroli, vispirms tabulā vajag lauku: Parole binary(32) NOT NULL

pēc tam reģistrējoties pašā sql INSERT raksta: "'" . md5($_POST['parole']) . "'"

kad salīdzina login paroli ar db paroli tad arī atceras par md5(): md5($_POST['parole']) == $parole_no_db_ar_md5

Link to comment
Share on other sites

login kaut ka ta http://paste.php.lv/a3b68ecec914a329618b7cd5fefb9e33?lang=php , register

$password = md5($_POST["password"]);

..

$query = "INSERT INTO tb_users (username, password, ip, email, referer, country, joindate) VALUES('$username','$password','$laip','$email','$referer','$country','$joindate')";

ne? :D

 

EDIT: db neaizmirsti ka parole md5 32 simb gara

Edited by edi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...