Make your own FTP Register/login feature
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
zachman61 wrote:whats the problem?
When i click Register entering a username & password and clicking OK,
But when i clicked i get this:
Code: Select all
'96.9.158.165/usr.txt' is not a valid remote file address. A valid address should include a protocol, a path and a file name. Parameter name: address
Code:
Code: Select all
Public Class Form3
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
My.Computer.Network.DownloadFile("ftp://server47.000webhost.com/public_html/" + TextBox1.Text + ".txt", "C:\" + TextBox1.Text + ".txt", "heremyusername", "heremypassword")
Dim auth As String = My.Computer.FileSystem.ReadAllText("C:\" + TextBox1.Text + ".txt")
If auth = TextBox2.Text Then
MsgBox("Congrats! You have Access")
Else
MsgBox("You have entered a wrong password!")
End If
Catch ex As System.Net.WebException
MsgBox("That Username does not exist!")
End Try
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim usr As String = InputBox("Please enter a username", "Username")
Dim psw As String = InputBox("Please enter a password", "Password")
My.Computer.FileSystem.WriteAllText("C:\" + usr + ".txt", psw, False)
My.Computer.Network.UploadFile("C:\" + "usr" + ".txt", "96.9.158.165/" + "usr" + ".txt", _
"heremyusername", "heremypassword")
My.Computer.FileSystem.DeleteFile("C:\" + "usr" + ".txt")
MsgBox("Registration Complete")
End Sub
End Class
I get a error/warning thing when I press Ok on the password part of the registration, it will stop it and highlight a part of code.
astheyfall wrote:I get a error/warning thing when I press Ok on the password part of the registration, it will stop it and highlight a part of code.
Code: Select all
Access to the path 'C:\33.txt' is denied.
Can someone help?
No need to double post as there's a button called "Edit"
I'll post verified tutorial tonight, and stop "not hating" or what ever you are doing, it is transmitted disease that bad mood :/
Here is a new working version for those who still want it:
FTP Login: CnS Login: IP Login:
viewtopic.php?f=71&p=27233#p27233
MAC address Login:
viewtopic.php?p=53498#p53498
-RunarM
FTP Login: CnS Login: IP Login:
viewtopic.php?f=71&p=27233#p27233
MAC address Login:
viewtopic.php?p=53498#p53498
-RunarM
You do not have the required permissions to view the files attached to this post.
Last edited by RunarM on Sat Sep 17, 2011 9:55 pm, edited 1 time in total.
Just another day in my life.
http://www.codexvideos.com
http://www.codexvideos.com
M1z23R wrote: RunarM :I made the MAC address register/login feature: (Thanks to Codex for helping me fix bugs)
insted of using "IP Register/Login" you should use "MAC ADDRESS Register/Login" it is unchangeble
-RunarM
You do not have the required permissions to view the files attached to this post.
Last edited by RunarM on Sat Sep 17, 2011 9:54 pm, edited 1 time in total.
Just another day in my life.
http://www.codexvideos.com
http://www.codexvideos.com
Copyright Information
Copyright © Codenstuff.com 2020 - 2023