diff options
author | Moritz helios Rudert <helios@planetcyborg.de> | 2011-06-01 12:13:39 +0200 |
---|---|---|
committer | Moritz helios Rudert <helios@planetcyborg.de> | 2011-06-01 12:13:39 +0200 |
commit | 75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch) | |
tree | 6a4d3d35019cdf933c1816e8522dc5d2557f5238 /services/dect_clear.php | |
parent | 12e0b0d809c29d435a247798d7318cc9835980ea (diff) |
fixes
Diffstat (limited to 'services/dect_clear.php')
-rwxr-xr-x | services/dect_clear.php | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/services/dect_clear.php b/services/dect_clear.php index 713cce36..b49b1e40 100755 --- a/services/dect_clear.php +++ b/services/dect_clear.php @@ -1,25 +1,19 @@ -<?PHP -// löscht alle eintrag in der telefonanlage, indem jede nummer einzähln gelöscht wir (#10<NUMBER>) +<?php + include "../includes/db.php"; + include "../includes/config.php"; + include "../includes/funktion_modem.php"; -include ("../includes/db.php"); -include ("../includes/config.php"); -include ("../includes/funktion_modem.php"); + $SQL = "SELECT DECT FROM `User`;"; + $Erg = mysql_query($SQL, $con); + echo mysql_error($con); -$SQL = "SELECT DECT FROM `User`;"; + for($i=0; $i < mysql_num_rows($Erg); $i++) { + $Number = "#10" . mysql_result($Erg, $i, "DECT"); -$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; + if(strlen($Number) == 7) + DialNumber($Number); + } + return 0; ?> - |