Changeset 11616

Show
Ignore:
Timestamp:
04/23/07 23:36:37 (1 year ago)
Author:
dsevilla
Message:

v1.6: Adapted to PHP5.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-morph/trunk/LEEME.wp-morph

    r4307 r11616  
    2424Change Log 
    2525---------- 
     26 
     27v1.6: 
     28* Adaptado a PHP5. 
    2629 
    2730v1.5: 
  • wp-morph/trunk/README.wp-morph

    r4307 r11616  
    2424Change Log 
    2525---------- 
     26 
     27v1.6: 
     28* Adapt the plugin to PHP5. 
    2629 
    2730v1.5: 
  • wp-morph/trunk/wp-morph.php

    r4346 r11616  
    22/* 
    33Plugin Name: WP-Morph 
    4 Plugin URI: http://neuromancer.dif.um.es/blog/index.php?s=wp-morph&submit=Search 
     4Plugin URI: http://neuromancer.inf.um.es/blog/index.php?s=wp-morph&submit=Search 
    55Description: Fool spammers by creating a complicated javascript program to be executed by a real browser. 
    66Author: Diego Sevilla Ruiz 
    7 Version: 1.5 
    8 Author URI: http://neuromancer.dif.um.es/blog 
     7Version: 1.6 
     8Author URI: http://neuromancer.inf.um.es/blog 
    99Id: $Id$ 
    1010*/ 
     
    5050                        if ($v2 == $_POST['result_md5']) 
    5151                                return $comment; 
    52  
    5352                        $t++; 
    5453                } 
     
    236235} 
    237236 
     237function morph_flush() { 
     238        ob_end_flush(); 
     239} 
     240 
    238241// Now we set that function up to execute when the wp_head action is called 
    239242add_action('wp_head', 'morph_call_output_items'); 
    240243 
     244// This one needed to flush the buffer started in the output modification 
     245add_action('shutdown', "morph_flush"); 
     246 
    241247?>