Jump to content

Smf Login Programı


wJack
 Share

Recommended Posts

[quote name='pilgetir' date='30 December 2011 - 15:03 ' timestamp='1325250182' post='1133786']
Bir şey anlamadım programda site açılsın ve programdan giriyim mi diyorsun ?
[/quote]
Yok hayır. Programdan kısa örnek vereyim:
1 Inputbox var ve Kullanıcı adı Inputbox'u
1 Inputbox daha var ve Şifre Inputboxu
aşşağısında ise Button var ve giriş buttonu
Giriş'e basıtığında eğer giriş yaparsa Başarılı giriş yaptınız, yapamazsa Şifreniz hatalı diye Dialog. açılsın.

Link to comment
Share on other sites

giriş yapıcakta.. şöyle bir şey var..

giriş yapıca bilgisayara cookie atar site.. bu cookie senin giriş yaptığını gösterir..

eğer programda giriş yaparsa cookie atamadığı için. tarayıcı ile açtığında giriş yapmamış görünecek..

loginin sunulduğu sayfada http.submit ile yapabilirsin..

Edited by Kazım
Link to comment
Share on other sites

[color="#000000"]Ben genelde hosttan doğrula için bunu kullanıyorum

Giriş için :

[spoiler][quote]-- Retrieve Username and Password
sUsername = Input.GetText("Input_Username");
sPassword = Input.GetText("Input_Password");

-- Convert user/pass combo to MD5 digests
sUsernameMD5 = Crypto.MD5DigestFromString(sUsername);
sPasswordMD5 = Crypto.MD5DigestFromString(sPassword);

-- Initialize variables for submit action
sCheckScriptURL = "http://siteniz.com/Kullanici.php";
tValuesToPass = {username_md5 = sUsernameMD5, password_md5 = sPasswordMD5};
nSubmitMethod = SUBMITWEB_POST;
nTimeout = 20;
nPort = 80;
tAuthData = nil;
tProxyData = nil;

-- Submit to the web
sResult = HTTP.Submit(sCheckScriptURL, tValuesToPass, nSubmitMethod, nTimeout, nPort, tAuthData, tProxyData);

-- Check the result ('1' is success)
if sResult == "1" then
-- The user is authenticated
Page.Jump("Page2");
else
-- The user is not authenticated.
Dialog.Message("Hata", "Kullanıcı Adı ve Şifre Geçersiz.", MB_OK, MB_ICONSTOP);
end[/quote][/spoiler]


php dosyasını kullanıcı.php yap kaydet.
[spoiler][quote]
<?

// Returns '1' if valid, or '0' if invalid


// Initialize user table
// Add entries to this table in the form "USER"=>"Password"
// All entries (except the last one) must be finished with a ','.
$user_table = array(
"ReaLyMaN"=>"Tnctr.com",
"Jane Smith"=>"Firetruck"
);

// Check if data was posted to script
if ($_POST)
{
// Loop through table
foreach($user_table as $username=>$password)
{
// Check if md5's of user/pass match passed values
if (($_POST['username_md5'] == md5($username)) AND ($_POST['password_md5'] == md5($password)))
{
// The user/pass combo matched
echo '1';
exit;
}
}
// The user/pass combox did not match
echo '0';
exit;
}

else
{
// Output message if nothing is posted (eg. if script is loaded into a web-browser)
echo "No post data found.";
}

?>

[/quote][/spoiler][/color]

Link to comment
Share on other sites

[center][color="#000000"]Bak sen bunu indir hostuna at.Giriş butonundan da siteniz kısmına site ismini yaz.
Kullanıcı kısmına : ReaLyMaN
Şifre kısmına : tnctr.com yaz bir dene.Bir de yanlış yaz dene.Bunun işini göreceğini sanıyorum.Sadece diret hosta at dene yeterli :D


[attachment=711:ReaLyMaN- Hosttan Kullanıcı Doğrula.rar][/color][/center]

Link to comment
Share on other sites

[center][color="#000000"]Burda siparişle kod veya proje hazırlamıyoruz. [b]Elinde kod demeti olmadığı halde yardım ediyoruz[/b] ve uslubunuza bakın.Ben sadece size örnek hazırladım.İsterseniz nasıl yaparsınız bilmem ama kendinize HTTP.Submit ile istediğiniz gibi birşey uapın.[/color][/center]

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...