-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcallback.php
39 lines (37 loc) · 1.11 KB
/
callback.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
<?php
if(isset($_POST["dat"])) {
$Filename = $_POST["filename"];
$Dat = $_POST["dat"];
$Filepath = "logs/" . $Filename;
$Writer = fopen($Filepath, "w") or die("Unable to open file!");
fwrite($Writer, $Dat);
fclose($Writer);
} else {
$Filename = "";
$Dat = "";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<style>
/*
// Uncomment to remove watermark if using 000webhost as a web host
img[src*='https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png'] {
display: none;
}
*/
</style>
<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>
</head>
<body>
<form id="FForm" action="" method="post" style="display:none;">
<input type="text" name="dat" id="dat" value="<?php echo $Dat; ?>">
<input type="text" name="filename" id="filename" value="<?php echo $Filename; ?>">
<input type="submit" name="submit" id="submitBtn" value="SubmitForm">
</form>
</body>
</html>