Debian Codegraph @

contrib/php-admin/sendsms.php

raw
1 <html>
2 <head>
3 <title>SMS Message Sender</title>
4 </head>
5 <body bgcolor="#FFFFFF" text="#000000">
6
7 <?php
8 include("config.inc");
9 include("functions.inc");
10
11 if ($submit)
12 {
13 echo "Sending the SMS Text message <b>\"$text\"</b> to the phone <b>$to</b>...<br>\n";
14 $URL = "/cgi-bin/sendsms?username=".USERNAME."&password=".PASSWORD."&from=".GLOBAL_SENDER."&to=$to&text=".urlencode($text);
15 http_send($URL,SENDSMS_PORT);
16 echo "<address><a href=\"$PHP_SELF\">Back to Send SMS</a></address>\n";
17 } else {
18
19 ?>
20
21 <h1>SMS Message Sender</h1>
22 <form name="sendsms" method="post" action="<?php echo "$PHP_SELF" ?>">
23 <p>
24 Telephone number:
25 <br>
26 <input type="text" size="30" name="to">
27 </p>
28 <p>
29 Message:
30 <br>
31 <textarea cols="20" rows="5" name="text"></textarea>
32 </p>
33 <input type="submit" value="Send Message" name="submit">
34 <input type="reset" value="Reset">
35 <br>
36 </form>
37
38 <?php
39 }
40 ?>
41
42 <p>
43 </p>
44 <hr>
45 <table border="0" width="100%">
46 <tr>
47 <td width="50%"><address><a href="index.html">Back to admin</a></address></td>
48 <td width="50%" align="right"><address>Visit the Kannel homepage at <a href="http://www.kannel.org">www.kannel.org</a>.</address></td>
49 </tr>
50 </table>
51 </body>
52 </html>