WebraDev - Professional / Free Affiliate Script 
             
Download Protect
    Installation
        Installation
    Getting started
        Remove /install dir
    Integration
        PayPal
        SWREG

Download Protect
Installation
Installationback to top

Download Protect is distributed as a ZIP archive. After downloading the archive you should unzip it into some temporary path.
The archive contains directory /dp where all the files are stored.

The system contains easy to use installation program, that will guide you through the process of install in 5 simple steps.

Steps to install the system:
  1. Set directory permissions

    In order to install the system, some file and directory permissions have to be changed.
    File /settings/settings.php and directories /helpimages have to be writable by PHP. To enable this, you should CHMOD them to 644 or 666.
    Installation program will check it and notify you, if the directories still don't have the permissions to write.
  2. Create database

    • Create a new mysql database called {dp}
    • Create a new user called {dp}
    • Grant access to user {dp} on the {dp} database.
    • Make sure to record the dpuser's password, {yourpassword}.
      // Customize to match your db_name, db_user, and db_pass.
      mysql> CREATE DATABASE dp;
      mysql> GRANT ALL PRIVILEGES ON dp.* 
             TO dp@localhost IDENTIFIED BY
             "yourpassword" WITH GRANT OPTION;
      
  3. Start Installation Program

    Go to the URL http://www.yoursite.com/download_protect_directory/install/index.php to start installation. The program will take you step by step through the installation of Download Protect.

After those steps the system should be ready for operation. Now you should integrate it with your payment gateways, set up your products and start selling.

Getting started
Remove /install dirback to top
It is recommended to remove or rename the /install directory to prevent somebody from trying to make some action with installer.
Integration
PayPalback to top
To integrate Download Protect with PayPal you have to use PayPal IPN callback feature.
You should configure your PayPal IPN link to point to the URL
 
An alternative method is to put the following hidden field into every PayPal button form
<input type=hidden name="notify_url" value="http://www.yoursite.com/affiliate/scripts/paypal.php">


The Product Code given for every product defined in Download Protect should equal to PayPal item_number field. The system uses item_number field to recognize which product was bought.
SWREGback to top
For integration with SWREG you should go to your SWREG panel, and for every product and every unique variation set the Keycode generator URL to
 
Download Protect system sends an email to user automatically after order, so you can leave the email template in SWREG empty.