[DEV]UserSystem - [PHP]

Status
Not open for further replies.

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Hi,

Welcome to my development thread, this is just a simple user system to gain more confidence in PHP, and learn more about PHP :).

What I hope to achieve?
  • Simple to use, user system.
  • Get stronger in PHP and learn more.
What will be completed in this?
  • Login
  • Register
  • Homepage
  • User Profiles
  • Messaging systems.
Currently done:

  • Login: 25% (I say this as I plan on changing it and recoding it).
  • Register 50% (Needs a revamp too, was just a quick code up.
Current Snippets(Nothing much, yet!):
PHP:
function secured($var)
{
return mysql_real_escape_string($var);
}

function register($username, $password, $email, $ip)
{
mysql_query( "INSERT INTO `users` (`username`, `password`, `email`, `ip`) VALUES ('".secured($username)."', '".secured($password)."', '".secured($email)."', '".secured($ip)."')" );
}
NOTE: All feedback and criticism is appreciated :).

- Thanks.
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
Err, I'm making one >:l

Oh well, now I can keep my to myself.

Good luck mayn ;)
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906

Beast

Posting Freak
Sep 15, 2011
625
163
This is nothign to do with Habbo my friend, xD.

Gad to see you're already thinking ahead :).

Ohwell, we could maybe help/compare xD.

Any idea when you think this project will be done? :p
 

Macemore

Circumcised pineapples
Aug 26, 2011
1,681
819
This is nothign to do with Habbo my friend, xD.

Gad to see you're already thinking ahead :).

Ohwell, we could maybe help/compare xD.
Flatfile... saves the users into a txt file or something,
instead of sql....
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Any idea when you think this project will be done? :p

Only just starting, and probably going to take a while, as I want to do research at the same time, just reading some of Rev 3.0 to see what I can learn :D.

Flatfile... saves the users into a txt file or something,
instead of sql....
Misunderstood at first, and didn't bother to reply, but nah I find that stupid.
 

Beast

Posting Freak
Sep 15, 2011
625
163
Only just starting, and probably going to take a while, as I want to do research at the same time, just reading some of Rev 3.0 to see what I can learn :D.

Sounds like the outcome will be nice will it have a full site possibly or do we add the system to our site itself?
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
I'd love to help you with anything I can.

If you wish, I can work on this with you and do the GFX :p

And SQL of course, who saves passwords and such in text files?

That's 100% unsecure.
 

Macemore

Circumcised pineapples
Aug 26, 2011
1,681
819
I'd love to help you with anything I can.

If you wish, I can work on this with you and do the GFX :p

And SQL of course, who saves passwords and such in text files?

That's 100% unsecure.
.htaccess?
 

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
Looks nice Craig! But I think you should take it a step further and try out OOP(Object-Oriented PHP) ;) -

And also use things with it like MySQLi - and others.

Good luck anyways :D
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
Looks nice Craig! But I think you should take it a step further and try out OOP(Object-Oriented PHP) ;) -

And also use things with it like MySQLi - and others.

Good luck anyways :D

Couldn't agree more, I prefer MySQLi over MySQL and OOP is good too, but for his first script I think he should try it without OOP and then add it in future updates :p
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Couldn't agree more, I prefer MySQLi over MySQL and OOP is good too, but for his first script I think he should try it without OOP and then add it in future updates :p

This is my first with OOP, which I'm doing now xD.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
First initial design for index, decided to go abit like Facebook, put the register there, but then if they do encounter an error, move us to the register page;

twuwpo.png
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
I like it, good job :]

Thanks, wasn't entirely sure on how to do the login, as to have it all in-one, or move to login.php, so I went ahead with moving along;

oqcqjo.png


Also, what to do about the footer? Have it so it will go to the top on it's own, or keep it in a fixed position?

- Cheers.
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
Eh that's tricky.

If it follows them, they can see the credits no matter what but it gets annoying.

If it is fixed, they might not see the credits, but it won't annoy.

___

Personally, I'd have it fixed because getting my name out there is less important to me than the user satisfaction :)
 
Status
Not open for further replies.

Users who are viewing this thread

Top