This file contains obsolete information. Just for achieve purposes.

  Manual to implement LeoGuard anti piracy solution.
To Implement LeoGuard anti piracy solution follow steps:

1. Download leoguardkit.zip (you have to be pool auction winner to get right link) and extract all files from it.

2.Run CustomGuard.exe

and fill up fields relevant to your product. Fields marked (**) are mandatory have to be modified. Other fields especially *.php files names could be leaved as default.

Names of the fields are self-explanatory in most cases. If there is confusion the best idea to read following remarks or if they are not cover the topic to use default value.

  • Folder name - customized files will be placed in folder with this name that will be created if not exist. If exist files will be overwritten. Our recommendation is to chose product name for the name of folder.
  • Reg. file name - is the name of text file in witch program will save password. Better to modify it to make product specific just in case if user will put more then one your products in the same folder not to interfere registration of each other.
  • Base Internet link - it should be blank if you will chose to put absolute links for all other Internet pages. Our recommendation is to create special folder in your site with name like "customers" and put all the internet files to it. In this case name of Base Internet link will be like http://www.yourcompany.com/customers and all other files will have simple names. At least one file is better to have index.php name. In general modification of names of internet files are not required and if done better with conscious.
  • Minimum length of owner name -  owner of the computer name is the key information to unlock access to your product. If it is too short like "I" all that hackers need to do are to register their computers and share registration keys of legitimate bought software. Although there is no ultimate protection against such behavior intuitively clear that the longer registration name is the more probability that is valid one. You can set arbitrary filter to ban too short registration names. Value 0 will allow all names.
  • PayPal e-mail - paypal email that you are using for receiving money.
  • Instant notification for PayPal page - this page can have any name but the same for all your products you will process via PayPal. You will be in no need to modify it for you second and other products.
  • All key fields must contain only numerical letters. The more variety and the longer they will be the more secure solution will be. But to be reasonable always good suggestion.

Save information in text file. It could later be helpful for manual calculation of the registration file for customers with Internet connection problems or in countries these are not covering with PayPal service.

Click "Create custom files" button. The folder with all necessary files will be created.

When adding second and more product the procedure is the same except all php Internet files are already created and some of them just need to be slightly modified. The best way is to use command in VC++ "Search in files" and find all appearances switch statement then add additional case statement for the new product.

3. Inserting LeoGuard dialog into your product.

Open your project with VC++. Open created at the previous step file LeoGuard.rc and select Dialog - IDD_LEOGUARD_DIALOG copy it in clipboard. Open resource in your project and paste dialog. Open it in your project in visual editing mode. Select any control and click ClassWizard. Invitation to create new file will follow. Create new class LeoGuardDlg that will be associated with IDD_LEOGUARD_DIALOG. In different versions of VC++ the process could be slightly different but in any case it is common knowledge procedure.

Replace in created files LeoGuardDlg.cpp and LeoGuardDlg.h all content of class CLeoGuardDlg from the created on previous step files with the same names.

Find in your project initializing point and add in the begin of the file

#include "LeoGuardDlg.h"

then in the initializing function

add the codes:

//--------------

CLeoGuardDlg m_LeoGuard;
if(!m_LeoGuard.ok)//check if already registered
{
     m_LeoGuard.DoModal();
     if(!m_LeoGuard.ok && !m_LeoGuard.trial)//no register neither trial
     {
         OnOK();// close application
      }
}
if(m_LeoGuard.trial)  //trial mode
{
   // m_Message="Trial";
}
if(m_LeoGuard.ok)  //registered mode
{
    //  m_Message="Registered";
}

//---------------

Modify these codes to limit access to some features of your application in trial mode that is characterized with combination of parameters m_LeoGuard.trial=TRUE and m_LeoGuard.ok=FALSE.

4. Create on your site folder with name as is on the Base Internet link and upload there all php files these are created at the step 2.

Run with your browser file usersdbcreate.php. It will create database and tables for your MySQL database. If you operating in Yahoo! Web Hosting environment it is highly recommendable to use provided MySQL administrative tools. These will permit your to check accuracy of created tables, set users id and password... A lot to say but you better to read documentation.

File usersdbcreate.php better to be removed after successful creation of database and tables.

Tune up your PayPal account associating file  Instant notification for PayPal page with setting for IPN (instant payment notification).

5. Check performance.

 

 


Copyright © by LeoKrut