blob: a8ae010d764bb403182611374b8a0a84371efb21 (
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");
}
?>
|