Customize the scripts, add users with custom scripts

About the script called by the publication

The publication calls the heactivate.php script. It posts data to this script that contains three form fields:

  • systid: contains the unique system ID.
  • ukey: contains the registration key entered by the user.
  • cod: it is a verification code based on the two items above and the publication GUID. This ensures that the script is really called from a publication.

This script contains comments. You should not modify what the script returns to the publication.

Customize the administration panel

The administration panel can be improved the way you want. It especially uses the powerful management and database features of the Flourish library.

Add users automatically

In the "admin" subfolder, you can find a script template called remoteadduser.php.

This PHP script is a simple example about how to add a user to the database automatically. It can be used for an automated process in an ecommerce service like FastSpring, Share*It...
You can extend it with automated email, etc...

Scripts for FastSpring, Share*It and e-junkie are available upon request. We may also support other resellers, please contact us.

It contains a function called addusertodatabase with several parameters:
$name: full user name;
$company: optional company name;
$certificate: the unique signature of the registered certificate that should be activated
$email: the email of the user;
$comments: optional comments (indicate only).

It returns a registration key that should be given to the user. This registration key is entered into the publication when the user activates it. This key is actually used to identify the user's record in the database.