Ignore:
Timestamp:
Dec 19, 2013, 3:24:59 PM (11 years ago)
Author:
mistic100
Message:

update for 2.6

Location:
extensions/CryptograPHP/include
Files:
1 deleted
6 edited

Legend:

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

    r19428 r26041  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('CRYPTO_ID') or die('Hacking attempt!');
    33
    44include(CRYPTO_PATH.'include/common.inc.php');
     
    2929  if ($securimage->check($_POST['captcha_code']) == false)
    3030  {
    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');
    3232    return ($action != 'reject') ? $conf['cryptographp']['comments_action'] : 'reject';
    3333  }
     
    3535  return $action;
    3636}
    37 
    38 ?>
  • extensions/CryptograPHP/include/common.inc.php

    r20189 r26041  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('CRYPTO_ID') or die('Hacking attempt!');
    33
    44global $template;
     
    1818$template->set_filename('cryptographp', realpath(CRYPTO_PATH.'template/'.$conf['cryptographp']['template'].'.tpl'));
    1919$template->assign_var_from_handle('CRYPTOGRAPHP', 'cryptographp');
    20 
    21 ?>
  • extensions/CryptograPHP/include/contactform.inc.php

    r19428 r26041  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('CRYPTO_ID') or die('Hacking attempt!');
    33
    44include(CRYPTO_PATH.'include/common.inc.php');
     
    2929  if ($securimage->check($_POST['captcha_code']) == false)
    3030  {
    31     array_push($page['errors'], l10n('Invalid Captcha'));
     31    $page['errors'][] = l10n('Invalid Captcha');
    3232    return 'reject';
    3333  }
     
    3535  return $action;
    3636}
    37 
    38 ?>
  • extensions/CryptograPHP/include/guestbook.inc.php

    r20189 r26041  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('CRYPTO_ID') or die('Hacking attempt!');
    33
    44include(CRYPTO_PATH.'include/common.inc.php');
     
    2929  if ($securimage->check($_POST['captcha_code']) == false)
    3030  {
    31     array_push($page['errors'], l10n('Invalid Captcha'));
     31    $page['errors'][] = l10n('Invalid Captcha');
    3232    return 'reject';
    3333  }
     
    3535  return $action;
    3636}
    37 
    38 ?>
  • extensions/CryptograPHP/include/picture.inc.php

    r19428 r26041  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('CRYPTO_ID') or die('Hacking attempt!');
    33
    44include(CRYPTO_PATH.'include/common.inc.php');
     
    2929  if ($securimage->check($_POST['captcha_code']) == false)
    3030  {
    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');
    3232    return ($action != 'reject') ? $conf['cryptographp']['comments_action'] : 'reject';
    3333  }
     
    3535  return $action;
    3636}
    37 
    38 ?>
  • extensions/CryptograPHP/include/register.inc.php

    r19428 r26041  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('CRYPTO_ID') or die('Hacking attempt!');
    33
    44include(CRYPTO_PATH.'include/common.inc.php');
     
    2626  if ($securimage->check($_POST['captcha_code']) == false)
    2727  {
    28     array_push($errors, l10n('Invalid Captcha'));
     28    $errors[] = l10n('Invalid Captcha');
    2929  }
    3030
    3131  return $errors;
    3232}
    33 
    34 ?>
Note: See TracChangeset for help on using the changeset viewer.