Ok here they are... along with all the basic "use at your own risk" warnings. Actually they are very straight forward. Some of the code is stuff I ripped from some other scripts long ago. author unknown. If you are out there... and recognise some of this as your own... thanks!

1) first call register.php script. It grabs the values we will eventually use to populate the MySQL database. All these values are posted to submit.php. 2) submit.php does all the error checks on the form input. If the inout checks out, it adds some VeriSign stuff and spews some words to the browser thanking the user... bla... bla...bla. When the user continues he/she is redirected to VeriSign to submit all the necessary CC data. If the transaction is approved. Verisign echos my data right back to verisign_echo.php.
3) verisign_echo.php inserts all the data into the radius database. User can now login and be authenticated by radius.

Use at your own risk... I know dozens of coders better than myself, so If you know of a better way of doing something, please add your contributions. Thanks

JK

On Tue, 23 Mar 2004 15:15:50 -0800
 "John Overman " <[EMAIL PROTECTED]> wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Am using Orinoco 1100 ROR 1 watt smart amp 15 dbi omni on a 30ft pole on
the roof of my house I am setting up wifi or have setup wifi for the
neighborhood I have a rack o servers am running UNIX and windows servers I
plan on using free radius for authentication etc ... Not yet implemented I
have tried to setup but could not get it going correctly ...


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Oswin
Ondarza
Sent: Tuesday, March 23, 2004 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Using FreeRadius for a HotSpot with a PrePaid Billing System

Hi John, thanks for that !!!

Can I ask you a few other questions ????

What equipments are you using ??? ( NAS, Bridges, APs, Antennas )

thanks.


----- Original Message -----
From: "John Kiehnle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 4:03 PM
Subject: Re: Using FreeRadius for a HotSpot with a PrePaid Billing System


Ok... I'll post the full set of scripts later this
afternoon. I need to sanitize some of our company specific
data in configs etc... These roooockk but are very beta
with no good coders ever having looked at them. So now
that I expose my bad undocumented code to the masses... I
don't want to hear how crappy my undocumented code is. It
is in fact all very simple. I am assuming "for better or
worse" you have looked at php code and understand the
basic mechanics of how php interfaces with MySQL and/or
LDAP. My production stuff is all MySQL and did I say it
roooocks. The newest adventure is moving this all to LDAP.
Your mileage may very. I'll post them when I get back from
lunch. I got a quick 802.11 wireless issue I gotta tackle
first.

JK


On Tue, 23 Mar 2004 11:13:31 -0800 (PST)
Julius Igugu <[EMAIL PROTECTED]> wrote:
>Yes.
>
>John Kiehnle <[EMAIL PROTECTED]> wrote:I have
>like many I am sure, developed a full system in php
>with registration linked to VeriSign for CC processing.
>If
>the card transaction is accepted VeriSign can send all
>the
>data to a form which posts the UID / password into MySQL
>or LDAP for instant authentication. It is very basic but
>gets the $$$ into bank and user online right now. Anyone
>want copies of the php scripts.
>
>JK
>
>On Tue, 23 Mar 2004 10:41:44 -0500
>"Oswin Ondarza" wrote:
>>Hi everyone,
>>
>>I am trying to build a Hotspot system using FreeRADIUS,
>> I have a Colubris CN3000 NAS and it works great with
>>the FreeRADIUS, but now I need a billing system
>>integrated to the FreeRADIUS so users when enter the
>>hotspot can pay with credit card using the
>>explorer/mozilla to get access or to get login
>>information.
>>
>>I would like to build a complete open source solution, so
>>the only prepaid billing system open source that I have
>>found thar "could" be intergrated with the FreeRADIUS is
>> "FreeSide" (http://www.sisd.com/freeside/) but I
>>haven't tried it yet, I would like to hear a little about
>>this before doing it.
>>
>>
>>So, any Opinion ? Suggestions ? is anybody tryng the
>>same solution ???
>>
>>
>>I hope someone can help me,
>>
>>Thanks in advance !!!
>>
>>Oswin.
>
>
>-
>List info/subscribe/unsubscribe? See
>http://www.freeradius.org/list/users.html
>
>
>Julius Igugu
>SouthWork Co. Ltd.
>234 (802) 320-7540
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.


- List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html




- List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html



- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Title: RADIUS user registration
\n"; } function html_form($username,$password) { $today = date("D, M.d Y"); echo "

Today is: $today - You are currently using Hotspot technology courtesy of Bla Bla Systems, Inc.

"; echo "

1. Please select a username and password from 8 to 25 characters.

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Username Password
Username should be one word from 8 to 25 characters. Password should be one word from 8 to 25 characters.
Username should be easy to remember. Password should be easy to remember.
Password should be hard to guess, ie birthdates are bad passwords.
Password should contain alphanumeric and special characters, ie; [EMAIL PROTECTED]&*.
Acronyms for phrases make good passwords. Dates make good passwords.
examples: 1#ofVeges | 2004_A.D. | Jan.24,03 | RU4WiFi2
"; echo "

2. Please provide the following information to help us if you forget your password

"; echo "
"; echo ""; echo " The city you were born
"; echo ""; echo " Mothers maiden name
"; echo ""; echo " Last 4 of your SS Number
"; echo "

3. Please select how long you would like HotSpot service.

"; echo ""; echo "Daily Special - $4.95 per hour"; echo "Weekend Special - 5 hours for $14.95"; echo "Vacation Special - 10 hours for $24.95"; echo "Monthly Special - 30 days for $39.95"; echo "

"; echo "\n "; echo ""; echo ""; echo "
"; } echo html_header (); echo html_form ($username,$password); ?>
Title: RADIUS user registration
\n"; echo "
\n"; } function html_footer($username) { echo "
\n"; echo "\n"; exit; } function error_general($error,$username,$password) { echo html_header(); echo "
Error: Your registration form had problems!"; echo "

$error

"; echo " Click here to return.


"; echo html_footer(); } if ((!$username) || (!$password)) { echo html_header(); echo error_general("Username or Password has not been entered",$username,$password); echo html_footer(); } if (strlen($username) < 8 || strlen($password) < 8) { echo html_header(); echo error_general("username and password must be 8 characters or more",$username,$password); echo html_footer(); } if (!mysql_connect("$db_host","$db_user","$db_pass")) { Header("Location: noconnect.phtml"); } $result=mysql($db_main,"SELECT * FROM $db_tabl_1 WHERE username = '$username'"); $num=mysql_numrows($result); if ($num > 0) { echo html_header(); echo error_general("Sorry, user already exists",$username,$password); mysql_close(); echo html_footer(); } if ((!$birthplace) || (!$maidenname) || (!$lastfour)) { echo html_header(); echo error_general("Please answer all 3 password reminder questions for your own security",$username,$password); echo html_footer(); } if (!$hotspot) { echo html_header(); echo error_general("You must select a period of service",$username,$password); echo html_footer(); } else { switch ($hotspot) { case 3600: echo "Thanks for taking time to register for an hour of hotspot service. We are ready to proceed to VeriSign to process your payment of $4.95. For your security and privacy, your credit card number WILL NOT BE TRANSMITTED TO, or STORED ON any of our company servers. The ONLY organization your credit card information is transmitted to is our merchant bank NOVA via an SSL encrypted connection through our on-line processor VeriSign. By the way, I know others from $birthplace. You have 60 minutes to use as you wish. Enjoy the service!"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "


"; break; case 18000: echo "Thanks for taking time to register for 5 hours of hotspot service. We are ready to proceed to VeriSign to process your payment of $14.95. For your security and privacy, your credit card number WILL NOT BE TRANSMITTED TO, or STORED ON any of our company servers. The ONLY organization your credit card information is transmitted to is our merchant bank NOVA via an SSL encrypted connection through our on-line processor VeriSign. By the way, I know someone from $birthplace. You have 300 minutes to use as you wish. Enjoy your service!"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "


"; break; case 36000: echo "Thanks for taking time to register for a Vacation account. We are ready to proceed to VeriSign to process your payment of $24.95. For your security and privacy, your credit card number WILL NOT BE TRANSMITTED TO, or STORED ON any of our company servers. The ONLY organization your credit card information is transmitted to is our merchant bank NOVA via an SSL encrypted connection through our on-line processor VeriSign. By the way, I know others from $birthplace. You have 600 minutes to use as you wish. Have a great Vacation!"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "


"; break; case 360000: echo "Thanks for taking time to register for an unlimited monthly account. We are ready to proceed to VeriSign to process your payment of $39.95. For your security and privacy, your credit card number WILL NOT BE TRANSMITTED TO, or STORED ON any of our company servers. The ONLY organization your credit card information is transmitted to is our merchant bank NOVA via an SSL encrypted connection through our online processor VeriSign. By the way, I know others from $birthplace. You have unlimited usage of the hotspot service. Have fun!"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "


"; break; } }

Attachment: verisign_echo.phtml
Description: Binary data



Reply via email to