-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.php
35 lines (32 loc) · 1.17 KB
/
feedback.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
<?php
$feedback=$_POST['feedback'];
echo $feedback;
if($_POST['type']=='feedback')
$newfile1 = fopen("./feedback/qutanzhikekeli/".date("Y-m-d")."-".date("H-i-s").".txt", "w");
else
$newfile1 = fopen("./feedback/qutanzhikekeli/".date("Y-m-d")."-".date("H-i-s")."_BOOM.txt", "w");
fwrite($newfile1, "[[[feedback]]]\n");
fwrite($newfile1, "Time:".date("Y-m-d")."-".date("H:i:s")."\n");
fwrite($newfile1, "IP:".$_SERVER['REMOTE_ADDR']."\n");
if($_POST['type']=='feedback'){
fwrite($newfile1, "Content:\n\n");
fwrite($newfile1, $feedback);
fwrite($newfile1, "\n\n[END]\n");
}else{
fwrite($newfile1, "BOOM-BOOM-BOOM-BOOM-BOOM\n");
}
fclose($newfile1);
$newfile2 = fopen("./feedback/qutanzhikekeli/qutanzhikekeli.txt", "a");
fwrite($newfile2, "\n===============================\n");
fwrite($newfile2, "Time:".date("Y-m-d")."-".date("H:i:s")."\n");
fwrite($newfile2, "IP:".$_SERVER['REMOTE_ADDR']."\n");
if($_POST['type']=='feedback'){
fwrite($newfile2, "Content:\n\n");
fwrite($newfile2, $feedback);
fwrite($newfile2, "\n\n===============================\n");
}else{
fwrite($newfile2, "BOOM-BOOM-BOOM-BOOM-BOOM\n");
fwrite($newfile2, "===============================\n");
}
fclose($newfile2);
?>