From d5845ab74c0996d22629282f53dc5a6d9ec34c81 Mon Sep 17 00:00:00 2001 From: cookie Date: Thu, 9 Aug 2007 16:33:38 +0000 Subject: aktuelle änderungen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.cccv.de/engel-system@230 29ba0400-6e00-0410-a75a-ca02368028f8 --- services/cron_dect.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'services') diff --git a/services/cron_dect.php b/services/cron_dect.php index 73e2d69c..c0ee8761 100755 --- a/services/cron_dect.php +++ b/services/cron_dect.php @@ -12,7 +12,7 @@ include ("./inc/funktion_cron.php"); $StartTimeBeforEvent = (60/4)*60; $AnrufDelay = -5; $DebugDECT = FALSE; -//$DebugDECT = TRUE; +#$DebugDECT = TRUE; //Timeout erhöhen; set_time_limit(50000); @@ -21,11 +21,11 @@ set_time_limit(50000); $SQL = "SELECT Shifts.DateS, Shifts.RID, ShiftEntry.UID, ShiftEntry.TID ". "FROM `Shifts` INNER JOIN `ShiftEntry` ON `Shifts`.`SID` = `ShiftEntry`.`SID` "; if( $DebugDECT) - $SQL .= "WHERE (Shifts.DateS>'2004-12-27 10:45:00' AND ". - "Shifts.DateS<='2004-12-27 11:00:00');"; + $SQL .= "WHERE (Shifts.DateS>'2007-07-09 09:45:00' AND ". + "Shifts.DateS<='2007-07-09 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). "') );"; + $SQL .= "WHERE ((`Shifts`.`DateS`>'". gmdate("Y-m-d H:i:s", time()+3600+120+3600). "') AND ". + "(`Shifts`.`DateS`<='". gmdate("Y-m-d H:i:s", time()+3600+120+3600+$StartTimeBeforEvent). "') );"; $Erg = mysql_query($SQL, $con); echo mysql_error($con); -- cgit v1.2.3-54-g00ecf