Revision 1573
Added by Luisehahne almost 13 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
=========================== add small Features 2.8.2 ========================== |
14 |
16 Jan-2012 Build 1573 Dietmar Woellbrink (Luisehahne) |
|
15 |
+ add automatically generated e-mail language form variable |
|
16 |
! send confirmation mail with details to superadmin from SERVER_EMAIL |
|
17 |
! send confirmation mail without details to sender from SERVER_EMAIL |
|
14 | 18 |
14 Jan-2012 Build 1572 Dietmar Woellbrink (Luisehahne) |
15 | 19 |
! security fix, force SMTP Authentifikation |
16 | 20 |
! server and email settings only for superadmin |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.2'); |
55 |
if(!defined('REVISION')) define('REVISION', '1572');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1573');
|
|
56 | 56 |
if(!defined('SP')) define('SP', 'SP2'); |
branches/2.8.x/wb/languages/EN.php | ||
---|---|---|
540 | 540 |
$MESSAGE['MEDIA_TARGET_DOT_DOT_SLASH'] = 'Cannot have ../ in the folder target'; |
541 | 541 |
$MESSAGE['MEDIA_UPLOADED'] = ' files were successfully uploaded'; |
542 | 542 |
$MESSAGE['MOD_FORM_EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
543 |
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email: <a href="mailto:'.'.SERVER_EMAIL.'.'">'.'.SERVER_EMAIL.'.'</a>';
|
|
543 |
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email: <a href="mailto:'.SERVER_EMAIL.'">'.SERVER_EMAIL.'</a>';
|
|
544 | 544 |
$MESSAGE['MOD_FORM_REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
545 | 545 |
$MESSAGE['PAGES_ADDED'] = 'Page added successfully'; |
546 | 546 |
$MESSAGE['PAGES_ADDED_HEADING'] = 'Page heading added successfully'; |
branches/2.8.x/wb/modules/form/modify_settings.php | ||
---|---|---|
24 | 24 |
require(WB_PATH.'/modules/admin.php'); |
25 | 25 |
|
26 | 26 |
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css) |
27 |
@include_once(WB_PATH .'/framework/module.functions.php');
|
|
27 |
include_once(WB_PATH .'/framework/module.functions.php'); |
|
28 | 28 |
|
29 | 29 |
// load module language file |
30 | 30 |
$lang = (dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php'; |
... | ... | |
32 | 32 |
|
33 | 33 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : '' ); |
34 | 34 |
|
35 |
if (!function_exists('emailAdmin')) { |
|
36 |
function emailAdmin() { |
|
37 |
global $database,$admin; |
|
38 |
$retval = $admin->get_email(); |
|
39 |
if($admin->get_user_id()!='1') { |
|
40 |
$sql = 'SELECT `email` FROM `'.TABLE_PREFIX.'users` '; |
|
41 |
$sql .= 'WHERE `user_id`=\'1\' '; |
|
42 |
$retval = $database->get_one($sql); |
|
43 |
} |
|
44 |
return $retval; |
|
45 |
} |
|
46 |
} |
|
47 |
|
|
35 | 48 |
// Get Settings from DB |
36 | 49 |
$sql = 'SELECT * FROM '.TABLE_PREFIX.'mod_form_settings '; |
37 | 50 |
$sql .= 'WHERE `section_id` = '.(int)$section_id.''; |
38 | 51 |
if($query_content = $database->query($sql)) { |
39 | 52 |
$setting = $query_content->fetchRow(MYSQL_ASSOC); |
40 |
$setting['email_to'] = ($setting['email_to'] != '' ? $setting['email_to'] : SERVER_EMAIL);
|
|
41 |
$setting['email_subject'] = ($setting['email_subject'] != '') ? $setting['email_subject'] : $MOD_FORM['EMAIL_SUBJECT'];
|
|
42 |
$setting['success_email_subject'] = ($setting['success_email_subject'] != '') ? $setting['success_email_subject'] : $MOD_FORM['SUCCESS_EMAIL_SUBJECT'];
|
|
53 |
$setting['email_to'] = ($setting['email_to'] != '' ? $setting['email_to'] : emailAdmin());
|
|
54 |
$setting['email_subject'] = ($setting['email_subject'] != '') ? $setting['email_subject'] : '';
|
|
55 |
$setting['success_email_subject'] = ($setting['success_email_subject'] != '') ? $setting['success_email_subject'] : '';
|
|
43 | 56 |
$setting['success_email_from'] = ($setting['success_email_from'] != '' ? $setting['success_email_from'] : SERVER_EMAIL); |
44 | 57 |
$setting['success_email_fromname'] = ($setting['success_email_fromname'] != '' ? $setting['success_email_fromname'] : WBMAILER_DEFAULT_SENDERNAME); |
45 |
$setting['success_email_subject'] = ($setting['success_email_subject'] != '') ? $setting['success_email_subject'] : $MOD_FORM['SUCCESS_EMAIL_SUBJECT']; |
|
46 |
|
|
58 |
$setting['success_email_subject'] = ($setting['success_email_subject'] != '') ? $setting['success_email_subject'] : ''; |
|
47 | 59 |
} |
48 | 60 |
|
49 | 61 |
// Set raw html <'s and >'s to be replace by friendly html code |
... | ... | |
124 | 136 |
<td colspan="2"><strong><?php echo $TEXT['EMAIL'].' '.$TEXT['SETTINGS']; ?></strong></td> |
125 | 137 |
</tr> |
126 | 138 |
<tr> |
127 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_TEXT['TO']; ?>:</td>
|
|
139 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_FORM['TO']; ?>:</td>
|
|
128 | 140 |
<td class="frm-setting_value"> |
129 | 141 |
<input type="text" name="email_to" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_to'])); ?>" /> |
130 | 142 |
</td> |
131 | 143 |
</tr> |
132 | 144 |
<tr> |
133 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_TEXT['FROM']; ?>:</td>
|
|
145 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_FORM['FROM']; ?>:</td>
|
|
134 | 146 |
<td class="frm-setting_value"> |
135 | 147 |
<select name="email_from_field" style="width: 98%;"> |
136 | 148 |
<option value="" onclick="javascript: document.getElementById('email_from').style.display = 'block';"><?php echo $TEXT['CUSTOM']; ?>:</option> |
... | ... | |
190 | 202 |
<input type="text" name="email_subject" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['email_subject'])); ?>" /> |
191 | 203 |
</td> |
192 | 204 |
</tr> |
193 |
</table> |
|
205 |
<tr><td> </td></tr> |
|
206 |
</table> |
|
194 | 207 |
<!-- Erfolgreich Optionen --> |
195 |
<table summary="<?php echo $TEXT['SUCCESS'].' '.$TEXT['SETTINGS']; ?>" class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;"> |
|
208 |
<table summary="<?php echo $TEXT['EMAIL'].' '.$MOD_FORM['CONFIRM']; ?>" class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%" style="margin-top: 3px;"> |
|
209 |
<thead> |
|
196 | 210 |
<tr> |
197 |
<td colspan="2"><strong><?php echo $TEXT['SUCCESS'].' '.$TEXT['SETTINGS']; ?></strong></td>
|
|
211 |
<th colspan="2"><strong><?php echo $TEXT['EMAIL'].' '.$MOD_FORM['CONFIRM']; ?></strong></th>
|
|
198 | 212 |
</tr> |
213 |
</thead> |
|
214 |
<tbody> |
|
199 | 215 |
<tr> |
200 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_TEXT['TO']; ?>:</td>
|
|
216 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_FORM['TO']; ?>:</td>
|
|
201 | 217 |
<td class="frm-setting_value"> |
202 | 218 |
<select name="success_email_to" style="width: 98%;"> |
203 | 219 |
<option value="" onclick="javascript: document.getElementById('success_email_to').style.display = 'block';"><?php echo $TEXT['NONE']; ?></option> |
... | ... | |
223 | 239 |
</td> |
224 | 240 |
</tr> |
225 | 241 |
<tr> |
226 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_TEXT['FROM']; ?>:</td>
|
|
242 |
<td class="frm-setting_name"><?php echo $TEXT['EMAIL'].' '.$MOD_FORM['FROM']; ?>:</td>
|
|
227 | 243 |
<td class="frm-setting_value"> |
228 | 244 |
<input type="text" name="success_email_from" style="width: 98%;" maxlength="255" value="<?php echo str_replace($raw, $friendly, ($setting['success_email_from'])); ?>" /> |
229 | 245 |
</td> |
... | ... | |
272 | 288 |
</select> |
273 | 289 |
</td> |
274 | 290 |
</tr> |
291 |
</tbody> |
|
275 | 292 |
</table> |
276 | 293 |
|
277 | 294 |
<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%"> |
branches/2.8.x/wb/modules/form/view.php | ||
---|---|---|
27 | 27 |
// load module language file |
28 | 28 |
$lang = (dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php'; |
29 | 29 |
require_once(!file_exists($lang) ? (dirname(__FILE__)) . '/languages/EN.php' : $lang ); |
30 |
|
|
31 |
include_once(WB_PATH .'/framework/functions.php'); |
|
30 | 32 |
/* |
31 | 33 |
function removebreaks($value) { |
32 | 34 |
return trim(preg_replace('=((<CR>|<LF>|0x0A/%0A|0x0D/%0D|\\n|\\r)\S).*=i', null, $value)); |
... | ... | |
35 | 37 |
return $value === removebreaks($value); |
36 | 38 |
} |
37 | 39 |
*/ |
40 |
|
|
41 |
if (!function_exists('emailAdmin')) { |
|
42 |
function emailAdmin() { |
|
43 |
global $database,$admin; |
|
44 |
$retval = $admin->get_email(); |
|
45 |
if($admin->get_user_id()!='1') { |
|
46 |
$sql = 'SELECT `email` FROM `'.TABLE_PREFIX.'users` '; |
|
47 |
$sql .= 'WHERE `user_id`=\'1\' '; |
|
48 |
$retval = $database->get_one($sql); |
|
49 |
|
|
50 |
} |
|
51 |
return $retval; |
|
52 |
} |
|
53 |
} |
|
54 |
|
|
38 | 55 |
// Function for generating an optionsfor a select field |
39 | 56 |
if (!function_exists('make_option')) { |
40 | 57 |
function make_option(&$n, $k, $values) { |
... | ... | |
268 | 285 |
if($query_settings->numRows() > 0) { |
269 | 286 |
$fetch_settings = $query_settings->fetchRow(MYSQL_ASSOC); |
270 | 287 |
|
271 |
$email_to = $fetch_settings['email_to']; |
|
288 |
// $email_to = $fetch_settings['email_to']; |
|
289 |
$email_to = (($fetch_settings['email_to'] != '') ? $fetch_settings['email_to'] : emailAdmin()); |
|
272 | 290 |
$email_from = $fetch_settings['email_from']; |
273 | 291 |
if(substr($email_from, 0, 5) == 'field') { |
274 | 292 |
// Set the email from field to what the user entered in the specified field |
... | ... | |
279 | 297 |
// Set the email_fromname to field to what the user entered in the specified field |
280 | 298 |
$email_fromname = htmlspecialchars($wb->add_slashes($_POST[$email_fromname])); |
281 | 299 |
} |
282 |
$email_subject = $fetch_settings['email_subject'];
|
|
300 |
$email_subject = (($fetch_settings['email_subject'] != '') ? $fetch_settings['email_subject'] : $MOD_FORM['EMAIL_SUBJECT']);
|
|
283 | 301 |
$success_page = $fetch_settings['success_page']; |
284 |
$success_email_to = $fetch_settings['success_email_to'];
|
|
302 |
$success_email_to = (($fetch_settings['success_email_to'] != '') ? $fetch_settings['success_email_to'] : '');
|
|
285 | 303 |
if(substr($success_email_to, 0, 5) == 'field') { |
286 | 304 |
// Set the success_email to field to what the user entered in the specified field |
287 | 305 |
$success_email_to = htmlspecialchars($wb->add_slashes($_POST[$success_email_to])); |
... | ... | |
290 | 308 |
$success_email_fromname = $fetch_settings['success_email_fromname']; |
291 | 309 |
$success_email_text = htmlspecialchars($wb->add_slashes($fetch_settings['success_email_text'])); |
292 | 310 |
$success_email_text = (($success_email_text != '') ? $success_email_text : $MOD_FORM['SUCCESS_EMAIL_TEXT']); |
293 |
$success_email_subject = $fetch_settings['success_email_subject'];
|
|
311 |
$success_email_subject = (($fetch_settings['success_email_subject'] != '') ? $fetch_settings['success_email_subject'] : $MOD_FORM['SUCCESS_EMAIL_SUBJECT']);
|
|
294 | 312 |
$max_submissions = $fetch_settings['max_submissions']; |
295 | 313 |
$stored_submissions = $fetch_settings['stored_submissions']; |
296 | 314 |
$use_captcha = $fetch_settings['use_captcha']; |
... | ... | |
306 | 324 |
// Captcha |
307 | 325 |
if($use_captcha) { |
308 | 326 |
if(isset($_POST['captcha']) AND $_POST['captcha'] != ''){ |
309 |
// Check for a mismatch |
|
327 |
// Check for a mismatch get email user_id
|
|
310 | 328 |
if(!isset($_POST['captcha']) OR !isset($_SESSION['captcha']) OR $_POST['captcha'] != $_SESSION['captcha']) { |
311 |
$captcha_error = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA']; |
|
329 |
$replace = array('webmaster_email' => emailAdmin() ); |
|
330 |
$captcha_error = replace_vars($MOD_FORM['INCORRECT_CAPTCHA'], array('webmaster_email'=>emailAdmin())); |
|
312 | 331 |
} |
313 | 332 |
} else { |
314 |
$captcha_error = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA']; |
|
333 |
$replace = array('webmaster_email'=>emailAdmin() ); |
|
334 |
$captcha_error = replace_vars($MOD_FORM['INCORRECT_CAPTCHA'],$replace ); |
|
315 | 335 |
} |
316 | 336 |
} |
317 | 337 |
if(isset($_SESSION['captcha'])) { unset($_SESSION['captcha']); } |
... | ... | |
334 | 354 |
$_SESSION['field'.$field['field_id']] = str_replace(array("[[", "]]"), array("[[", "]]"), htmlspecialchars($_POST['field'.$field['field_id']])); |
335 | 355 |
} |
336 | 356 |
if($field['type'] == 'email' AND $admin->validate_email($_POST['field'.$field['field_id']]) == false) { |
337 |
$email_error = $MESSAGE['USERS']['INVALID_EMAIL'];
|
|
357 |
$email_error = $MESSAGE['USERS_INVALID_EMAIL'];
|
|
338 | 358 |
} |
339 | 359 |
if($field['type'] == 'heading') { |
340 | 360 |
$email_body .= $_POST['field'.$field['field_id']]."\n\n"; |
... | ... | |
401 | 421 |
} else { |
402 | 422 |
// Adding the IP to the body and try to send the email |
403 | 423 |
// $email_body .= "\n\nIP: ".$_SERVER['REMOTE_ADDR']; |
424 |
|
|
404 | 425 |
$recipient = preg_replace( "/[^a-z0-9 !?:;,.\/_\-=+@#$&\*\(\)]/im", "", $email_fromname ); |
405 | 426 |
$email_fromname = preg_replace( "/(content-type:|bcc:|cc:|to:|from:)/im", "", $recipient ); |
406 | 427 |
$email_body = preg_replace( "/(content-type:|bcc:|cc:|to:|from:)/im", "", $email_body ); |
407 | 428 |
if($email_to != '') { |
408 | 429 |
if($email_from != '') { |
409 |
if($wb->mail($email_from,$email_to,$email_subject,$email_body,$email_fromname)) {
|
|
430 |
if($wb->mail(SERVER_EMAIL,$email_to,$email_subject,$email_body,$email_fromname)) {
|
|
410 | 431 |
$success = true; |
411 | 432 |
} |
412 | 433 |
} else { |
... | ... | |
421 | 442 |
$success_email_text = preg_replace( "/(content-type:|bcc:|cc:|to:|from:)/im", "", $success_email_text ); |
422 | 443 |
if($success_email_to != '') { |
423 | 444 |
if($success_email_from != '') { |
424 |
if($wb->mail($success_email_from,$success_email_to,$success_email_subject,$success_email_text,$success_email_fromname)) {
|
|
445 |
if($wb->mail($success_email_from,$success_email_to,$success_email_subject,($success_email_text).$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'],$success_email_fromname)) {
|
|
425 | 446 |
$success = true; |
426 | 447 |
} |
427 | 448 |
} else { |
428 |
if($wb->mail('',$success_email_to,$success_email_subject,$success_email_text,$success_email_fromname)) {
|
|
449 |
if($wb->mail('',$success_email_to,$success_email_subject,($success_email_text).$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'],$success_email_fromname)) {
|
|
429 | 450 |
$success = true; |
430 | 451 |
} |
431 | 452 |
} |
... | ... | |
478 | 499 |
// Now check if the email was sent successfully |
479 | 500 |
if(isset($success) AND $success == true) { |
480 | 501 |
if ($success_page=='none') { |
481 |
echo str_replace("\n","<br />",$success_email_text); |
|
502 |
echo str_replace("\n","<br />",($success_email_text)); |
|
503 |
echo '<p> </p>'.PHP_EOL.'<p><a href="'.htmlspecialchars(strip_tags($_SERVER['SCRIPT_NAME'])).'">'.$TEXT['BACK'].'</a></p>'.PHP_EOL; |
|
482 | 504 |
} else { |
483 | 505 |
$query_menu = $database->query("SELECT link,target FROM ".TABLE_PREFIX."pages WHERE `page_id` = '$success_page'"); |
484 | 506 |
if($query_menu->numRows() > 0) { |
branches/2.8.x/wb/modules/form/delete_submission.php | ||
---|---|---|
24 | 24 |
// Get id |
25 | 25 |
$submission_id = intval($admin->checkIDKEY('submission_id', false, 'GET')); |
26 | 26 |
if (!$submission_id) { |
27 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
|
27 |
$admin->clearIDKEY(); |
|
28 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
|
28 | 29 |
} |
29 | 30 |
|
30 | 31 |
// Delete row |
31 | 32 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_form_submissions WHERE submission_id = '$submission_id'"); |
33 |
$admin->clearIDKEY(); |
|
32 | 34 |
|
33 | 35 |
// Check if there is a db error, otherwise say successful |
34 | 36 |
if($database->is_error()) { |
branches/2.8.x/wb/modules/form/save_settings.php | ||
---|---|---|
32 | 32 |
|
33 | 33 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : '' ); |
34 | 34 |
|
35 |
if (!function_exists('emailAdmin')) { |
|
36 |
function emailAdmin() { |
|
37 |
global $database,$admin; |
|
38 |
$retval = $admin->get_email(); |
|
39 |
if($admin->get_user_id()!='1') { |
|
40 |
$sql = 'SELECT `email` FROM `'.TABLE_PREFIX.'users` '; |
|
41 |
$sql .= 'WHERE `user_id`=\'1\' '; |
|
42 |
$retval = $database->get_one($sql); |
|
43 |
} |
|
44 |
return $retval; |
|
45 |
} |
|
46 |
} |
|
47 |
|
|
35 | 48 |
// load module language file |
36 | 49 |
$lang = (dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php'; |
37 | 50 |
require_once(!file_exists($lang) ? (dirname(__FILE__)) . '/languages/EN.php' : $lang ); |
... | ... | |
43 | 56 |
$field_loop = $admin->add_slashes($_POST['field_loop']); |
44 | 57 |
$footer = $admin->add_slashes($_POST['footer']); |
45 | 58 |
$email_to = $admin->add_slashes($_POST['email_to']); |
46 |
$email_to = ($email_to != '' ? $email_to : SERVER_EMAIL);
|
|
59 |
$email_to = ($email_to != '' ? $email_to : emailAdmin());
|
|
47 | 60 |
$use_captcha = $admin->add_slashes($_POST['use_captcha']); |
48 | 61 |
|
49 | 62 |
if( isset($_POST['email_from_field']) && ($_POST['email_from_field'] != '')) { |
... | ... | |
59 | 72 |
} |
60 | 73 |
|
61 | 74 |
$email_subject = $admin->add_slashes($_POST['email_subject']); |
62 |
$email_subject = ($email_subject != '') ? $email_subject : $MOD_FORM['EMAIL_SUBJECT'];
|
|
75 |
$email_subject = (($email_subject != '') ? $email_subject : '');
|
|
63 | 76 |
$success_page = $admin->add_slashes($_POST['success_page']); |
64 | 77 |
$success_email_to = $admin->add_slashes($_POST['success_email_to']); |
65 | 78 |
$success_email_from = $admin->add_slashes($_POST['success_email_from']); |
66 | 79 |
$success_email_fromname = $admin->add_slashes($_POST['success_email_fromname']); |
67 | 80 |
$success_email_fromname = ($success_email_fromname != '' ? $success_email_fromname : WBMAILER_DEFAULT_SENDERNAME); |
68 | 81 |
$success_email_text = $admin->add_slashes($_POST['success_email_text']); |
69 |
$success_email_text = (($success_email_text != '') ? $success_email_text : $MOD_FORM['SUCCESS_EMAIL_TEXT']);
|
|
82 |
$success_email_text = (($success_email_text != '') ? $success_email_text : '');
|
|
70 | 83 |
$success_email_subject = $admin->add_slashes($_POST['success_email_subject']); |
71 |
$success_email_subject = ($success_email_subject != '') ? $success_email_subject : $MOD_FORM['SUCCESS_EMAIL_SUBJECT'];
|
|
84 |
$success_email_subject = (($success_email_subject != '') ? $success_email_subject : '');
|
|
72 | 85 |
|
73 | 86 |
if(!is_numeric($_POST['max_submissions'])) { |
74 | 87 |
$max_submissions = 50; |
branches/2.8.x/wb/modules/form/languages/NL.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 | 27 |
//Modul Description |
27 | 28 |
$module_description = 'Deze module makt het mogelijk om aangepaste online formulieren te maken zoals een feedback formulier. Met dank aan Rudolph Lartey voor het aanpassen van deze module.'; |
28 | 29 |
|
... | ... | |
31 | 32 |
$MOD_FORM['CONFIRM'] = 'Confirmation'; |
32 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Submit'; |
33 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE; |
34 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
35 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE; |
36 | 36 |
|
37 |
$MOD_TEXT['FROM'] = 'Sender'; |
|
38 |
$MOD_TEXT['TO'] = 'Recipient'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'****************************************************************************'.PHP_EOL |
|
40 |
.'This is an automatically generated e-mail. The sender\'s address of this e-mail'.PHP_EOL |
|
41 |
.'is furnished only for dispatch, not to receive messages!'.PHP_EOL |
|
42 |
.'If you have received this e-mail by mistake, please contact us and delete this message'.PHP_EOL |
|
43 |
.'****************************************************************************'.PHP_EOL; |
|
44 |
|
|
45 |
$MOD_FORM['FROM'] = 'Sender'; |
|
46 |
$MOD_FORM['TO'] = 'Recipient'; |
|
47 |
|
|
48 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
|
49 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email to the <a href="mailto:{{webmaster_email}}">webmaster</a>'; |
|
50 |
$MOD_FORM['REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
branches/2.8.x/wb/modules/form/languages/NO.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 | 27 |
//Modul Description |
27 | 28 |
$module_description = 'Med denne modulen kan du lage díne egne spesialtilpassede elektroniske skjemaer, som for eksempe et tilbakemeldings skjema. En stor takk til Rudolph Lartey for hjelpen med å videreutvikkle denne modulen, og for bidrag med koding av ekstra felt typer , osv.'; |
28 |
|
|
29 |
|
|
29 | 30 |
//Variables for the backend |
30 | 31 |
$MOD_FORM['SETTINGS'] = 'Form Settings'; |
31 | 32 |
$MOD_FORM['CONFIRM'] = 'Confirmation'; |
32 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Submit'; |
33 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE; |
34 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
35 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE; |
36 | 36 |
|
37 |
$MOD_TEXT['FROM'] = 'Sender'; |
|
38 |
$MOD_TEXT['TO'] = 'Recipient'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'****************************************************************************'.PHP_EOL |
|
40 |
.'This is an automatically generated e-mail. The sender\'s address of this e-mail'.PHP_EOL |
|
41 |
.'is furnished only for dispatch, not to receive messages!'.PHP_EOL |
|
42 |
.'If you have received this e-mail by mistake, please contact us and delete this message'.PHP_EOL |
|
43 |
.'****************************************************************************'.PHP_EOL; |
|
44 |
|
|
45 |
$MOD_FORM['FROM'] = 'Sender'; |
|
46 |
$MOD_FORM['TO'] = 'Recipient'; |
|
47 |
|
|
48 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
|
49 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email to the <a href="mailto:{{webmaster_email}}">webmaster</a>'; |
|
50 |
$MOD_FORM['REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
branches/2.8.x/wb/modules/form/languages/EN.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 | 27 |
//Modul Description |
27 | 28 |
$module_description = 'This module allows you to create customised online forms, such as a feedback form. Thank-you to Rudolph Lartey who help enhance this module, providing code for extra field types, etc.'; |
28 | 29 |
|
... | ... | |
31 | 32 |
$MOD_FORM['CONFIRM'] = 'Confirmation'; |
32 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Submit'; |
33 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE; |
34 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
35 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE; |
36 | 36 |
|
37 |
$MOD_TEXT['FROM'] = 'Sender'; |
|
38 |
$MOD_TEXT['TO'] = 'Recipient'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'****************************************************************************'.PHP_EOL |
|
40 |
.'This is an automatically generated e-mail. The sender\'s address of this e-mail'.PHP_EOL |
|
41 |
.'is furnished only for dispatch, not to receive messages!'.PHP_EOL |
|
42 |
.'If you have received this e-mail by mistake, please contact us and delete this message'.PHP_EOL |
|
43 |
.'****************************************************************************'.PHP_EOL; |
|
44 |
|
|
45 |
$MOD_FORM['FROM'] = 'Sender'; |
|
46 |
$MOD_FORM['TO'] = 'Recipient'; |
|
47 |
|
|
48 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
|
49 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email to the <a href="mailto:{{webmaster_email}}">webmaster</a>'; |
|
50 |
$MOD_FORM['REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
branches/2.8.x/wb/modules/form/languages/DA.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 | 27 |
//Modul Description |
27 | 28 |
$module_description = 'Dette modul giver mulighed for at lave tilpassede online formularer, f.eks. en kontaktformular. Tak til Rudolph Lartey som har hjulpet med at forbedre dette modul ved at lave kode for ekstra felttyper osv.'; |
28 | 29 |
|
... | ... | |
31 | 32 |
$MOD_FORM['CONFIRM'] = 'Confirmation'; |
32 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Submit'; |
33 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE; |
34 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
35 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE; |
36 | 36 |
|
37 |
$MOD_TEXT['FROM'] = 'Sender'; |
|
38 |
$MOD_TEXT['TO'] = 'Recipient'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'****************************************************************************'.PHP_EOL |
|
40 |
.'This is an automatically generated e-mail. The sender\'s address of this e-mail'.PHP_EOL |
|
41 |
.'is furnished only for dispatch, not to receive messages!'.PHP_EOL |
|
42 |
.'If you have received this e-mail by mistake, please contact us and delete this message'.PHP_EOL |
|
43 |
.'****************************************************************************'.PHP_EOL; |
|
39 | 44 |
|
45 |
$MOD_FORM['FROM'] = 'Sender'; |
|
46 |
$MOD_FORM['TO'] = 'Recipient'; |
|
40 | 47 |
|
48 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
|
49 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email to the <a href="mailto:{{webmaster_email}}">webmaster</a>'; |
|
50 |
$MOD_FORM['REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
branches/2.8.x/wb/modules/form/languages/RU.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 | 27 |
//Modul Description |
27 | 28 |
$module_description = 'Модуль позволяет создавать различные настраиваемые формы, например формы обратной связи. Rudolph Lartey помог улучшить данный модуль.'; |
28 | 29 |
|
... | ... | |
31 | 32 |
$MOD_FORM['CONFIRM'] = 'Confirmation'; |
32 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Submit'; |
33 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE; |
34 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
35 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE; |
36 | 36 |
|
37 |
$MOD_TEXT['FROM'] = 'Sender'; |
|
38 |
$MOD_TEXT['TO'] = 'Recipient'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'****************************************************************************'.PHP_EOL |
|
40 |
.'This is an automatically generated e-mail. The sender\'s address of this e-mail'.PHP_EOL |
|
41 |
.'is furnished only for dispatch, not to receive messages!'.PHP_EOL |
|
42 |
.'If you have received this e-mail by mistake, please contact us and delete this message'.PHP_EOL |
|
43 |
.'****************************************************************************'.PHP_EOL; |
|
44 |
|
|
45 |
$MOD_FORM['FROM'] = 'Sender'; |
|
46 |
$MOD_FORM['TO'] = 'Recipient'; |
|
47 |
|
|
48 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
|
49 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email to the <a href="mailto:{{webmaster_email}}">webmaster</a>'; |
|
50 |
$MOD_FORM['REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
branches/2.8.x/wb/modules/form/languages/FR.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 |
FRENCH LANGUAGE FILE FOR THE MODULE: FORM |
|
27 |
----------------------------------------------------------------------------------------- |
|
28 |
*/ |
|
29 |
//Module Description |
|
27 |
//Modul Description |
|
30 | 28 |
$module_description = 'This module allows you to create customised online forms, such as a feedback form. Thank-you to Rudolph Lartey who help enhance this module, providing code for extra field types, etc.'; |
31 | 29 |
|
32 | 30 |
//Variables for the backend |
... | ... | |
34 | 32 |
$MOD_FORM['CONFIRM'] = 'Confirmation'; |
35 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Submit'; |
36 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE; |
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE; |
39 | 36 |
|
40 |
$MOD_TEXT['FROM'] = 'Sender'; |
|
41 |
$MOD_TEXT['TO'] = 'Recipient'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message from '.WEBSITE_TITLE; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'****************************************************************************'.PHP_EOL |
|
40 |
.'This is an automatically generated e-mail. The sender\'s address of this e-mail'.PHP_EOL |
|
41 |
.'is furnished only for dispatch, not to receive messages!'.PHP_EOL |
|
42 |
.'If you have received this e-mail by mistake, please contact us and delete this message'.PHP_EOL |
|
43 |
.'****************************************************************************'.PHP_EOL; |
|
44 |
|
|
45 |
$MOD_FORM['FROM'] = 'Sender'; |
|
46 |
$MOD_FORM['TO'] = 'Recipient'; |
|
47 |
|
|
48 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.'; |
|
49 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email to the <a href="mailto:{{webmaster_email}}">webmaster</a>'; |
|
50 |
$MOD_FORM['REQUIRED_FIELDS'] = 'You must enter details for the following fields'; |
branches/2.8.x/wb/modules/form/languages/DE.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category module |
|
5 |
* @package Form |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/branches/2.8.x/wb/modules/form/view.php $ |
|
14 |
* @lastmodified $Date: 2011-12-31 16:03:03 +0100 (Sa, 31. Dez 2011) $ |
|
15 |
* @description |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
18 |
// Must include code to stop this file being access directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
4 | 26 |
|
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 | 27 |
//Modulbeschreibung |
27 | 28 |
$module_description = 'Mit diesem Modul können sie ein beliebiges Formular für ihre Seite erzeugen'; |
28 | 29 |
|
... | ... | |
31 | 32 |
$MOD_FORM['CONFIRM'] = 'Bestätigung'; |
32 | 33 |
$MOD_FORM['SUBMIT_FORM'] = 'Absenden'; |
33 | 34 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Erhalten einer Nachricht von '.WEBSITE_TITLE; |
34 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'E-Mail wurde erfolgreich über '.WEBSITE_TITLE.' gesendet!'; |
|
35 | 35 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'Sie haben ein Forumlar an '.WEBSITE_TITLE.' gesendet'; |
36 | 36 |
|
37 |
$MOD_TEXT['FROM'] = 'Absender'; |
|
38 |
$MOD_TEXT['TO'] = 'Empfänger'; |
|
37 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Vielen Dank für die Übermittlung Ihrer Nachricht von '.WEBSITE_TITLE.''; |
|
38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = PHP_EOL.PHP_EOL.PHP_EOL |
|
39 |
.'*************************************************************'.PHP_EOL |
|
40 |
.'Dies ist eine automatisch generierte E-Mail. Die Absenderadresse dieser E-Mail'.PHP_EOL |
|
41 |
.'ist nur zum Versand, und nicht zum Empfang von Nachrichten eingerichtet!'.PHP_EOL |
|
42 |
.'Falls Sie diese E-Mail versehentlich erhalten haben, setzen Sie sich bitte'.PHP_EOL |
|
43 |
.'mit uns in Verbindung und löschen diese Nachricht von Ihrem Computer.'.PHP_EOL |
|
44 |
.'**************************************************************'.PHP_EOL; |
|
45 |
|
|
46 |
$MOD_FORM['FROM'] = 'Absender'; |
|
47 |
$MOD_FORM['TO'] = 'Empfänger'; |
|
48 |
|
|
49 |
$MOD_FORM['EXCESS_SUBMISSIONS'] = 'Dieses Formular wurde zu oft aufgerufen. Bitte versuchen Sie es in einer Stunde noch einmal.'; |
|
50 |
$MOD_FORM['INCORRECT_CAPTCHA'] = 'Die eingegebene Prüfziffer stimmt nicht überein. Wenn Sie Probleme mit dem Lesen der Prüfziffer haben, bitte schreiben Sie eine E-Mail an den <a href="mailto:{{webmaster_email}}">Webmaster</a>'; |
|
51 |
$MOD_FORM['REQUIRED_FIELDS'] = 'Bitte folgende Angaben ergänzen'; |
branches/2.8.x/wb/modules/form/add.php | ||
---|---|---|
37 | 37 |
</td>'.PHP_EOL.' |
38 | 38 |
</tr>'.PHP_EOL.' |
39 | 39 |
</table>'.PHP_EOL; |
40 |
$email_to = $admin->get_email();
|
|
40 |
$email_to = '';
|
|
41 | 41 |
$email_from = ''; |
42 | 42 |
$email_fromname = ''; |
43 |
$email_subject = $MOD_FORM['EMAIL_SUBJECT'];
|
|
43 |
$email_subject = '';
|
|
44 | 44 |
$success_page = 'none'; |
45 |
$success_email_to = SERVER_EMAIL;
|
|
46 |
$success_email_from = $admin->get_email();
|
|
47 |
$success_email_fromname = WBMAILER_DEFAULT_SENDERNAME;
|
|
48 |
$success_email_text = $MOD_FORM['SUCCESS_EMAIL_TEXT'];
|
|
49 |
$success_email_text = addslashes($success_email_text); |
|
50 |
$success_email_subject = $MOD_FORM['SUCCESS_EMAIL_SUBJECT'];
|
|
45 |
$success_email_to = '';
|
|
46 |
$success_email_from = '';
|
|
47 |
$success_email_fromname = '';
|
|
48 |
$success_email_text = '';
|
|
49 |
// $success_email_text = addslashes($success_email_text);
|
|
50 |
$success_email_subject = '';
|
|
51 | 51 |
$max_submissions = 50; |
52 | 52 |
$stored_submissions = 50; |
53 | 53 |
$use_captcha = true; |
Also available in: Unified diff
+ add automatically generated e-mail language form variable
! send confirmation mail with details to superadmin from SERVER_EMAIL
! send confirmation mail without details to sender from SERVER_EMAIL