Saturday, June 23, 2007

Another Post, more coding!

Hello everyone! I'm here again with another post, one that'll hopefully turn out to be longer than the last one :)

Anyway, this one will go a bit into the programming of the system for ProudOf.net. I'll talk a little about what I've done so far as well as describe some of it, but nothing about what's to come right now (muahaha).

I'm proud to say that I believe I just finished up the registration and login/logout systems on the site. I have tested them quite a bit and messed around with them, and they're finally done. I'll talk first about the registration, then login, and finally the logout, which is pretty short (and not done yet at the time I'm writing this paragraph, but will be done by the time I finish this post).

(Oh, by the way, I just finished the logout stuff)

Ok, the registration. First it checks if you are logged in via cookies. If you are, it returns an error. The way I've set up these classes is something I will leave for the next or another post. Anyway, if you're not logged in then it spits out the form, including a CAPTCHA image :) for added security. Once you fill out all of the fields and hit the button, it sends the data.

It then checks to make sure you filled out everything, and then it checks that your passwords match, the CAPTCHA code entered was right, and that your name and e-mail are unique. Finally, it stores your information into the database and sends the validation e-mail (yes, I made e-mail validation).

In the e-mail, you are given a link to click on that will validate your account. On the validation page, it checks to make sure that your validation code is correct and also that the account you are trying to validate needs to be validated. After checking all that, it updates a bit of information about your account and flings you to the login page.

With that, we're at the login area! First it checks if you're logged in, just like the registration page, and then prints out the form. Once you submit the information it makes sure you filled out everything and then checks to make sure the information you submitted is right. Finally it sets your cookies and sends you to the main page.

Now there's really a lot more to those two classes but most of it has to do with security stuff that I don't want to give out :)

Finally, the logout class. There's really not much to this one. Basically, it makes sure you are logged in and then kills your cookies. Finally, it sends you to the main page.

So far, I've been making progress on the system. With those classes done, I can expand to more advanced things.

(Ok, so I lied, I'm going to tell you a bit about what is up next)

Next on my list is probably the administration system, so that I can be in control of the content without having to edit source files. After that I'll start on the user system. I've got quite a bit of work ahead of me, and I'll be sure to keep you all posted :)

Until next time.

2 comments:

Anonymous said...

Hrm nice blog, I knew you where smarter than you lead me to believe but be warned I am to, may I ask where you got Kirby?

Bryan said...

Kirby... I don't really know. I've had my e-mail address for a while (superkirby) so it's probably from there.

I really can't remember when it was that I decided to use the Kirby thing.

Nowadays I use Trialga or some variant (or Bryan) mostly on forums.