Would you be using mysql for the database?
If so, I would think you need to have your script send in variables for the username and password or whatever. Then, check the user & pass, and after check for suspension, and return a true / false for loggedin/notloggedin.
Now this requires alot of changing of course, but this should give you an idea…
If you need some help doing this, let me know.
Const
Username := 'user';
Password := 'pass';
TheClient := InitializeHTTPClient(False, False);
AddPostVariable(TheClient, 'user', Username);
AddPostVariable(TheClient, 'pass', Password);
GetPage := PostHTTPPageEx(TheClient, 'http://www.mysite.com/usercheck.php');
If GetPage = 'False' Then
WriteLN('Invalid Info or Account Suspended')
Else
WriteLN('Successfully Logged');
[PHP]<?php
// page : usercheck.php
// Database connection stuff
$user = $_POST['user'];
$pass = $_POST['pass'];
// Check the username + password in database
$suspended = $row['suspended']; // checks the mysql database
If $user == True && $pass == True Then
{
If $suspended != False Then
echo('True');
else
echo('False');
}
else
echo('False');
?>[/PHP]