Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 30
  1. #1
    Join Date
    Jul 2003
    Posts
    712

    Lightbulb Example: PHP User/Password Validation

    This example shows how to use a php script hosted on any web server supporting PHP to allow/deny access to your application. This is a very simple way to add some non-government-grade security to your app.

    Skills Used:
    HTTP actions, Crypto Actions, PHP.
    Attached Images
    Attached Files

  2. #2
    Join Date
    Aug 2005
    Posts
    12
    thanx nice sample, any other samples working with php classes? or php scripts?

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    There's an example on how to build applications which can parse PHP over here:

    http://indigorose.com/forums/showthr...&highlight=php

  4. #4
    Join Date
    Oct 2005
    Posts
    1
    Hi Desmond,

    I like to see your example on user validation

    But I get this error when i open your attached file

    Error: couldn't load: .....\PHP User Pass Validation-1.apz

    Pls upload it again

    Thanks

  5. #5
    Join Date
    Jul 2003
    Posts
    712
    Hello,

    The project opens fine here. Just to be sure, you are trying to open it in AutoPlay Media Studio 6.0 (and not 5.0), correct?

    If so, please try downloading it again.

    Thanks!

  6. #6
    Join Date
    Nov 2005
    Posts
    3
    Corey, thanks for this link... demond, thanks too ^^". I need go, bye! I don't have net, i'm house of my grandmother, 30 kbps .... pqp .... thanks....

  7. #7
    Join Date
    Jun 2006
    Posts
    7
    Sorry to bring up a older topic, but I just wanted to know if this could work if the user was checked agaisnt a file that was stored on the actual CD/DVD itself. Incase there wasnt a internet connection available.

    Our projects are client based, so I would only need it to store a max of 5 usernames and passwords.

  8. #8
    Join Date
    Jul 2003
    Posts
    712
    Yes, you could do this -- though the benefit to using the internet is that you can add / remove passwords without changing your CD's. So, you could have 1000 identical CD's out there, have one bad user, and nuke their credentials.

    If you want to check a file on the CD, don't use PHP (As you'd need a PHP parser) -- just read from a file, and compare (encrypt for added security).

    Desmond.

  9. #9
    Join Date
    Jun 2006
    Posts
    7
    so I could use a .txt file then?

    I'm fairly new to this software, and after downloading the demo and building our first project, my boss loved it and bought it, so the more I can show him, the more impressed he will be.

  10. #10
    Join Date
    Jul 2003
    Posts
    712
    Sure, you could use a Text File. But remember, if the file is stored on the CD, it can be viewed by the person using the CD.

  11. #11
    Join Date
    Jun 2006
    Posts
    7
    Very good point.

    My ultimate goal with is to it make it into a Company / Serial number thing.

    Were is the person we give it to has to enter his company and a serial number we have already disignated.

    I've tired the other options with Serial Number Generator project and I cant seem to figure out how to get it work correctly. I'm sure this is just because I dont have much knowledge in the software yet.

    At this point, I am just trying different methods to protect our software from someone else using it.

  12. #12
    Join Date
    Aug 2007
    Posts
    3

    Grin

    Is server with check_user.php file need globals register on?
    Last edited by piotrd; 08-10-2007 at 04:19 AM.

  13. #13
    Join Date
    Jul 2003
    Posts
    712
    Yes. I believe you can get around that by declaring local variables first:

    $username_posted = $_POST['username_md5'];
    $password_md5_posted = $_POST['password_md5'];

    ... And then adjust your if statement accordingly.

    Desmond.

  14. #14
    Join Date
    Aug 2007
    Posts
    2
    Thanks Desmond, thats a real nice example

  15. #15
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    I have tried this example using a couple of different web-servers for the php-script, but when I run the attached AMS example, I keep getting the following error message:

    Code:
    That user/pass combo is invalid
    I'm entering the passwords as specified in the PHP script. (ie. John Doe = JohnnyBoy, Billy Nest = Billy Password, & Jane Smith = Firetruck)

    and

    I've made sure the URL in the apz.code has been changed to the relevant url for my server.

    I've even checked that the php-script can be reached, by loading it via a browser, and get the expected result (ie. No post data found), so I know I've got that part right.

    ... so what's going on here???

    Has anyone actually trialled this example and managed to get it to work? I know the orginal-post is quite old, but I'd really like to get this to work, as it seems like a really good script.

Similar Threads

  1. Example: Sending Email Using a Remote PHP Web Script
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 36
    Last Post: 06-10-2007, 02:07 PM
  2. Function: Email Any Data Through PHP
    By Brett in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 10-02-2004, 08:08 PM
  3. Lorne’s two great input validation scripts
    By csd214 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-09-2004, 09:13 AM
  4. The dreaded Submit to web PHP issue!
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 09-19-2003, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts