Jump to content

Giriş Panelli Proje Hakkında


prototype
 Share

Recommended Posts

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 by prototype
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.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...