17.11.2012, 14:48
hy guys, My friend sended me UCP, and i was translating him to my gamemode and tabels, and i vas translated register, but when i wonna to login just say to password not correct, i thing i fuck up somthing so here is code:
PASSWORD IS=Lozinka
PASSWORD IS=Lozinka
Код:
if (isset($_POST['Login'])) { $nimi = $db->Escape($_POST['Nick']); $parool = $db->Escape($_POST['Lozinka']); $_POST['Nick'] = strip_html_tags(addslashes($_POST['Nick'])); $_POST['Lozinka'] = strip_html_tags(addslashes($_POST['Lozinka'])); $userid = new UserControl(); if ($userid->check_user($_POST['Nick'],$_POST['Lozinka']) != 0)
Код:
if(md5($parool) != $test->Lozinka) { echo ' <div class="i-box e-box" style="text-shadow: none; position: absolute; margin-left: 691px; margin-top: -660px; width: 195px;"> Wrong Password! </div>'; }