summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2007-08-09 16:33:38 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2007-08-09 16:33:38 +0000
commitd5845ab74c0996d22629282f53dc5a6d9ec34c81 (patch)
tree886efc12a984666a7648628d5421b5e897e9ba39 /services
parent577a5a3423d4298dd5fcd3e38934e79205ac2428 (diff)
aktuelle änderungen
git-svn-id: svn://svn.cccv.de/engel-system@230 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'services')
-rwxr-xr-xservices/cron_dect.php10
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);