#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    9
    Rep Power
    0

    Admin panel without classes


    Hello Guys.
    I am still new to php and would like to know how to create an admin panel just by using PHP without classes?

    Is there any good source where i could learn it from?

    I am facing a problem now of how to make a login form for it so i can log in when the password is right?

    Thank you

    Z
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    Sydney Australia
    Posts
    182
    Rep Power
    83
    Originally Posted by UkraineIsHere
    how to make a login form for it so i can log in when the password is right?
    All you info you'll ever need on how to "login securely".
    Thanks to E-Oreo

    http://forums.devshed.com/php-faqs-and-stickies-167/how-to-program-a-basic-but-secure-login-system-using-891201-3.html?#post2834292
  4. #3
  5. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1045
    Hi,

    as great as E-Oreo's script is for learning, when it comes to real life applications, use the PHPass password library. It has actually been tested and proven to work, and it's pretty foolproof:

    You should generally rely on established libraries for security stuff. Don't try to implement it yourself, because there are a lot of things you can do wrong (no, md5() does not create secure hashes).

    The PHPass website also has an article about creating a simple login form:
    http://www.openwall.com/articles/PHP-Users-Passwords
    (but you shouldn't just copy and paste the code; understand what it does and then write your own script)

IMN logo majestic logo threadwatch logo seochat tools logo