Ñò 7=Mc @sšddkZddkZdZdZdZy"eidededeƒZWn dZnXd„Zd „Z d „Z e d joe d d ƒGHndS(iÿÿÿÿNtroottguess8t simplebbstusertpasswdtdbcCsDti|ƒ}d}x(|iƒD]}|dt|ƒ7}q"W|S(Nts%02x(thashlibtmd5tdigesttord(tstmtrtc((s ./uclient.pytmd5str s  c CsØtidtdtdtƒ}|iƒ}|id|fƒg}|iƒD] }||qN~}|iƒ|gjo ddgS|dd}|dd }t t |ƒ|ƒ|jo d |gSd dgSd S( s return pair of status/md5RRRs3select * from dzx_ucenter_members where username=%ssuser not existRiiiþÿÿÿs login successswrong passwordN( tMySQLdbtconnectt mysql_usertmysql_pwtmysql_dbtcursortexecutetfetchalltcloseR( RRRRt_[1]txR tr_md5tr_salt((s ./uclient.pytlogins '    cCs–tidtdtdtƒ}|iƒ}|id|fƒg}|iƒD] }||qN~}|iƒ|gjo|dd|jSt SdS(NRRRs3select * from dzx_ucenter_members where username=%sii( RRRRRRRRRtFalse(RRRRRRR ((s ./uclient.pyt check_login%s '  t__main__tobservert3b25e07( RRRRRRRtNoneRRRt__name__(((s ./uclient.pyts  "