You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
664 B
PHTML
35 lines
664 B
PHTML
14 years ago
|
<?php
|
||
|
include "config_modem.php";
|
||
16 years ago
|
|
||
14 years ago
|
function DialNumber($Number) {
|
||
|
global $Dev, $ModemEnable;
|
||
|
|
||
|
if($ModemEnable) {
|
||
|
echo "Dial number: '<u>$Number</u>' was called<br />\n";
|
||
16 years ago
|
|
||
14 years ago
|
$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";
|
||
16 years ago
|
}
|
||
|
|
||
|
|
||
|
function SetWackeup( $Number, $TimeH, $TimeM)
|
||
|
{
|
||
14 years ago
|
global $WakeupNumber;
|
||
|
DialNumber( "$WakeupNumber$TimeH$TimeM$Number");
|
||
16 years ago
|
}
|
||
|
|
||
|
?>
|