summaryrefslogtreecommitdiff
path: root/services/dect_clear.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/dect_clear.php')
-rwxr-xr-xservices/dect_clear.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/services/dect_clear.php b/services/dect_clear.php
new file mode 100755
index 00000000..a01241be
--- /dev/null
+++ b/services/dect_clear.php
@@ -0,0 +1,25 @@
+<?PHP
+// löscht alle eintrag in der telefonanlage, indem jede nummer einzähln gelöscht wir (#10<NUMBER>)
+
+include ("./inc/db.php");
+include ("./inc/config.php");
+include ("./inc/funktion_modem.php");
+
+
+$SQL = "SELECT DECT FROM `User`;";
+
+$Erg = mysql_query($SQL, $con);
+
+echo mysql_error($con);
+
+for( $i=0; $i<mysql_num_rows($Erg); $i++)
+{
+ $Number = "#10". mysql_result($Erg, $i, "DECT");
+ if( strlen($Number)==7)
+ DialNumber( $Number);
+}
+
+return 0;
+
+?>
+