[Help] Problem with adding MD5

Damian

Team Member
Joined
Jun 12, 2008
Messages
614
Reaction score
576
Здравейте всички.Работих доста време по този сайт (модифициран muweb 8 Цък и сега искам да добавя md5 към скриптовете за да работи на всички версии но нещо не се получава.Когато използвам опцийте постоянно ми излиза че е грешна паролата.Това е кода за проверката на паролата

PHP:
$loginid = stripslashes($_POST['username']);
$oldpwd = stripslashes($_POST['password']);

if ((eregi("[^a-zA-Z0-9_-]", $oldpwd)) || (eregi("[^a-zA-Z0-9_-]", $login))) 
 {
 echo("SQL Injection Detected");
        exit();
 }

if($muweb['md5'] == 0){
$sql_pw_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$oldpwd' and memb___id='$loginid'"); 

}
 elseif($muweb['md5'] == 1){
                $sql_pw_check = mssql_query("SELECT * FROM   dbo.MEMB_INFO WHERE  memb___id ='$loginid' AND   memb__pwd = [dbo].[fn_md5]('$oldpwd','$loginid')"); 
				  
				}
 $pw_check = mssql_num_rows($sql_pw_check); 

  if ($pw_check <= 0){$error=1;
                                         show_error("$warning_start The password ,which you entered is incorrect! $warning_end");
                                                           }
Ако някой знае защо се бъгва моля да ми обясни.
 

masterhack

New Member
Joined
Jul 17, 2008
Messages
30
Reaction score
4
пробвай с Mu web 0.9 ili 1.0 щото 0.8 си е бугнато :)
 

Damian

Team Member
Joined
Jun 12, 2008
Messages
614
Reaction score
576
Айде бе тия които разбират от php да погледнат за малко
 

parsy

New Member
Joined
Apr 9, 2008
Messages
351
Reaction score
152
Има и 1 ДЛЛ което трябва да сложиш в SQL-a както и Join Server-a да е MD5 !!!
 

EviL_Freak

New Member
Joined
Jul 22, 2008
Messages
95
Reaction score
6
Сайта го пробвахме на моя комп с дамян muweb 9 бачка бес проблем пък тоя неще....
 
Thread starter Similar threads Forum Replies Date
DaRkiv [Help] Having problems adding my Domain name to my MuWeb Help 1
G [Help] Elf Attack problem Help 4
H [Help] Problem with Muonlinewebs 2.2.0 Help 0
P [Help] Problems items muserver 1.0m Beta 13 Help 2
A [Help] BUY ITEMS FROM WEBSHOP PROBLEM Help 6
N [Help] Silver, Gold Medal, Heart of love + Box of Kundum +1....+5 Items problem 97d+99i Darks Team server Help 0
S [Help] CC & /vault problems 1.0m Help 3
LasTCursE [Help] WorldEditor/Game Object problem Help 3
E [Help] Problems with website Help 25
K [Help] Kundun drop problem DarksTeam 97d+99 files.. Help 2
K [Help] MMC.exe Enterprise Manager problem.. Help 2
ChanhEp [Help] Some Problem with 0.99.60/62T Help 1
P [Help] MuCore 1.0.8 mssql problems Help 0
X [Help] 97d 99i ItemDropRate problem Help 1
T [Help] Web site problem Help 3
P [Help] 97d99i Language problem Help 3
DemonuMu [Help] Problems with Guild from muweb Help 2
L [Help] SQL 2008 R2 problem Help 0
A [Help] ConnectServer Problem Help 6
A [Help] Reset problem Help 10
samhaiminh [Help] Problem with dame dw 99.60 Help 0
silviosing [Help] Problem with login Help 3
ivowe3 [Help] Problem with client Help 3
DemonuMu [Help] Some problems with 97d Help 9
M [Help] Shop item problem Help 1
DemonuMu [Help] Problem with xampp Help 10
S [Help] S4 Problems Help 0
Z [Help] Problem with Windows mode client Help 1
A [Help] Box of kundun drop problem Help 1
O [Help] Problems with d/c Help 0
LasTCursE [Help] Connection Problems Help 1
M [Help] Stone and Rena Exchange problem Help 1
G [Help] Problems with Launcher and client Server Files 97d Help 3
DemonuMu [Help] InspiredWeb 0.1 Beta 1 Problem Help 15
Menelay [Help] 97d99i Shops Edit Problem Help 9
MorgaN [Help] Dataserver.exe has encountered a problem Help 0
Opium [Help] Invisibility Cloak Problem Help 0
Opium [Help] Quest System Items Problem and NPC shop Help 0
D [Help] Trade problems in server Help 0
barbatocu [Help] MuOnline connection problem Help 3
barbatocu [Help] 97d99i Blood Castle problem Help 0
A [Help] Eventitemsbag drop problem Help 4
knif3r [Help] Cash Shop Problem Help 6
H [Help] Problem with MuCore 1.0.8 Help 0
Wikko0 [Help] Hook Problem Help 7
SharkY971 [Help] Sqlserver problem Help 10
D [Help] ODBC Problem Help 1
Borka7aQ [Help] Editing Item.bmd Problem Help 0
Borka7aQ [Help] SQL Server 2005 Problem Help 1
Wolverine [Help] DarksTeam 97d beta 25 Hasty Problem Help 3

Similar threads