summaryrefslogtreecommitdiff
path: root/includes_old/funktion_modem.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes_old/funktion_modem.php')
-rw-r--r--includes_old/funktion_modem.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/includes_old/funktion_modem.php b/includes_old/funktion_modem.php
new file mode 100644
index 00000000..8e93ebf4
--- /dev/null
+++ b/includes_old/funktion_modem.php
@@ -0,0 +1,34 @@
+<?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 $WakeupNumber;
+ DialNumber( "$WakeupNumber$TimeH$TimeM$Number");
+}
+
+?>