version 0.6

conflict on php 5.3 server with preg_replace_callback
-PHP Fatal error: Using $this when not in object context in
added code to handle PHP version and used preg_replace if php 5.3

modified plugin trigger to =FP

also declared several variables to avoid PHP warnings