Indigo Rose Software
  #1  
Old 09-15-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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
File Type: jpg attach1.JPG (20.2 KB, 609 views)
Attached Files
File Type: apz PHP User Pass Validation.apz (10.9 KB, 1263 views)
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #2  
Old 09-16-2005
Maggi Maggi is offline
Forum Member
 
Join Date: Aug 2005
Posts: 12
thanx nice sample, any other samples working with php classes? or php scripts?
Reply With Quote
  #3  
Old 09-16-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
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
Reply With Quote
  #4  
Old 10-10-2005
sosuave sosuave is offline
Forum Member
 
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
Reply With Quote
  #5  
Old 10-11-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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!
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #6  
Old 11-30-2005
xxmatagbxx xxmatagbxx is offline
Forum Member
 
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....
Reply With Quote
  #7  
Old 06-21-2006
DKGlobal DKGlobal is offline
Forum Member
 
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.
Reply With Quote
  #8  
Old 06-21-2006
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #9  
Old 06-21-2006
DKGlobal DKGlobal is offline
Forum Member
 
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.
Reply With Quote
  #10  
Old 06-21-2006
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #11  
Old 06-21-2006
DKGlobal DKGlobal is offline
Forum Member
 
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.
Reply With Quote
  #12  
Old 08-10-2007
piotrd piotrd is offline
Forum Member
 
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 05:19 AM.
Reply With Quote
  #13  
Old 08-10-2007
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #14  
Old 08-11-2007
foralgeria foralgeria is offline
Forum Member
 
Join Date: Aug 2007
Posts: 2
Thanks Desmond, thats a real nice example
Reply With Quote
  #15  
Old 10-30-2008
mystica's Avatar
mystica mystica is offline
Forum Member
 
Join Date: May 2007
Location: Sydney, Australia
Posts: 330
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Example: Sending Email Using a Remote PHP Web Script Corey AutoPlay Media Studio 5.0 Examples 36 06-10-2007 03:07 PM
Weather data and PHP 5 . . . Intrigued Developer's Den 0 10-09-2004 12:26 PM
Function: Email Any Data Through PHP Brett AutoPlay Media Studio 5.0 Examples 8 10-02-2004 09:08 PM
Lorne’s two great input validation scripts csd214 AutoPlay Media Studio 5.0 2 06-09-2004 10:13 AM
The dreaded Submit to web PHP issue! Bruce AutoPlay Media Studio 4.0 2 09-19-2003 04:00 PM


All times are GMT -6. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software