Changeset 17319


Ignore:
Timestamp:
08/02/12 20:14:16 (7 years ago)
Author:
mistic100
Message:

compatible with RV Akismet
compatible with question_mark_in_urls=false

Location:
extensions/CryptograPHP
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/include/category.inc.php

    r15118 r17319  
    1919  global $conf; 
    2020   
    21   $search = '<p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>'; 
     21  $search = '{$comment_add.CONTENT}</textarea></p>'; 
    2222  $replace = $search.' 
    2323                                <p><label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</label></p> 
    2424                                <p> 
    25                                   <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
    26                                   <a href="#" onclick="document.getElementById(\'captcha\').src = \''.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
    27                                     <img src="'.CRYPTO_PATH.'template/refresh.png"></a> 
     25                                  <img id="captcha" src="{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
     26                                  <a href="#" onclick="document.getElementById(\'captcha\').src = \'{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
     27                                    <img src="{$ROOT_URL}'.CRYPTO_PATH.'template/refresh.png"></a> 
    2828          <input type="text" name="captcha_code" style="width:'.$conf['cryptographp']['code_length'].'em;" maxlength="'.$conf['cryptographp']['code_length'].'" /> 
    2929                                </p>'; 
  • extensions/CryptograPHP/include/contactform.inc.php

    r14527 r17319  
    2525        <td class="contact-form-left" style="vertical-align:top;"> 
    2626          {\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} 
    27           <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
    28           <a href="#" onclick="document.getElementById(\'captcha\').src = \''.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
    29             <img src="'.CRYPTO_PATH.'template/refresh.png"></a> 
     27          <img id="captcha" src="{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
     28          <a href="#" onclick="document.getElementById(\'captcha\').src = \'{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
     29            <img src="{$ROOT_URL}'.CRYPTO_PATH.'template/refresh.png"></a> 
    3030        </td> 
    3131        <td class="contact-form-right"><input type="text" name="captcha_code" size="'.($conf['cryptographp']['code_length']+1).'" maxlength="'.$conf['cryptographp']['code_length'].'" /></td>'; 
  • extensions/CryptograPHP/include/guestbook.inc.php

    r15996 r17319  
    1919  global $conf; 
    2020   
    21   $search = '<p><textarea name="content" id="contentid" rows="5" cols="60">{$comment_add.CONTENT}</textarea></p>'; 
     21  $search = '{$comment_add.CONTENT}</textarea></p>'; 
    2222  $replace = $search.' 
    2323                                <p><label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</label></p> 
    2424                                <p> 
    25                                   <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
    26                                   <a href="#" onclick="document.getElementById(\'captcha\').src = \''.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
    27                                     <img src="'.CRYPTO_PATH.'template/refresh.png"></a> 
     25                                  <img id="captcha" src="{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
     26                                  <a href="#" onclick="document.getElementById(\'captcha\').src = \'{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
     27                                    <img src="{$ROOT_URL}'.CRYPTO_PATH.'template/refresh.png"></a> 
    2828          <input type="text" name="captcha_code" style="width:'.$conf['cryptographp']['code_length'].'em;" maxlength="'.$conf['cryptographp']['code_length'].'" /> 
    2929                                </p>'; 
  • extensions/CryptograPHP/include/picture.inc.php

    r15118 r17319  
    1919  global $conf; 
    2020   
    21   $search = '<p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>'; 
     21  $search = '{$comment_add.CONTENT}</textarea></p>'; 
    2222  $replace = $search.' 
    2323                                <p><label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</label></p> 
    2424                                <p> 
    25                                   <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
    26                                   <a href="#" onclick="document.getElementById(\'captcha\').src = \''.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
    27                                     <img src="'.CRYPTO_PATH.'template/refresh.png"></a> 
     25                                  <img id="captcha" src="{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> 
     26                                  <a href="#" onclick="document.getElementById(\'captcha\').src = \'{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
     27                                    <img src="{$ROOT_URL}'.CRYPTO_PATH.'template/refresh.png"></a> 
    2828          <input type="text" name="captcha_code" style="width:'.$conf['cryptographp']['code_length'].'em;" maxlength="'.$conf['cryptographp']['code_length'].'" /> 
    2929                                </p>'; 
  • extensions/CryptograPHP/include/register.inc.php

    r14527 r17319  
    2323        <span class="property"> 
    2424          <label for="captcha_code">{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"></label> 
    25           <a href="#" onclick="document.getElementById(\'captcha\').src = \''.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
    26             <img src="'.CRYPTO_PATH.'template/refresh.png"></a> 
     25          <a href="#" onclick="document.getElementById(\'captcha\').src = \'{$ROOT_URL}'.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false"> 
     26            <img src="{$ROOT_URL}'.CRYPTO_PATH.'template/refresh.png"></a> 
    2727        </span> 
    2828        <input type="text" id="captcha_code" name="captcha_code" size="'.($conf['cryptographp']['code_length']+1).'" maxlength="'.$conf['cryptographp']['code_length'].'" />'; 
  • 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.