diff options
Diffstat (limited to 'services/cron_dect.php')
-rwxr-xr-x | services/cron_dect.php | 10 |
1 files changed, 5 insertions, 5 deletions
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); |