-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcontact.php
87 lines (72 loc) · 2.66 KB
/
contact.php
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
<?
include ("header.php");
require_once('sb_tuning.php');
$t = new TProtectCode();
$t->GetCode();
?>
<td width="2px"><img src="image/spacer.gif" width="2px" height=1></td><td valign="top" width="100%" style=" margin:0; padding:0 4 10 4px; "><div style="margin:0; padding:0; "><img src="image/spacer.gif" width="300px" height=1></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" style="background-color:#000000; border:1px solid #6E2500; padding:1px; ">
<table width="100%" style="height:100%; border:1px solid #2E2E2E; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div style="padding-left:10px; padding-top:5px; padding-bottom:10px; padding-right:10px">
<center><font class="option" color="#FFFFFF"><b>Ôîðìà äëÿ ñâÿçè ñ àäìèíèñòðàòîðîì <? echo $con[4]; ?></b></font></center>
<br>
<font class="content">
<form name="form" method="post" action="" onSubmit="return formCheck(this)">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="2"><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><b>Âàø E-mail</b> <font color="#FF0000">* </font>:</td>
<td><input name="email" type="text" value="" size="25" style=" border: 1px solid rgb(0,0,0)"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><b>Òåêñò âàøåãî ñîîáùåíèÿ</b> <font color="#FF0000">*</font> :<br><br>
<textarea name="mess" cols="70" rows="15" style=" border: 1px solid rgb(0,0,0)"></textarea></td>
</tr>
<tr><td>Êîä <b><?php echo $t->msg;?></b></td><td><input type=text name=Code></td></tr>
<tr>
<td colspan="2">
<input type="hidden" name="send" value="1"><input type="submit" name="submit" value="Îòïðàâèòü ñîîáùåíèå"></td>
</tr>
</table>
</td>
</tr>
</table>
<? echo $t->hashfield;?>
</form>
Ïîæàëóéñòà ââîäèòå ïðàâèëüíûé E-mail, äëÿ ïîëó÷åíèÿ íàøåãî îòâåòà.
</font></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
if (isset($_POST['send']) && ($_POST['send']=="1")){
$turning = isset($_POST['Code']) ? (int)$_POST['Code'] : 0;
$hash = isset($_POST[HASH_FIELDNAME]) ? $_POST[HASH_FIELDNAME] : '';
if (!$t->CheckCode($turning, $hash)){
echo "<script> alert('Íåïðàâèëüíî ââåäåí çàùèòíûé êîä !');</script>";
} else {
$dopmess="\n\n\n==========\nÈãðîê: ".$l."\nIP: ".$REMOTE_ADDR;
$to = $con[2];
$subject = "ïèñüìî èç êàçèíî";
$msg =$mess.$dopmess;
$mailheaders = "Content-Type: text/plain; charset=Windows-1251\n";
$mailheaders .= "From:$email\n";
mail($to, $subject, $msg, $mailheaders);
echo "<script> alert('Âàøå ñîîáùåíèå îòïðàâëåííî!'); document.location.href='index.php'; </script>";
}
}
include ("footer.php");
?>