File: sms.cgi

package info (click to toggle)
sms-pl 1.9.2m-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 620 kB
  • ctags: 355
  • sloc: cpp: 2,143; ansic: 1,046; perl: 272; makefile: 113; sh: 97
file content (25 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/perl

use CGI;

$query = new CGI;

$numer = $query->param('numer');
$msg = $query->param('tekst');

open(OUTPUT,"|~/bin/sms $numer");
print OUTPUT "$msg\n"; 
close OUTPUT;

print <<END
Content-type: text/html

<html>
<body>
<h2>Wiadomosc zostala wyslana</h2>
<em>Numer telefonu:</em> $numer<br>
<em>Tresc:</em><br>
<p>$msg</p>
</body>
</html>
END