1 |
1553
|
Luisehahne
|
<?php
|
2 |
1573
|
Luisehahne
|
/**
|
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 |
|
|
*/
|
17 |
1553
|
Luisehahne
|
|
18 |
1573
|
Luisehahne
|
// 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 |
|
|
/* -------------------------------------------------------- */
|
26 |
1553
|
Luisehahne
|
|
27 |
|
|
//Modul Description
|
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.';
|
29 |
|
|
|
30 |
|
|
//Variables for the backend
|
31 |
|
|
$MOD_FORM['SETTINGS'] = 'Form Settings';
|
32 |
|
|
$MOD_FORM['CONFIRM'] = 'Confirmation';
|
33 |
|
|
$MOD_FORM['SUBMIT_FORM'] = 'Submit';
|
34 |
|
|
$MOD_FORM['EMAIL_SUBJECT'] = 'Delivering a message from '.WEBSITE_TITLE;
|
35 |
|
|
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'You have submitted a message to '.WEBSITE_TITLE;
|
36 |
|
|
|
37 |
1595
|
Luisehahne
|
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Thank you for sending your message to '.WEBSITE_TITLE;
|
38 |
1573
|
Luisehahne
|
$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 |
1553
|
Luisehahne
|
|
45 |
1573
|
Luisehahne
|
$MOD_FORM['FROM'] = 'Sender';
|
46 |
|
|
$MOD_FORM['TO'] = 'Recipient';
|
47 |
1553
|
Luisehahne
|
|
48 |
1573
|
Luisehahne
|
$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';
|