summaryrefslogtreecommitdiff
path: root/includes/funktion_modem.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/funktion_modem.php')
-rw-r--r--[-rwxr-xr-x]includes/funktion_modem.php49
1 files changed, 24 insertions, 25 deletions
diff --git a/includes/funktion_modem.php b/includes/funktion_modem.php
index 3a74e0f8..8e93ebf4 100755..100644
--- a/includes/funktion_modem.php
+++ b/includes/funktion_modem.php
@@ -1,35 +1,34 @@
-<?PHP
-include "config_modem.php";
+<?php
+ include "config_modem.php";
-function DialNumber( $Number )
-{
- global $Dev, $ModemEnable;
+ function DialNumber($Number) {
+ global $Dev, $ModemEnable;
+
+ if($ModemEnable) {
+ echo "Dial number: '<u>$Number</u>' was called<br />\n";
- 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";
+ $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");
+ global $WakeupNumber;
+ DialNumber( "$WakeupNumber$TimeH$TimeM$Number");
}
?>