Page 2 of 2

Re: Make your own FTP Register/login feature

Posted: Tue Jun 29, 2010 3:05 pm
by luckie12
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

Re: Make your own FTP Register/login feature

Posted: Sun Sep 04, 2011 10:30 pm
by astheyfall
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.

Re: Make your own FTP Register/login feature

Posted: Tue Sep 06, 2011 7:00 pm
by rocky4126
luckie12: It has to be ftp://96.9.158.165/usr.txt.

Re: Make your own FTP Register/login feature

Posted: Sat Sep 10, 2011 10:59 am
by astheyfall
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?

Re: Make your own FTP Register/login feature

Posted: Sat Sep 17, 2011 1:18 pm
by Agust1337
No need to double post as there's a button called "Edit"

Re: Make your own FTP Register/login feature

Posted: Sat Sep 17, 2011 1:25 pm
by M1z23R
I'll post verified tutorial tonight, and stop "not hating" or what ever you are doing, it is transmitted disease that bad mood :/

Re: Make your own FTP Register/login feature

Posted: Sat Sep 17, 2011 1:48 pm
by RunarM
Here is a new working version for those who still want it:

FTP Login:
FTP login.zip
CnS Login:
CnS Login.zip
IP Login:
viewtopic.php?f=71&p=27233#p27233

MAC address Login:
viewtopic.php?p=53498#p53498

-RunarM

Re: Make your own FTP Register/login feature

Posted: Sat Sep 17, 2011 9:00 pm
by RunarM
M1z23R wrote:
RunarM :
insted of using "IP Register/Login" you should use "MAC ADDRESS Register/Login" it is unchangeble
I made the MAC address register/login feature:
MAC address login.zip
(Thanks to Codex for helping me fix bugs)

-RunarM