Project

General

Profile

« Previous | Next » 

Revision 1179

Added by Dietmar over 14 years ago

validate captcha control

View differences:

branches/2.8.x/wb/modules/captcha_control/tool.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
// direct access prevention
27
defined('WB_PATH') OR die(header('Location: ../index.php'));
28

  
29
// check if module language file exists for the language set by the user (e.g. DE, EN)
30
if(!file_exists(WB_PATH .'/modules/captcha_control/languages/'.LANGUAGE .'.php')) {
31
	// no module language file exists for the language set by the user, include default module language file EN.php
32
	require_once(WB_PATH .'/modules/captcha_control/languages/EN.php');
33
} else {
34
	// a module language file exists for the language defined by the user, load it
35
	require_once(WB_PATH .'/modules/captcha_control/languages/'.LANGUAGE .'.php');
36
}
37

  
38
$table = TABLE_PREFIX.'mod_captcha_control';
39

  
40
// check if data was submitted
41
if(isset($_POST['save_settings'])) {
42
	// get configuration settings
43
	$enabled_captcha = ($_POST['enabled_captcha'] == '1') ? '1' : '0';
44
	$enabled_asp = ($_POST['enabled_asp'] == '1') ? '1' : '0';
45
	$captcha_type = $admin->add_slashes($_POST['captcha_type']);
46
	
47
	// update database settings
48
	$database->query("UPDATE $table SET
49
		enabled_captcha = '$enabled_captcha',
50
		enabled_asp = '$enabled_asp',
51
		captcha_type = '$captcha_type'
52
	");
53

  
54
	// save text-captchas
55
	if($captcha_type == 'text') { // ct_text
56
		$text_qa=$admin->add_slashes($_POST['text_qa']);
57
		if(!preg_match('/### .*? ###/', $text_qa)) {
58
			$database->query("UPDATE $table SET ct_text = '$text_qa'");
59
		}
60
	}
61
	
62
	// check if there is a database error, otherwise say successful
63
	if($database->is_error()) {
64
		$admin->print_error($database->get_error(), $js_back);
65
	} else {
66
		$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/admintools/tool.php?tool=captcha_control');
67
	}
68

  
69
} else {
70
	
71
	// include captcha-file
72
	require_once(WB_PATH .'/include/captcha/captcha.php');
73

  
74
	// load text-captchas
75
	$text_qa='';
76
	if($query = $database->query("SELECT ct_text FROM $table")) {
77
		$data = $query->fetchRow();
78
		$text_qa = $data['ct_text'];
79
	}
80
	if($text_qa == '')
81
		$text_qa = $MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'];
82

  
83
// script to load image
84
?>
85
<script type="text/javascript">
86
	var pics = new Array();
87

  
88
	pics["ttf_image"] = new Image();
89
	pics["ttf_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/ttf_image.png'?>";
90

  
91
	pics["calc_image"] = new Image();
92
	pics["calc_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_image.png'?>";
93
	
94
	pics["calc_ttf_image"] = new Image();
95
	pics["calc_ttf_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_ttf_image.png'?>";
96

  
97
	pics["old_image"] = new Image();
98
	pics["old_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/old_image.png'?>";
99
	
100
	pics["calc_text"] = new Image();
101
	pics["calc_text"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_text.png'?>";
102
	
103
	pics["text"] = new Image();
104
	pics["text"].src = "<?php echo WB_URL.'/include/captcha/captchas/text.png'?>";
105

  
106
	function load_captcha_image() {
107
		document.captcha_example.src = pics[document.store_settings.captcha_type.value].src;
108
		toggle_text_qa();
109
	}
110
	
111
	function toggle_text_qa() {
112
		if(document.store_settings.captcha_type.value == 'text' ) {
113
			document.getElementById('text_qa').style.display = '';
114
		} else {
115
			document.getElementById('text_qa').style.display = 'none';
116
		}
117
	}
118

  
119
</script>
120
<?php
121

  
122
	// connect to database and read out captcha settings
123
	if($query = $database->query("SELECT * FROM $table")) {
124
		$data = $query->fetchRow();
125
		$enabled_captcha = $data['enabled_captcha'];
126
		$enabled_asp = $data['enabled_asp'];
127
		$captcha_type = $data['captcha_type'];
128
	} else {
129
		// something went wrong, use dummy value
130
		$enabled_captcha = '1';
131
		$enabled_asp = '1';
132
		$captcha_type = 'calc_text';
133
	}
134
		
135
	// write out heading
136
	echo '<h2>' .$MOD_CAPTCHA_CONTROL['HEADING'] .'</h2>';
137

  
138
	// output the form with values from the database
139
	echo '<p>' .$MOD_CAPTCHA_CONTROL['HOWTO'] .'</p>';
140
?>
141
<form name="store_settings" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
142
	<table width="98%" cellspacing="0" border="0" cellpadding="5px" class="row_a">
143
	<tr><td colspan="2"><strong><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_CONF'];?>:</strong></td></tr>
144
	<tr>
145
		<td width="30%"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'];?>:</td>
146
		<td>
147
		<select name="captcha_type" id="captcha_type" onchange="load_captcha_image()" style="width: 98%;">
148
			<?php foreach($useable_captchas AS $key=>$text) {
149
			echo "<option value=\"$key\" ".($captcha_type==$key?'selected':'').">$text</option>";
150
			} ?>
151
		</select>
152
		</td>
153
	</tr>
154
	<tr height="55px">
155
		<td>&nbsp;</td>
156
		<td align="left" width="150px"><img name="captcha_example" id="captcha_example" src="<?php echo WB_URL.'/include/captcha/captchas/'.$captcha_type.'.png'?>" ></td>
157
	</tr>
158
	<tr id="text_qa" style="display:<?php if($captcha_type=='text') echo ''; else echo 'none'; ;?>;">
159
		<td valign="top" class="setting_name"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT'];?>:</td>
160
		<td class="setting_value" colspan="2">
161
			<textarea name="text_qa" wrap="off" cols="60" rows="10"><?php echo $text_qa; ?></textarea>
162
		</td>
163
	</tr>
164
	<tr>
165
		<td><?php echo $MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA'];?>:</td>
166
		<td>
167
			<input type="radio" <?php echo ($enabled_captcha=='1') ?'checked="checked"' :'';?>
168
				name="enabled_captcha" value="1"><?php echo $MOD_CAPTCHA_CONTROL['ENABLED'];?>
169
			<input type="radio" <?php echo ($enabled_captcha=='0') ?'checked="checked"' :'';?>
170
				name="enabled_captcha" value="0"><?php echo $MOD_CAPTCHA_CONTROL['DISABLED'];?>
171
		</td>
172
	</tr>
173
	<tr><td>&nbsp;</td><td style="font-size:smaller;"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'];?></td></tr>
174
	<tr><td colspan="2"><br /><strong><?php echo $MOD_CAPTCHA_CONTROL['ASP_CONF'];?>:</strong></td></tr>
175
	<tr>
176
		<td><?php echo $MOD_CAPTCHA_CONTROL['ASP_TEXT'];?>:</td>
177
		<td>
178
			<input type="radio" <?php echo ($enabled_asp=='1') ?'checked="checked"' :'';?>
179
				name="enabled_asp" value="1"><?php echo $MOD_CAPTCHA_CONTROL['ENABLED'];?>
180
			<input type="radio" <?php echo ($enabled_asp=='0') ?'checked="checked"' :'';?>
181
				name="enabled_asp" value="0"><?php echo $MOD_CAPTCHA_CONTROL['DISABLED'];?>
182
		</td>
183
	</tr>
184
	<tr><td>&nbsp;</td><td style="font-size:smaller;"><?php echo $MOD_CAPTCHA_CONTROL['ASP_EXP'];?></td></tr>
185
	</table>
186
	<input type="submit" name="save_settings" style="margin-top:10px; width:140px;" value="<?php echo $TEXT['SAVE']; ?>" />
187
</form>
188
<?php
189
}
190

  
191
?>
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
// direct access prevention
27
defined('WB_PATH') OR die(header('Location: ../index.php'));
28

  
29
// check if module language file exists for the language set by the user (e.g. DE, EN)
30
if(!file_exists(WB_PATH .'/modules/captcha_control/languages/'.LANGUAGE .'.php')) {
31
	// no module language file exists for the language set by the user, include default module language file EN.php
32
	require_once(WB_PATH .'/modules/captcha_control/languages/EN.php');
33
} else {
34
	// a module language file exists for the language defined by the user, load it
35
	require_once(WB_PATH .'/modules/captcha_control/languages/'.LANGUAGE .'.php');
36
}
37

  
38
$table = TABLE_PREFIX.'mod_captcha_control';
39

  
40
// check if data was submitted
41
if(isset($_POST['save_settings'])) {
42
	// get configuration settings
43
	$enabled_captcha = ($_POST['enabled_captcha'] == '1') ? '1' : '0';
44
	$enabled_asp = ($_POST['enabled_asp'] == '1') ? '1' : '0';
45
	$captcha_type = $admin->add_slashes($_POST['captcha_type']);
46
	
47
	// update database settings
48
	$database->query("UPDATE $table SET
49
		enabled_captcha = '$enabled_captcha',
50
		enabled_asp = '$enabled_asp',
51
		captcha_type = '$captcha_type'
52
	");
53

  
54
	// save text-captchas
55
	if($captcha_type == 'text') { // ct_text
56
		$text_qa=$admin->add_slashes($_POST['text_qa']);
57
		if(!preg_match('/### .*? ###/', $text_qa)) {
58
			$database->query("UPDATE $table SET ct_text = '$text_qa'");
59
		}
60
	}
61
	
62
	// check if there is a database error, otherwise say successful
63
	if($database->is_error()) {
64
		$admin->print_error($database->get_error(), $js_back);
65
	} else {
66
		$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/admintools/tool.php?tool=captcha_control');
67
	}
68

  
69
} else {
70
	
71
	// include captcha-file
72
	require_once(WB_PATH .'/include/captcha/captcha.php');
73

  
74
	// load text-captchas
75
	$text_qa='';
76
	if($query = $database->query("SELECT ct_text FROM $table")) {
77
		$data = $query->fetchRow();
78
		$text_qa = $data['ct_text'];
79
	}
80
	if($text_qa == '')
81
		$text_qa = $MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'];
82

  
83
// script to load image
84
?>
85
<script type="text/javascript">
86
	var pics = new Array();
87

  
88
	pics["ttf_image"] = new Image();
89
	pics["ttf_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/ttf_image.png'?>";
90

  
91
	pics["calc_image"] = new Image();
92
	pics["calc_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_image.png'?>";
93

  
94
	pics["calc_ttf_image"] = new Image();
95
	pics["calc_ttf_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_ttf_image.png'?>";
96

  
97
	pics["old_image"] = new Image();
98
	pics["old_image"].src = "<?php echo WB_URL.'/include/captcha/captchas/old_image.png'?>";
99
	
100
	pics["calc_text"] = new Image();
101
	pics["calc_text"].src = "<?php echo WB_URL.'/include/captcha/captchas/calc_text.png'?>";
102
	
103
	pics["text"] = new Image();
104
	pics["text"].src = "<?php echo WB_URL.'/include/captcha/captchas/text.png'?>";
105

  
106
	function load_captcha_image() {
107
		document.captcha_example.src = pics[document.store_settings.captcha_type.value].src;
108
		toggle_text_qa();
109
	}
110
	
111
	function toggle_text_qa() {
112
		if(document.store_settings.captcha_type.value == 'text' ) {
113
			document.getElementById('text_qa').style.display = '';
114
		} else {
115
			document.getElementById('text_qa').style.display = 'none';
116
		}
117
	}
118

  
119
</script>
120
<?php
121

  
122
	// connect to database and read out captcha settings
123
	if($query = $database->query("SELECT * FROM $table")) {
124
		$data = $query->fetchRow();
125
		$enabled_captcha = $data['enabled_captcha'];
126
		$enabled_asp = $data['enabled_asp'];
127
		$captcha_type = $data['captcha_type'];
128
	} else {
129
		// something went wrong, use dummy value
130
		$enabled_captcha = '1';
131
		$enabled_asp = '1';
132
		$captcha_type = 'calc_text';
133
	}
134
		
135
	// write out heading
136
	echo '<h2>' .$MOD_CAPTCHA_CONTROL['HEADING'] .'</h2>';
137

  
138
	// output the form with values from the database
139
	echo '<p>' .$MOD_CAPTCHA_CONTROL['HOWTO'] .'</p>';
140
?>
141
<form name="store_settings" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
142
	<table width="98%" cellspacing="0" border="0" cellpadding="5px" class="row_a">
143
	<tr><td colspan="2"><strong><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_CONF'];?>:</strong></td></tr>
144
	<tr>
145
		<td width="30%"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE'];?>:</td>
146
		<td>
147
		<select name="captcha_type" id="captcha_type" onchange="load_captcha_image()" style="width: 98%;">
148
			<?php foreach($useable_captchas AS $key=>$text) {
149
			echo "<option value=\"$key\" ".($captcha_type==$key ? ' selected="selected"' : '').">$text</option>";
150
			} ?>
151
		</select>
152
		</td>
153
	</tr>
154
	<tr>
155
		<td>&nbsp;</td>
156
		<td align="left" width="150px">
157
            <img alt="captcha_example" id="captcha_example" src="<?php echo WB_URL.'/include/captcha/captchas/'.$captcha_type.'.png'?>" />
158
        </td>
159
	</tr>
160
	<tr id="text_qa" style="display:<?php if($captcha_type=='text') echo ''; else echo 'none'; ;?>;">
161
		<td valign="top" class="setting_name"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT'];?>:</td>
162
		<td class="setting_value" colspan="2">
163
			<textarea name="text_qa" cols="60" rows="10"><?php echo $text_qa; ?></textarea>
164
		</td>
165
	</tr>
166
	<tr>
167
		<td><?php echo $MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA'];?>:</td>
168
		<td>
169
			<input type="radio" <?php echo ($enabled_captcha=='1') ?'checked="checked"' :'';?>
170
				name="enabled_captcha" value="1" /><?php echo $MOD_CAPTCHA_CONTROL['ENABLED'];?>
171
			<input type="radio" <?php echo ($enabled_captcha=='0') ?'checked="checked"' :'';?>
172
				name="enabled_captcha" value="0" /><?php echo $MOD_CAPTCHA_CONTROL['DISABLED'];?>
173
		</td>
174
	</tr>
175
	<tr><td>&nbsp;</td><td style="font-size:smaller;"><?php echo $MOD_CAPTCHA_CONTROL['CAPTCHA_EXP'];?></td></tr>
176
	<tr><td colspan="2"><br /><strong><?php echo $MOD_CAPTCHA_CONTROL['ASP_CONF'];?>:</strong></td></tr>
177
	<tr>
178
		<td><?php echo $MOD_CAPTCHA_CONTROL['ASP_TEXT'];?>:</td>
179
		<td>
180
			<input type="radio" <?php echo ($enabled_asp=='1') ?'checked="checked"' :'';?>
181
				name="enabled_asp" value="1" /><?php echo $MOD_CAPTCHA_CONTROL['ENABLED'];?>
182
			<input type="radio" <?php echo ($enabled_asp=='0') ?'checked="checked"' :'';?>
183
				name="enabled_asp" value="0" /><?php echo $MOD_CAPTCHA_CONTROL['DISABLED'];?>
184
		</td>
185
	</tr>
186
	<tr>
187
        <td>&nbsp;</td>
188
        <td style="font-size:smaller;"><?php echo $MOD_CAPTCHA_CONTROL['ASP_EXP'];?></td>
189
    </tr>
190
	</table>
191
	<input type="submit" name="save_settings" style="margin-top:10px; width:140px;" value="<?php echo $TEXT['SAVE']; ?>" />
192
</form>
193
<?php
194
}
195

  
196
?>
branches/2.8.x/wb/modules/captcha_control/languages/EN.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
 -----------------------------------------------------------------------------------------
25
  ENGLISH LANGUAGE FILE FOR THE CAPTCHA-CONTROL ADMIN TOOL
26
 -----------------------------------------------------------------------------------------
27
*/
28

  
29
// Headings and text outputs
30
$MOD_CAPTCHA_CONTROL['HEADING']           = 'Captcha and ASP control';
31
$MOD_CAPTCHA_CONTROL['HOWTO']             = 'Here you can control the behavior of "CAPTCHA" and "Advanced Spam Protection" (ASP). To get ASP work with a given module, this special module has to be adapted to make use of ASP.';
32

  
33
// Text and captions of form elements
34
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF']      = 'CAPTCHA Configuration';
35
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE']      = 'Type of CAPTCHA';
36
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP']       = 'CAPTCHA settings for modules are located in the respective module settings';
37
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA']= 'Activate CAPTCHA for signup';
38
$MOD_CAPTCHA_CONTROL['ENABLED']           = 'Enabled';
39
$MOD_CAPTCHA_CONTROL['DISABLED']          = 'Disabled';
40
$MOD_CAPTCHA_CONTROL['ASP_CONF']          = 'Advanced Spam Protection Configuration';
41
$MOD_CAPTCHA_CONTROL['ASP_TEXT']          = 'Activate ASP (if available)';
42
$MOD_CAPTCHA_CONTROL['ASP_EXP']           = 'ASP tries to determine if a form-input was originated from a human or a spam-bot.';
43
$MOD_CAPTCHA_CONTROL['CALC_TEXT']         = 'Calculation as text';
44
$MOD_CAPTCHA_CONTROL['CALC_IMAGE']        = 'Calculation as image';
45
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE']    = 'Calculation as image with varying fonts and backgrounds'; 
46
$MOD_CAPTCHA_CONTROL['TTF_IMAGE']         = 'Image with varying fonts and backgrounds';
47
$MOD_CAPTCHA_CONTROL['OLD_IMAGE']         = 'Old style (not recommended)';
48
$MOD_CAPTCHA_CONTROL['TEXT']              = 'Text-CAPTCHA';
49
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT']= 'Questions and Answers';
50
$MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'] = 'Delete this all to add your own entries'."\n".'or your changes won\'t be saved!'."\n".'### example ###'."\n".'Here you can enter Questions and Answers.'."\n".'Use:'."\n".'?What\'s <b>Claudia</b> Schiffer\'s <b>first name</b>?'."\n".'!Claudia'."\n".'?Question 2'."\n".'!Answer 2'."\n".''."\n".'if language doesn\'t matter.'."\n".' ... '."\n".'Or, if language do matter, use:'."\n".'?EN:What\'s <b>Claudia</b> Schiffer\'s <b>first name</b>?'."\n".'!Claudia'."\n".'?EN:Question 2'."\n".'!Answer 2'."\n".'?DE:Wie ist der <b>Vorname</b> von <b>Claudia</b> Schiffer?'."\n".'!Claudia'."\n".' ... '."\n".'### example ###'."\n".'';
51

  
52
$MOD_CAPTCHA['VERIFICATION']           = 'Verification';
53
$MOD_CAPTCHA['ADDITION']               = 'add';
54
$MOD_CAPTCHA['SUBTRAKTION']            = 'subtract';
55
$MOD_CAPTCHA['MULTIPLIKATION']         = 'multiply';
56
$MOD_CAPTCHA['VERIFICATION_INFO_RES']  = 'Fill in the result';
57
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Fill in the text';
58
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Answer the question';
59
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Verification failed';
60

  
61
?>
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
 -----------------------------------------------------------------------------------------

25
  ENGLISH LANGUAGE FILE FOR THE CAPTCHA-CONTROL ADMIN TOOL

26
 -----------------------------------------------------------------------------------------

27
*/

28

  
29
// Headings and text outputs

30
$MOD_CAPTCHA_CONTROL['HEADING']           = 'Captcha and ASP control';

31
$MOD_CAPTCHA_CONTROL['HOWTO']             = 'Here you can control the behavior of "CAPTCHA" and "Advanced Spam Protection" (ASP). To get ASP work with a given module, this special module has to be adapted to make use of ASP.';

32

  
33
// Text and captions of form elements

34
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF']      = 'CAPTCHA Configuration';

35
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE']      = 'Type of CAPTCHA';

36
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP']       = 'CAPTCHA settings for modules are located in the respective module settings';

37
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA']= 'Activate CAPTCHA for signup';

38
$MOD_CAPTCHA_CONTROL['ENABLED']           = 'Enabled';

39
$MOD_CAPTCHA_CONTROL['DISABLED']          = 'Disabled';

40
$MOD_CAPTCHA_CONTROL['ASP_CONF']          = 'Advanced Spam Protection Configuration';

41
$MOD_CAPTCHA_CONTROL['ASP_TEXT']          = 'Activate ASP (if available)';

42
$MOD_CAPTCHA_CONTROL['ASP_EXP']           = 'ASP tries to determine if a form-input was originated from a human or a spam-bot.';

43
$MOD_CAPTCHA_CONTROL['CALC_TEXT']         = 'Calculation as text';

44
$MOD_CAPTCHA_CONTROL['CALC_IMAGE']        = 'Calculation as image';

45
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE']    = 'Calculation as image with varying fonts and backgrounds'; 

46
$MOD_CAPTCHA_CONTROL['TTF_IMAGE']         = 'Image with varying fonts and backgrounds';

47
$MOD_CAPTCHA_CONTROL['OLD_IMAGE']         = 'Old style (not recommended)';

48
$MOD_CAPTCHA_CONTROL['TEXT']              = 'Text-CAPTCHA';

49
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT']= 'Questions and Answers';

50
$MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'] = 'Delete this all to add your own entries'."\n".'or your changes won\'t be saved!'."\n".'### example ###'."\n".'Here you can enter Questions and Answers.'."\n".'Use:'."\n".'?What\'s Claudia Schiffer\'s first name?'."\n".'!Claudia'."\n".'?Question 2'."\n".'!Answer 2'."\n".''."\n".'if language doesn\'t matter.'."\n".' ... '."\n".'Or, if language do matter, use:'."\n".'?EN:What\'s Claudia Schiffer\'s first name?'."\n".'!Claudia'."\n".'?EN:Question 2'."\n".'!Answer 2'."\n".'?DE:Wie ist der Vorname von Claudia Schiffer?'."\n".'!Claudia'."\n".' ... '."\n".'### example ###'."\n".'';

51

  
52
$MOD_CAPTCHA['VERIFICATION']           = 'Verification';

53
$MOD_CAPTCHA['ADDITION']               = 'add';

54
$MOD_CAPTCHA['SUBTRAKTION']            = 'subtract';

55
$MOD_CAPTCHA['MULTIPLIKATION']         = 'multiply';

56
$MOD_CAPTCHA['VERIFICATION_INFO_RES']  = 'Fill in the result';

57
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Fill in the text';

58
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Answer the question';

59
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Verification failed';

60

  
61
?>
branches/2.8.x/wb/modules/captcha_control/languages/DE.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
 -----------------------------------------------------------------------------------------
25
  DEUTSCHE SPRACHDATEI FUER DAS CAPTCHA-CONTROL ADMINISTRATIONS TOOL
26
 -----------------------------------------------------------------------------------------
27
*/
28

  
29
// Deutsche Modulbeschreibung
30
$module_description 	= 'Admin-Tool um das Verhalten von CAPTCHA und ASP zu kontrollieren';
31

  
32
// Ueberschriften und Textausgaben
33
$MOD_CAPTCHA_CONTROL['HEADING']           = 'Captcha- und ASP Steuerung';
34
$MOD_CAPTCHA_CONTROL['HOWTO']             = 'Hiermit kann das Verhalten von "CAPTCHA" und "Advanced Spam Protection" (ASP) gesteuert werden. Damit ASP in einem Modul wirken kann, muss das verwendete Modul entsprechend angepasst sein.';
35

  
36
// Text and captions of form elements
37
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF']      = 'CAPTCHA-Einstellungen';
38
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE']      = 'CAPTCHA-Typ';
39
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP']       = 'Die CAPTCHA-Einstellungen f&uuml;r die Module befinden sich in den jeweiligen Modul-Optionen';
40
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA']= 'CAPTCHA f&uuml;r Registrierung aktivieren';
41
$MOD_CAPTCHA_CONTROL['ENABLED']           = 'Aktiviert';
42
$MOD_CAPTCHA_CONTROL['DISABLED']          = 'Ausgeschaltet';
43
$MOD_CAPTCHA_CONTROL['ASP_CONF']          = 'Erweiterter-Spam-Schutz (ASP) Einstellungen';
44
$MOD_CAPTCHA_CONTROL['ASP_TEXT']          = 'ASP benutzen (wenn im Modul vorhanden)';
45
$MOD_CAPTCHA_CONTROL['ASP_EXP']           = 'ASP versucht anhand der verschiedenen Verhaltensweisen zu erkennen, ob eine Formular-Eingabe von einem Menschen oder einem Spam-Bot kommt.';
46
$MOD_CAPTCHA_CONTROL['CALC_TEXT']         = 'Rechnung als Text';
47
$MOD_CAPTCHA_CONTROL['CALC_IMAGE']        = 'Rechnung als Bild';
48
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE']    = 'Rechnung als Bild mit wechselnden Schriften und Hintergr&uuml;nden';
49
$MOD_CAPTCHA_CONTROL['TTF_IMAGE']         = 'Bild mit wechselnden Schriften und Hintergr&uuml;nden';
50
$MOD_CAPTCHA_CONTROL['OLD_IMAGE']         = 'Alter Stil (nicht empfohlen)';
51
$MOD_CAPTCHA_CONTROL['TEXT']              = 'Text-CAPTCHA';
52
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT']= 'Fragen und Antworten';
53
$MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'] = 'Bitte hier alles l&ouml;schen'."\n".'sonst werden Ihre &Auml;nderungen nicht gespeichert!'."\n".'### Beispiel ###'."\n".'Hier k&ouml;nnen sie Fragen und Antworten eingeben.'."\n".'Entweder:'."\n".'?Wie ist der <b>Vorname</b> von <b>Claudia</b> Schiffer?'."\n".'!Claudia'."\n".'?Frage 2'."\n".'!Antwort 2'."\n".' ... '."\n".'wenn nur eine Sprache benutzt wird.'."\n".''."\n".'Oder, wenn die Sprache relevant ist:'."\n".'?EN:What\'s <b>Claudia</b> Schiffer\'s <b>first name</b>?'."\n".'!Claudia'."\n".'?EN:Question 2'."\n".'!Answer 2'."\n".'?DE:Wie ist der <b>Vorname</b> von <b>Claudia</b> Schiffer?'."\n".'!Claudia'."\n".' ... '."\n".'### Beispiel ###'."\n".'';
54
$MOD_CAPTCHA['VERIFICATION']           = 'Pr&uuml;fziffer';
55
$MOD_CAPTCHA['ADDITION']               = 'plus';
56
$MOD_CAPTCHA['SUBTRAKTION']            = 'minus';
57
$MOD_CAPTCHA['MULTIPLIKATION']         = 'mal';
58
$MOD_CAPTCHA['VERIFICATION_INFO_RES']  = 'Bitte Ergebnis eintragen';
59
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Bitte Text eintragen';
60
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Bitte Frage beantworten';
61
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Das Ergebnis ist falsch. Bitte tragen Sie es erneut ein';
62

  
63
?>
1
<?php

2

  
3
// $Id$

4

  
5
/*

6

  
7
 Website Baker Project <http://www.websitebaker.org/>

8
 Copyright (C) 2004-2009, Ryan Djurovich

9

  
10
 Website Baker is free software; you can redistribute it and/or modify

11
 it under the terms of the GNU General Public License as published by

12
 the Free Software Foundation; either version 2 of the License, or

13
 (at your option) any later version.

14

  
15
 Website Baker is distributed in the hope that it will be useful,

16
 but WITHOUT ANY WARRANTY; without even the implied warranty of

17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

18
 GNU General Public License for more details.

19

  
20
 You should have received a copy of the GNU General Public License

21
 along with Website Baker; if not, write to the Free Software

22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

23

  
24
 -----------------------------------------------------------------------------------------

25
  DEUTSCHE SPRACHDATEI FUER DAS CAPTCHA-CONTROL ADMINISTRATIONS TOOL

26
 -----------------------------------------------------------------------------------------

27
*/

28

  
29
// Deutsche Modulbeschreibung

30
$module_description 	= 'Admin-Tool um das Verhalten von CAPTCHA und ASP zu kontrollieren';

31

  
32
// Ueberschriften und Textausgaben

33
$MOD_CAPTCHA_CONTROL['HEADING']           = 'Captcha- und ASP Steuerung';

34
$MOD_CAPTCHA_CONTROL['HOWTO']             = 'Hiermit kann das Verhalten von "CAPTCHA" und "Advanced Spam Protection" (ASP) gesteuert werden. Damit ASP in einem Modul wirken kann, muss das verwendete Modul entsprechend angepasst sein.';

35

  
36
// Text and captions of form elements

37
$MOD_CAPTCHA_CONTROL['CAPTCHA_CONF']      = 'CAPTCHA-Einstellungen';

38
$MOD_CAPTCHA_CONTROL['CAPTCHA_TYPE']      = 'CAPTCHA-Typ';

39
$MOD_CAPTCHA_CONTROL['CAPTCHA_EXP']       = 'Die CAPTCHA-Einstellungen f&uuml;r die Module befinden sich in den jeweiligen Modul-Optionen';

40
$MOD_CAPTCHA_CONTROL['USE_SIGNUP_CAPTCHA']= 'CAPTCHA f&uuml;r Registrierung aktivieren';

41
$MOD_CAPTCHA_CONTROL['ENABLED']           = 'Aktiviert';

42
$MOD_CAPTCHA_CONTROL['DISABLED']          = 'Ausgeschaltet';

43
$MOD_CAPTCHA_CONTROL['ASP_CONF']          = 'Erweiterter-Spam-Schutz (ASP) Einstellungen';

44
$MOD_CAPTCHA_CONTROL['ASP_TEXT']          = 'ASP benutzen (wenn im Modul vorhanden)';

45
$MOD_CAPTCHA_CONTROL['ASP_EXP']           = 'ASP versucht anhand der verschiedenen Verhaltensweisen zu erkennen, ob eine Formular-Eingabe von einem Menschen oder einem Spam-Bot kommt.';

46
$MOD_CAPTCHA_CONTROL['CALC_TEXT']         = 'Rechnung als Text';

47
$MOD_CAPTCHA_CONTROL['CALC_IMAGE']        = 'Rechnung als Bild';

48
$MOD_CAPTCHA_CONTROL['CALC_TTF_IMAGE']    = 'Rechnung als Bild mit wechselnden Schriften und Hintergr&uuml;nden';

49
$MOD_CAPTCHA_CONTROL['TTF_IMAGE']         = 'Bild mit wechselnden Schriften und Hintergr&uuml;nden';

50
$MOD_CAPTCHA_CONTROL['OLD_IMAGE']         = 'Alter Stil (nicht empfohlen)';

51
$MOD_CAPTCHA_CONTROL['TEXT']              = 'Text-CAPTCHA';

52
$MOD_CAPTCHA_CONTROL['CAPTCHA_ENTER_TEXT']= 'Fragen und Antworten';

53
$MOD_CAPTCHA_CONTROL['CAPTCHA_TEXT_DESC'] = 'Bitte hier alles l&ouml;schen'."\n".'sonst werden Ihre &Auml;nderungen nicht gespeichert!'."\n".'### Beispiel ###'."\n".'Hier k&ouml;nnen sie Fragen und Antworten eingeben.'."\n".'Entweder:'."\n".'?Wie ist der Vorname von Claudia Schiffer?'."\n".'!Claudia'."\n".'?Frage 2'."\n".'!Antwort 2'."\n".' ... '."\n".'wenn nur eine Sprache benutzt wird.'."\n".''."\n".'Oder, wenn die Sprache relevant ist:'."\n".'?EN:What\'s Claudia Schiffer\'s first name?'."\n".'!Claudia'."\n".'?EN:Question 2'."\n".'!Answer 2'."\n".'?DE:Wie ist der Vorname von Claudia Schiffer?'."\n".'!Claudia'."\n".' ... '."\n".'### Beispiel ###'."\n".'';

54
$MOD_CAPTCHA['VERIFICATION']           = 'Pr&uuml;fziffer';

55
$MOD_CAPTCHA['ADDITION']               = 'plus';

56
$MOD_CAPTCHA['SUBTRAKTION']            = 'minus';

57
$MOD_CAPTCHA['MULTIPLIKATION']         = 'mal';

58
$MOD_CAPTCHA['VERIFICATION_INFO_RES']  = 'Bitte Ergebnis eintragen';

59
$MOD_CAPTCHA['VERIFICATION_INFO_TEXT'] = 'Bitte Text eintragen';

60
$MOD_CAPTCHA['VERIFICATION_INFO_QUEST'] = 'Bitte Frage beantworten';

61
$MOD_CAPTCHA['INCORRECT_VERIFICATION'] = 'Das Ergebnis ist falsch. Bitte tragen Sie es erneut ein';

62

  
63
?>

Also available in: Unified diff