wJack Posted December 30, 2011 Share Posted December 30, 2011 Merhaba değerli TNC-TR.com üyeleri. Ben şu çalışmayı istiyorum; [color="#FF0000"]Kullanıcı Adı: Şifre: Giriş Yap | Şifremi unuttum[/color] Yardımcı olursanız sevinirim. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted December 30, 2011 Share Posted December 30, 2011 Bir şey anlamadım programda site açılsın ve programdan giriyim mi diyorsun ? Quote Link to comment Share on other sites More sharing options...
wJack Posted December 30, 2011 Author Share Posted December 30, 2011 [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. Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 30, 2011 Share Posted December 30, 2011 (edited) Formda arasana öyle bir çalışma zaten var [quote]http://www.mediafire.com/?3dcim2adsi2pz8h[/quote] Edited December 30, 2011 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
Bitmap Posted December 30, 2011 Share Posted December 30, 2011 (edited) 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 December 30, 2011 by Kazım Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 30, 2011 Share Posted December 30, 2011 Ya anlamadım ama giriş adı ve şifresini de siteden alabilirsiniz. Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 30, 2011 Share Posted December 30, 2011 [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] Quote Link to comment Share on other sites More sharing options...
wJack Posted December 30, 2011 Author Share Posted December 30, 2011 Ya öyle değil, smf forumu için olacak Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 30, 2011 Share Posted December 30, 2011 [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 [attachment=711:ReaLyMaN- Hosttan Kullanıcı Doğrula.rar][/color][/center] Quote Link to comment Share on other sites More sharing options...
wJack Posted December 30, 2011 Author Share Posted December 30, 2011 Bakın ben başka php felan istemiyorum diyorumki SMF! FORUM. Quote Link to comment Share on other sites More sharing options...
NotToday Posted December 30, 2011 Share Posted December 30, 2011 [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] Quote Link to comment Share on other sites More sharing options...
pilgetir Posted December 30, 2011 Share Posted December 30, 2011 Amacın ne yani programdan giriş yapacaksında ne olacak ReaLyMan sana çözüm sunmuş tutup direk hazır veremez ya sana armut piş ağzıma düş yok. 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.