Changeset 5132 for trunk/calendar/inc/hourReport.php
- Timestamp:
- 11/03/11 13:21:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/hourReport.php
r4931 r5132 95 95 $_SESSION['calendar']['server']['db_type'] 96 96 ); 97 if (IsSet($_POST['CAT']) && IsSet($_POST['CAL'])){97 if (IsSet($_POST['CAT'])){ 98 98 if (!preg_match("/[a-zA-Z0-9]+/i",$_POST['CAT'][0])){ 99 99 echo "Invalid entry:".$_POST['CAT'][0]; … … 125 125 $query = "select cal_id,title,description,datetime,edatetime from phpgw_cal where ".(!$_POST['NORM']?"cal_type = 'H' and":" is_public = 1 and ")." owner = ".$user_id." and (category like '%,".$catid.",%' or category like '%,".$catid."' or category like '".$catid.",%' or category = '".$catid."')".(IsSet($initDate)?" and datetime > ".$initDate:""); 126 126 if(!$db->query($query)){ 127 print("<br>Query failed .<br>");127 print("<br>Query failed at host:<br>".$_SESSION['calendar']['server']['db_user']."@".$_SESSION['calendar']['server']['db_host'].":".$_SESSION['calendar']['server']['db_port']."<br>"); 128 128 return; 129 129 }
Note: See TracChangeset
for help on using the changeset viewer.