Project

General

Profile

1 596 thorn
<?php
2 1477 Luisehahne
/**
3
 *
4
 * @category        modules
5
 * @package         captcha_control
6
 * @author          WebsiteBaker Project
7 1718 Luisehahne
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8 1477 Luisehahne
 * @link            http://www.websitebaker2.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10 1891 Luisehahne
 * @platform        WebsiteBaker 2.8.3
11 1477 Luisehahne
 * @requirements    PHP 5.2.2 and higher
12
 * @version         $Id$
13
 * @filesource      $HeadURL$
14
 * @lastmodified    $Date$
15
 *
16
 */
17 1536 Luisehahne
/* -------------------------------------------------------- */
18 1891 Luisehahne
// Must include code to stop this file being accessed directly
19
if(!defined('WB_PATH')) {
20
	require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
21
	throw new IllegalFileException();
22
} else {
23
	$sError = array();
24
	// Create table
25
	if(!$database->SqlImport(dirname(__FILE__).'/sql/mod_captcha_control.sql','',false)){
26
		$sError[] = $database->get_error();
27
	}
28
// Insert data
29
	if(!$database->SqlImport(dirname(__FILE__).'/sql/data_captcha_control.sql','',false)){
30
		$sError[] = $database->get_error();
31
	}
32 1536 Luisehahne
}