Changeset 12619 for extensions/CryptograPHP/include
- Timestamp:
- Nov 13, 2011, 1:19:28 PM (12 years ago)
- Location:
- extensions/CryptograPHP/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/category.inc.php
r12617 r12619 18 18 global $conf; 19 19 20 $search = ' <input type="hidden" name="key" value="{$comment_add.KEY}">';21 $replace = $search.'20 $search = '#<input type="hidden" name="key" value="{\$comment_add\.KEY}"([ /]*)>#'; 21 $replace = '<input type="hidden" name="key" value="{$comment_add.KEY}"$1>'.' 22 22 <label> 23 23 <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> … … 29 29 </label>'; 30 30 31 return str_replace($search, $replace, $content);31 return preg_replace($search, $replace, $content); 32 32 } 33 33 -
extensions/CryptograPHP/include/picture.inc.php
r12617 r12619 18 18 global $conf; 19 19 20 $search = ' <input type="hidden" name="key" value="{$comment_add.KEY}">';21 $replace = $search.'20 $search = '#<input type="hidden" name="key" value="{\$comment_add\.KEY}"([ /]*)>#'; 21 $replace = '<input type="hidden" name="key" value="{$comment_add.KEY}"$1>'.' 22 22 <label> 23 23 <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"> … … 29 29 </label>'; 30 30 31 return str_replace($search, $replace, $content);31 return preg_replace($search, $replace, $content); 32 32 } 33 33 -
extensions/CryptograPHP/include/register.inc.php
r12617 r12619 20 20 <li> 21 21 <span class="property"> 22 <label> <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"></label>22 <label>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} <img id="captcha" src="'.CRYPTO_PATH.'securimage/securimage_show.php" alt="CAPTCHA Image"></label> 23 23 </span> 24 <b>{\''.($conf['cryptographp']['captcha_type']=='string'?'Enter code':'Solve equation').'\'|@translate} :</b><br>25 24 <input type="text" name="captcha_code" size="'.($conf['cryptographp']['code_length']+1).'" maxlength="'.$conf['cryptographp']['code_length'].'" /> 26 25 <a href="#" onclick="document.getElementById(\'captcha\').src = \''.CRYPTO_PATH.'securimage/securimage_show.php?\' + Math.random(); return false">
Note: See TracChangeset
for help on using the changeset viewer.