Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- <html><head>
- <title>Mensagem na tela p/ Michel</title>
- <style type="text/css">
- body
- {
- font-family: Ubuntu, Verdana;
- font-size: 12px;
- }
- .input
- {
- padding: 4px;
- text-align:left;
- margin: 2px;
- -moz-border-radius: 5px;
- color:#f00;
- font-size: 13px;
- font-weight:bold;
- border: 2px solid #ccc;
- }
- </style>
- </head>
- <body>
- <h1>Enviar mensagem</h1>
- <?php print_r($_POST)?>
- <?php print_r($_GET)?>
- <?php echo trim(file_get_contents('php://input'));?>
- <?php if(!isset($_POST['msg'])):?>
- <form action="notify.php" method="POST">
- Escreva a mensagem a ser enviada<br/>
- <input type="text" class="input" name="msg" style="width: 400px" />
- <input type="submit" value="Enviar mensagem" name="btn"/>
- </form>
- <?php else:?>
- <?php shell_exec('DISPLAY=:0 notify-send "'.$_POST['msg'].'"')?>
- <p>Mensagem enviada com sucesso! <a href="notify.php">Enviar outra :)</a></p>
- <?php endif?>
- <hr>
- <address>Obrigado!</address>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement