$stats_host = "localhost";$stats_user = "dbsaint";$stats_password = "saint03";$stats_database = "saintlogin";$stats_table = "statistics";mysql_connect("$stats_host","$stats_user","$stats_password") or die("Can't connect to the SQL-server");mysql_select_db("$stats_database");$location=getenv("REQUEST_URI");$remote_host=getenv("REMOTE_HOST");$remote_ip=getenv("REMOTE_ADDR");$query = "SELECT * FROM $stats_table WHERE VISITOR = '$remote_host' && URL_STR = '$location'";$result = MYSQL_QUERY($query);$number = MYSQL_NUMROWS($result);
if($number == 0) {$query2 = "INSERT INTO $stats_table VALUES('$location', '$remote_host', '$remote_ip', '1')";$result2 = MYSQL_QUERY($query2);
}else {$z = 0;$old_times = mysql_result($result,$z,"TIMES");$new_times = $old_times+1;$query2 = "UPDATE $stats_table SET TIMES = '$new_times' WHERE VISITOR = '$remote_host' && URL_STR = '$location'";$result2 = MYSQL_QUERY($query2);
}
?>
Just go to the downloads section, and choose the software download right for the platform type on which you're running the website at your domain (Unix/Linux, Windows asp or Dotnet aspx).
Unzip the downloaded files, maintaining the stored directory structure and copy them to your website.
Follow the installation requirements contained in the readme.txt file for your platform.
You should, in certain cases, install some special features like MS SOAP (for Windows asp servers) or ensure that PHP (for Unix/Linux) is available and correctly configured.
Test the implementation by accessing the Saintlogin_access page, which is platform specific and has an extension such as .php .asp or .aspx.
It should work exactly as the login demo of the corresponding platform available at the downloads section.
To complete the required security for your pages access, modify the document pages to include at the beginning the few lines of code that perform the SAINTlogin access check.
This will ensure that your pages are not accessible by any user unless he has been correctly validated by SAINTlogin access system.
TO ENTER AN ON-LINE SERVICE PAGE OF A SAINTlogin PROTECTED SITE:
A. User will be asked to simply press a button placed on the login page of that site; no user id or password will be requested.
In response a number(1) will be displayed, asking the user to dial it on his cellphone.
B. Once you've dialled that number(2), a message appears on your screen saying that you may enter the on-line service page, if you are registered, otherwise not...
TO REGISTER TO AN ON-LINE SERVICE: USING SAINTlogin
I. Go to the registration page of the website.
II. Select the on-line service you want to subscribe.
III. Type in your name(3) or just a nickname that will be used just to say hello..
IV. Press the button to start subscribing..
V. A phone number together with a code will appear on your screen.
VI. Send to that phone number an SMS text message(4) including in it that personal code(5), just displayed.
As soon as the SAINTlogin system receives your SMS text message, the code is validated and it will successfully register your subscription.
After successful registration, an SMS text message can be sent back as a confirmation.
At this time, wishing to enter the subscribed on-line service, the user just has to follow the two steps procedures described above.
When you send the SMS text message through your cellphone, SAINTlogin will store your SIM card number as a unique user identifier that'll be used to recognize you when access is requested.