-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
134 lines (89 loc) · 3.96 KB
/
config.php
File metadata and controls
134 lines (89 loc) · 3.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?
/**
* GC_Formmail 1.2
* Created: 17/2/2005
* Last Modified: 21/2/2005
* Author: Giuseppe Calbi <peppiniel@peppiniel.com>
* Website: http://www.giuseppecalbi.com
*
* License: this script is free. I will be pleased if you put a link to http://www.giuseppecalbi.com
* or http://www.giuseppecalbi.com/scripts at the end of the pages that use this script, or in a credit section
* or links section
*
* I suggest you to insert a small line at the end of each page that uses this script:
* <? $act=1; include "gc_formmail.php"; ?>
* remember to give the page the extension name .php and to insert the full url of the script in case
* it is in a different folder.
* Only after this you could be automatically alerted for new updates
**/
/**
* Configuration file
*
* With this file you can choose execution option for the programm.
* How to do? It's simple, you only have to modify the data below.
* Keep attention to change only the text between " ".
**/
/**
* Name and email of sender shown in the received email. It will be shown like is: "Name <address@provider.com>"
**/
$mittente = "sender <me@flatjody.com>";
/**
* Names and email addresses that will receive the form data
* If you want more than one addressee, insert all of them using a comma to separate them like this
* ex. $destinatari = "Joe Black <webmaster@domain.com>, Tim White <commercial@domain.com>";
**/
$destinatari = "jody <jhamiltoorion@gmail.com>";
/**
* Subject of the received email
**/
$oggetto = "Form Results";
/**
* Page to be automatically redirected after some seconds of confirmation page
* Write the page address between the " ". If no page is selected, you will receive only a confirmation message
**/
$paginaConferma = "";
/**
* Text/Message (can be html) to be shown as head of the confirmation page
**/
$messaggioConferma = "<center><font color=navy size=3 face=verdana><b>Inserimento avvenuto con successo!!</b></font></center><br>";
/**
* Page to be automatically redirected after some seconds of error page
* Write the page address between the " ". If no page is selected, you will receive only a confirmation message
**/
$paginaerrore = "";
/**
* Text/Message (can be html) to be shown as head of the error page
**/
$messaggioErrore = "<center><font color=red size=3 face=verdana><b>Si ˆ® verificato un errore<br>Se il problema persiste contatta l'amministratore del sito!!</b></font><center><br>";
/**
* Specify the name of a field in the form for sender's email address. Ex. if the form contains <input type=text name=emailaddress> you should set "emailaddress" the field below
**/
$emailField = "email";
/**
* Specify the name of a field in the form for sender's email body. Ex. if the form contains <input type=hidden name=tipomodulo value=new_proposals> you should set "new_proposte" as below.
* This value will be shown in the email body with the "body" ($oggetto) specified previously. If you want to see as body only this field, please delete $oggetto
**/
$subjectField = "";
/**
* Specify one or more fields to use as sender name.
* Ex. if in the form i use <input type=text name=name> and <input type=text name=surname> you should define "name" and "surname" as below.
* Please use a , between each setting and remeber to use " "
**/
$senderNames = "Firstname, Lastname";
/**
* If this option is set to 1, the confirmation page will show all the data inserted. If set to 0 it will print only the confirmation message without the data
**/
$mostraInputinConferma = 1;
/**
* If set to 1, email will be sent in graphic html, is set to 0 will be sent in text mode
**/
$html = 1;
/**
* If set to 1, all the html tags for the inputs will be hidden before the print out. It is possible to specify which tag to allow. If it is 0 every html tag will be allowed
**/
$stripsHtml = 1;
/**
* Specify which html tag is allowed in case the previous setting is set to 1
**/
$tagAllowed = "<b><i><br><u>";
?>