0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
tuscamisetaspersonalizadas
/
components
/
com_contact
/
models
/
rules
/
[
Home
]
Name File: contactemailsubject.php
< back
<?php /** * @package Joomla.Site * @subpackage Contact * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; class JFormRuleContactEmailSubject extends JFormRule { public function test(& $element, $value, $group = null, & $input = null, & $form = null) { $params = JComponentHelper::getParams('com_contact'); $banned = $params->get('banned_subject'); foreach(explode(';', $banned) as $item){ if (JString::stristr($item, $value) !== false) return false; } return true; } }
©
2018. | Recode by D7net