From 50befcb6cd53d281a8a93bb496f06faf869432ba Mon Sep 17 00:00:00 2001 From: cookie Date: Wed, 29 Nov 2006 17:11:19 +0000 Subject: cron_dect umbenant git-svn-id: svn://svn.cccv.de/engel-system@182 29ba0400-6e00-0410-a75a-ca02368028f8 --- services/cron_dect.php | 52 +++++++++++++++++++++++++++++++++++++++++ services/cron_dect_asterisk.php | 52 ----------------------------------------- 2 files changed, 52 insertions(+), 52 deletions(-) create mode 100755 services/cron_dect.php delete mode 100755 services/cron_dect_asterisk.php (limited to 'services') diff --git a/services/cron_dect.php b/services/cron_dect.php new file mode 100755 index 00000000..73e1f199 --- /dev/null +++ b/services/cron_dect.php @@ -0,0 +1,52 @@ +'2004-12-27 10:45:00' AND ". + "Shifts.DateS<='2004-12-27 11:00:00');"; +else + $SQL .= "WHERE ((`Shifts`.`DateS`>'". gmdate("Y-m-d H:i:s", time()+3600+120). "') AND ". + "(`Shifts`.`DateS`<='". gmdate("Y-m-d H:i:s", time()+3600+120+$StartTimeBeforEvent). "') );"; + +$Erg = mysql_query($SQL, $con); +echo mysql_error($con); + +for( $i=0; $i0) + { + $DECTnumber = UID2DECT(mysql_result($Erg, $i, "UID")); + if( $DECTnumber!="") + { + DialNumberIAX( $DECTnumber, + mysql_result($Erg, $i, "DateS"), + mysql_result($Erg, $i, "RID"), + mysql_result($Erg, $i, "TID")); + DialNumberModem( $DECTnumber, + mysql_result($Erg, $i, "DateS")); + } + } +} + +return 0; + + +?> + diff --git a/services/cron_dect_asterisk.php b/services/cron_dect_asterisk.php deleted file mode 100755 index 73e1f199..00000000 --- a/services/cron_dect_asterisk.php +++ /dev/null @@ -1,52 +0,0 @@ -'2004-12-27 10:45:00' AND ". - "Shifts.DateS<='2004-12-27 11:00:00');"; -else - $SQL .= "WHERE ((`Shifts`.`DateS`>'". gmdate("Y-m-d H:i:s", time()+3600+120). "') AND ". - "(`Shifts`.`DateS`<='". gmdate("Y-m-d H:i:s", time()+3600+120+$StartTimeBeforEvent). "') );"; - -$Erg = mysql_query($SQL, $con); -echo mysql_error($con); - -for( $i=0; $i0) - { - $DECTnumber = UID2DECT(mysql_result($Erg, $i, "UID")); - if( $DECTnumber!="") - { - DialNumberIAX( $DECTnumber, - mysql_result($Erg, $i, "DateS"), - mysql_result($Erg, $i, "RID"), - mysql_result($Erg, $i, "TID")); - DialNumberModem( $DECTnumber, - mysql_result($Erg, $i, "DateS")); - } - } -} - -return 0; - - -?> - -- cgit v1.2.3-70-g09d2