-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcomment.php
37 lines (33 loc) · 842 Bytes
/
comment.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
<?php
$nome = $_GET['nome'];
$commento = $_GET['commento'];
?>
<html>
<head>
<title>
Invio commento
</title>
</head>
<body>
<font color="red">
<h1 align="center">Invio commento</h1>
</font>
<hr align="center" />
<p align="center">
<b>Il tuo nome:</b> <?php echo filter_var($nome, FILTER_SANITIZE_SPECIAL_CHARS) ?><br />
</p>
<p align="center">
<b>il tuo commento:</b> <?php echo filter_var($commento, FILTER_SANITIZE_SPECIAL_CHARS) ?><br />
</p>
<hr />
<p align="center">
<b>COMMENTO INVIATO!</b>
</p>
</body>
</html>
<?php
require('telegramapi.php');
require('config.php');
$message = "Commento da ".filter_var($nome, FILTER_SANITIZE_SPECIAL_CHARS)." \nTesto: ".filter_var($commento, FILTER_SANITIZE_SPECIAL_CHARS);
sendMessage($bot_admin_id, $message);
?>