diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-11-08 21:00:04 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-11-08 21:00:04 +0000 |
commit | 07776d01ef06dcd25df25303c92a9fa8c650ca45 (patch) | |
tree | 4d0bebaa1b4803a9641e3cd50a1efef2be61349f /services/dect_clear.php | |
parent | 54eddebc929ca92009234cbc030522125a9a2019 (diff) |
grundgeruest fur srevice (jabberbot)
git-svn-id: svn://svn.cccv.de/engel-system@150 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'services/dect_clear.php')
-rwxr-xr-x | services/dect_clear.php | 25 |
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; + +?> + |