Ignore:
Timestamp:
Aug 2, 2012, 8:14:16 PM (12 years ago)
Author:
mistic100
Message:

compatible with RV Akismet
compatible with question_mark_in_urls=false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/main.inc.php

    r15996 r17319  
    2222
    2323add_event_handler('init', 'crypto_init');
    24 add_event_handler('loc_end_section_init', 'crypto_section_init');
     24add_event_handler('loc_end_section_init', 'crypto_section_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30);
    2525
    2626function crypto_init()
     
    4141    include(CRYPTO_PATH.'include/picture.inc.php');
    4242  }
    43   else if (isset($_GET['/contact']) and $conf['cryptographp']['activate_on']['contactform'])
    44   {
    45     include(CRYPTO_PATH.'include/contactform.inc.php');
    46   }
    47   else if (isset($_GET['/guestbook']) and $conf['cryptographp']['activate_on']['guestbook'])
    48   {
    49     include(CRYPTO_PATH.'include/guestbook.inc.php');
    50   }
     43 
    5144}
    5245
     
    6457  {
    6558    include(CRYPTO_PATH.'include/category.inc.php');
     59  }
     60  else if ( preg_match('#contact$#', $_SERVER['REQUEST_URI']) and $conf['cryptographp']['activate_on']['contactform'])
     61  {
     62    include(CRYPTO_PATH.'include/contactform.inc.php');
     63  }
     64  else if (isset($page['section']) and $page['section'] == 'guestbook' and $conf['cryptographp']['activate_on']['guestbook'])
     65  {
     66    include(CRYPTO_PATH.'include/guestbook.inc.php');
    6667  }
    6768}
Note: See TracChangeset for help on using the changeset viewer.