
#################### Advanced Module Installation ########################
 
1. Unzip phpGreetCards_advanced_module.zip somewhere
2. Copy files to the approper  directories 
    admin.php => admin/admin.php
    cleanup.php => admin/cleanup.php
    addlib.inc => lib/addlib.inc (replace old one)
    badwords.txt => badwords.txt (Application root directory)
3. Open  phpGreetCards.php in your text editor and add this code 

 validation_email("Sender",$card["sender_email"]); 
 validation_email("Recipient's",$card["recip_email"]);
 validation_size(strlen($card["message"]));
 FireWall($card["message"]);

    after line
            else if($mode=="preview"){  (line:17)


    to activate email, message lenght validation and badwords check functions 

4. Edit cleanup.php. Change expiration period as you wish
    $days=90; // expiration period by days 

You will need to setup the crontab to run cleanup procedure.

 crontab -e
 0 5 * * * /usr/local/bin/php /usr/local/apache/htdocs/phpGreetCards/admin/cleanup.php

    #//usr/local/bin/php - path for php 
    #/usr/local/apache/htdocs/phpGreetCards/admin/cleanup.php - path for cleanup script

or

run this script manually

5. If you wish you may free download Greet Images Pack(more than 120 images), which we use in our demo site  
http://www.w2b.ru//webapplications/phpGreetCards/greetimages.zip (3,2Mb)
##########################################################################