blob: ffc5b9c21f5fe52d8a70f40e1aac36dbe1077d8e (
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
|
<?PHP
include "./config_modem.php";
function DialNumber( $Number )
{
global $Dev, $ModemEnable;
if( $ModemEnable)
{
echo "Dial number: '<u>$Number</u>' was called<br>\n";
$fp = fopen( $ModemDev, "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 not called<br>\n";
}
function SetWackeup( $Number, $TimeH, $TimeM)
{
global $WackupNumber;
DialNumber( "$WackupNumber$TimeH$TimeM$Number");
}
?>
|