<?php
// WCF includes
require_once(WCF_DIR.'lib/system/event/EventListener.class.php');

/**
 * The bouncer overwrites matching spidersettings with regular expressions
 *
 * @author	Torben Brodt
 * @package	de.easy-coding.wcf.spiderbouncer
 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-3.0.html>
 */
class OptionFormSpiderBouncerListener implements EventListener {

	/**
	 * @see EventListener::execute()
	 */
	public function execute($eventObj, $className, $eventName) {
		if ($eventObj->activeCategory == 'spiderbouncer' && $eventName == 'assignVariables') {
			WCF::getTPL()->append(
				'additionalFields', WCF::getTPL()->fetch('spiderbouncer')
			);
		}
	}
}
?>
