prototype Posted January 5, 2012 Share Posted January 5, 2012 (edited) Arkadaşlar bir proje üstünde çalışıyorum ve bu projemde giriş paneli olacak. Giriş paneli ini dosyası üzerinden yapıyorum gayet güzel oldu ve çalışıyor ancak yanlış id şifre veya olmayan bir üyelikten giriş yapıldığında hata verdiremedim umarım yardımcı olabilirsiniz teşekkürler.. Projemde Kullanılan Kodlar; [b]Global Function[/b] [code] anahtar = "3j2*f932hf^'R'!%$#£½$#£" -- benzersiz anahtar [/code] [b]Page Onshow[/b] [code] Page.SetFocus("id") [/code] [b]Giriş Butonu[/b] [code] -- tanımlamalar kullanici = Input.GetText("id"); parola = Input.GetText("pass"); tSections = INIFile.GetSectionNames("Data\\Database\\database.ini") for i in pairs(tSections) do sKullanici = INIFile.GetValue("Data\\Database\\database.ini", tSections[i], "user") sParola = INIFile.GetValue("Data\\Database\\database.ini", tSections[i], "pass") cKullanici = Crypto.BlowfishDecryptString(sKullanici, anahtar) cParola = Crypto.BlowfishDecryptString(sParola, anahtar) if cKullanici == kullanici and cParola == parola then Page.Jump("user_panel") end end [/code] Edited January 5, 2012 by prototype Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 5, 2012 Share Posted January 5, 2012 (edited) [quote]if cKullanici == kullanici and cParola == parola then Page.Jump("user_panel") [color="#FF0000"]else Mesaj[/color] end end[/quote] Edited January 5, 2012 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.