Changeset 26041 for extensions/CryptograPHP/include
- Timestamp:
- Dec 19, 2013, 3:24:59 PM (11 years ago)
- Location:
- extensions/CryptograPHP/include
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/category.inc.php
r19428 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 include(CRYPTO_PATH.'include/common.inc.php'); … … 29 29 if ($securimage->check($_POST['captcha_code']) == false) 30 30 { 31 if ($conf['cryptographp']['comments_action'] == 'reject') array_push($page['errors'], l10n('Invalid Captcha'));31 if ($conf['cryptographp']['comments_action'] == 'reject') $page['errors'][] = l10n('Invalid Captcha'); 32 32 return ($action != 'reject') ? $conf['cryptographp']['comments_action'] : 'reject'; 33 33 } … … 35 35 return $action; 36 36 } 37 38 ?> -
extensions/CryptograPHP/include/common.inc.php
r20189 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 global $template; … … 18 18 $template->set_filename('cryptographp', realpath(CRYPTO_PATH.'template/'.$conf['cryptographp']['template'].'.tpl')); 19 19 $template->assign_var_from_handle('CRYPTOGRAPHP', 'cryptographp'); 20 21 ?> -
extensions/CryptograPHP/include/contactform.inc.php
r19428 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 include(CRYPTO_PATH.'include/common.inc.php'); … … 29 29 if ($securimage->check($_POST['captcha_code']) == false) 30 30 { 31 array_push($page['errors'], l10n('Invalid Captcha'));31 $page['errors'][] = l10n('Invalid Captcha'); 32 32 return 'reject'; 33 33 } … … 35 35 return $action; 36 36 } 37 38 ?> -
extensions/CryptograPHP/include/guestbook.inc.php
r20189 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 include(CRYPTO_PATH.'include/common.inc.php'); … … 29 29 if ($securimage->check($_POST['captcha_code']) == false) 30 30 { 31 array_push($page['errors'], l10n('Invalid Captcha'));31 $page['errors'][] = l10n('Invalid Captcha'); 32 32 return 'reject'; 33 33 } … … 35 35 return $action; 36 36 } 37 38 ?> -
extensions/CryptograPHP/include/picture.inc.php
r19428 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 include(CRYPTO_PATH.'include/common.inc.php'); … … 29 29 if ($securimage->check($_POST['captcha_code']) == false) 30 30 { 31 if ($conf['cryptographp']['comments_action'] == 'reject') array_push($page['errors'], l10n('Invalid Captcha'));31 if ($conf['cryptographp']['comments_action'] == 'reject') $page['errors'][] = l10n('Invalid Captcha'); 32 32 return ($action != 'reject') ? $conf['cryptographp']['comments_action'] : 'reject'; 33 33 } … … 35 35 return $action; 36 36 } 37 38 ?> -
extensions/CryptograPHP/include/register.inc.php
r19428 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 include(CRYPTO_PATH.'include/common.inc.php'); … … 26 26 if ($securimage->check($_POST['captcha_code']) == false) 27 27 { 28 array_push($errors, l10n('Invalid Captcha'));28 $errors[] = l10n('Invalid Captcha'); 29 29 } 30 30 31 31 return $errors; 32 32 } 33 34 ?>
Note: See TracChangeset
for help on using the changeset viewer.