Changeset 17319 for extensions/CryptograPHP
- Timestamp:
- Aug 2, 2012, 8:14:16 PM (12 years ago)
- Location:
- extensions/CryptograPHP
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/category.inc.php
r15118 r17319 19 19 global $conf; 20 20 21 $search = ' <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>';21 $search = '{$comment_add.CONTENT}</textarea></p>'; 22 22 $replace = $search.' 23 23 <p><label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</label></p> 24 24 <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> 28 28 <input type="text" name="captcha_code" style="width:'.$conf['cryptographp']['code_length'].'em;" maxlength="'.$conf['cryptographp']['code_length'].'" /> 29 29 </p>'; -
extensions/CryptograPHP/include/contactform.inc.php
r14527 r17319 25 25 <td class="contact-form-left" style="vertical-align:top;"> 26 26 {\''.($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> 30 30 </td> 31 31 <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 19 19 global $conf; 20 20 21 $search = ' <p><textarea name="content" id="contentid" rows="5" cols="60">{$comment_add.CONTENT}</textarea></p>';21 $search = '{$comment_add.CONTENT}</textarea></p>'; 22 22 $replace = $search.' 23 23 <p><label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</label></p> 24 24 <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> 28 28 <input type="text" name="captcha_code" style="width:'.$conf['cryptographp']['code_length'].'em;" maxlength="'.$conf['cryptographp']['code_length'].'" /> 29 29 </p>'; -
extensions/CryptograPHP/include/picture.inc.php
r15118 r17319 19 19 global $conf; 20 20 21 $search = ' <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>';21 $search = '{$comment_add.CONTENT}</textarea></p>'; 22 22 $replace = $search.' 23 23 <p><label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</label></p> 24 24 <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> 28 28 <input type="text" name="captcha_code" style="width:'.$conf['cryptographp']['code_length'].'em;" maxlength="'.$conf['cryptographp']['code_length'].'" /> 29 29 </p>'; -
extensions/CryptograPHP/include/register.inc.php
r14527 r17319 23 23 <span class="property"> 24 24 <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> 27 27 </span> 28 28 <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 22 22 23 23 add_event_handler('init', 'crypto_init'); 24 add_event_handler('loc_end_section_init', 'crypto_section_init' );24 add_event_handler('loc_end_section_init', 'crypto_section_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 25 25 26 26 function crypto_init() … … 41 41 include(CRYPTO_PATH.'include/picture.inc.php'); 42 42 } 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 51 44 } 52 45 … … 64 57 { 65 58 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'); 66 67 } 67 68 }
Note: See TracChangeset
for help on using the changeset viewer.