Do you guys have a more detailed explination on how to use the server-side validation? I didn't quite understand the one there now.
-Thanks
gigi wrote:Hi,
Server-side validation method is explained here:
http://www.advancedinstaller.com/user-g ... -page.html
What exactly you don't understand? Give me more details.
Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Code: Select all
<?php
define('LICENSE_VALID', '601');
define('LICENSE_INVALID', '602');
if(isset($_POST['sn']) && trim($_POST['sn']) != '')
{
// variables posted by AI serial validation tool
$sn = trim($_POST['sn']);
$languageid = (int) $_POST['languageid']; // you can use this parameter to display a localized error message taken from your database
if($id == '555-555') // TODO: user custom database-linked code to check the license ID
{
echo LICENSE_VALID . "\n" . "Serial ID = " . $sn . ' is OK.';
die();
}
else
{
echo LICENSE_INVALID . "\n" . "Serial ID = " . $sn . ' is invalid !';
die();
}
}
else
{
echo LICENSE_INVALID . "\n" . "Missing Serial ID !";
die();
}
?>
FOLLOW US
Get the latest news in Application Packaging