blob: e9a76e4ea5e77af08b9b4fa5fda8a17a1c16d36a (
plain)
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
38
39
40
41
42
43
|
<?PHP
$Dev="/dev/ttyS0"; // COM port
$WackupNumber="**3";
ob_end_flush(); //ausgabe obwohl skript nich in arbeit
set_time_limit(50000); //Timeout erh�hen;
function DialNumber( $Number )
{
global $Dev, $ModemEnable;
echo $Number;
if( $ModemEnable)
{
$fp = fopen( $Dev, "w");
sleep(1);
fwrite( $fp, "+++");
sleep(1);
fwrite( $fp, "ATZ\n");
sleep(1);
fwrite( $fp, "ATX1\n");
sleep(1);
fwrite( $fp, "ATD $Number \n");
sleep(8);
fclose($fp);
sleep(1);
}
else
{
echo "Modem is Disable, number: '<u>$Number</u>' was called<br>\n";
}
}
function SetWackeup( $Number, $TimeH, $TimeM)
{
global $WackupNumber;
DialNumber( "$WackupNumber$TimeH$TimeM$Number");
}
?>
|