Warning: readfile(D:\Program Files\xampp\htdocs\apostekWorkspace\FIAB\output\faces\webapp/../thirdParty/boscal/calendar.php?type=month&calendar=1&category=) [function.readfile]: failed to open stream: Invalid argument in D:\Program Files\xampp\htdocs\apostekWorkspace\FIAB\output\faces\webapp\modules\ClubsCalendars\actions\FIABCalAction.class.php on line 35 This is the error i get when there is query string after calendar.php This is what i get if query string is not given after calendar.php (see below) ================================================================================ "; for($ii=1;$ii<=7;$ii++) { //Set the date for this cell, and the date display $cellDate = date("Y-m-d",strtotime("$adjFromDate 13:01:01")+(86400 * $counter)); $dateParts = explode("-",$cellDate); if($type == "month") { $displayDateLine = intval($dateParts[2]); } else { $displayDateLine = "".$Languages['global']['monthshort'][intval($dateParts[1])]." ".intval($dateParts[2]); } if($tmpEventData[$cellDate] != "" || $tmpMyDatesData[$cellDate] != "" || $tmpHolidayData[$cellDate] != "") { $dateLine = "$displayDateLine"; } else { $dateLine = " $displayDateLine "; } if($type == "month" && (strtotime("$cellDate 13:01:01") < strtotime("$fromDate 13:01:01") || strtotime("$cellDate 13:01:01") > strtotime("$toDate 13:01:01"))) { $dateLine = ""; } //Check to see if we need to skip Sat/Sun if($SystemOptions['day_layout'] == 4 && ((date("w",strtotime("$cellDate 13:01:01")) == 0) || (date("w",strtotime("$cellDate 13:01:01")) == 6))) { $counter++; continue; } //Check to ensure we're not including an empty row if($ii == 1 && (strtotime("$cellDate 13:01:01") > strtotime("$toDate 13:01:01"))) { continue 2; } //Set the css class for this cell if(date("Y-m-d") == $cellDate) { $class = "today"; } else { $class = "active"; } if( (date("w",strtotime("$cellDate 13:01:01")) == 0 || date("w",strtotime("$cellDate 13:01:01")) == 6) && !(date("Y-m-d") == $cellDate)) { $class = "weekend"; } $cells .=< date("t",mktime(1,1,1,$month,1,$year))) { $day = date("t",mktime(1,1,1,$month,1,$year)); } $day = sprintf("%02s",protect($day)); //Check to see if we're exceeding the allowed date range for the calendar if($SystemOptions['throttle_back'] != "") { if(strtotime("$year-$month-$day 13:00:00") < strtotime($SystemOptions['throttle_back'])) { $year = date("Y",strtotime($SystemOptions['throttle_back'])); $month = date("m",strtotime($SystemOptions['throttle_back'])); $day = date("d",strtotime($SystemOptions['throttle_back'])); } } if($SystemOptions['throttle_fore'] != "") { if(strtotime("$year-$month-$day 13:00:00") > strtotime($SystemOptions['throttle_fore'])) { $year = date("Y",strtotime($SystemOptions['throttle_fore'])); $month = date("m",strtotime($SystemOptions['throttle_fore'])); $day = date("d",strtotime($SystemOptions['throttle_fore'])); } } //Day of the week $dotw = date("w",mktime(1,1,1,$month,$day,$year)); $prevMonth = date("m",mktime(1,1,1,$month-1,1,$year)); $prevYear = date("Y",mktime(1,1,1,$month-1,1,$year)); $nextMonth = date("m",mktime(1,1,1,$month+1,1,$year)); $nextYear = date("Y",mktime(1,1,1,$month+1,1,$year)); //Set today $todayDay = date("j"); //Get additionally required display/menu items $prevMiniCal = miniCal(date("m",mktime(1,1,1,$month-1,1,$year)),date("Y",mktime(1,1,1,$month-1,1,$year))); $nextMiniCal = miniCal(date("m",mktime(1,1,1,$month+1,1,$year)),date("Y",mktime(1,1,1,$month+1,1,$year))); $dateSelector = dateChooser($day,$month,$year); $CalendarSelector = calendarSelector(); $CategorySelector = categorySelector(); $myDatesMenu = mydatesMenu(); $userPrefs = userPrefs(); $tellafriend = tellaFriend(); $ViewMode = viewMenu($type,$calendar,$category,$day,$month,$year,$CalendarInfo['calendar_views']); $TitleText = titleText(); if($SystemOptions['rss_feeds'] == "1") { $rssLink = " {$Languages['nav']['rssfeed']} "; } //Set an offset for non SMTWTFS layouts $dayAdj = 0; if($SystemOptions['day_layout'] == 2) { $dayAdj = -1; } if($SystemOptions['day_layout'] == 3) { $dayAdj = 1; } //Setup the time frames for the event query switch($type) { case "day": $fromDate = "{$year}-{$month}-{$day}"; $toDate = "{$year}-{$month}-{$day}"; break; case "week": $fromDate = date("Y-m-d",mktime(01,01,01,$month,$day-$dotw+$dayAdj,$year)); $toDate = date("Y-m-d",mktime(01,01,01,$month,($day+(6-$dotw))+$dayAdj,$year)); break; case "2week": $fromDate = date("Y-m-d",mktime(01,01,01,$month,$day-$dotw+$dayAdj,$year)); $toDate = date("Y-m-d",mktime(01,01,01,$month,($day+(6-$dotw)+7)+$dayAdj,$year)); break; case "3week": $fromDate = date("Y-m-d",mktime(01,01,01,$month,$day-$dotw+$dayAdj,$year)); $toDate = date("Y-m-d",mktime(01,01,01,$month,($day+(6-$dotw)+14)+$dayAdj,$year)); break; case "4week": $fromDate = date("Y-m-d",mktime(01,01,01,$month,$day-$dotw+$dayAdj,$year)); $toDate = date("Y-m-d",mktime(01,01,01,$month,($day+(6-$dotw)+21)+$dayAdj,$year)); break; case "month": $lastDay = date("t",mktime(01,01,01,$month,1,$year)); $fromDate = date("Y-m-d",mktime(01,01,01,$month,1,$year)); $toDate = date("Y-m-d",mktime(01,01,01,$month,$lastDay,$year)); break; case "quarter": $quarter = ceil($month/3); switch($quarter) { case 1: $fromDate="{$year}-01-01"; $toDate="{$year}-03-31"; break; case 2: $fromDate="{$year}-04-01"; $toDate="{$year}-06-30"; break; case 3: $fromDate="{$year}-07-01"; $toDate="{$year}-09-30"; break; case 4: $fromDate="{$year}-10-01"; $toDate="{$year}-12-31"; break; } break; case "biyear": $half = ceil($month/6); switch($half) { case 1: $fromDate="{$year}-01-01"; $toDate="{$year}-06-30"; break; case 2: $fromDate="{$year}-07-01"; $toDate="{$year}-12-31"; break; } break; case "year": $fromDate = "{$year}-01-01"; $toDate = "{$year}-12-31"; break; case "custom": //Protect it $fromYear = sprintf("%04s",intval($fromYear)); $fromMonth = sprintf("%02s",intval($fromMonth)); $fromDay = sprintf("%02s",intval($fromDay)); $toYear = sprintf("%04s",intval($toYear)); $toMonth = sprintf("%02s",intval($toMonth)); $toDay = sprintf("%02s",intval($toDay)); //Make sure the "to" is greater than the "from" if(strtotime("$fromYear-$fromMonth-$fromDay 13:00:00") > strtotime("$toYear-$toMonth-$toDay 13:00:00")) { $tmpYear = $fromYear; $tmpMonth = $fromMonth; $tmpDay = $fromDay; $fromYear = $toYear; $fromMonth = $toMonth; $fromDay = $toDay; $toYear = $tmpYear; $toMonth = $tmpMonth; $toDay = $tmpDay; } //Set dotw $dotw = date("w",mktime(1,1,1,$fromMonth,$fromDay,$fromYear)); //Set the fromDate/toDate $fromDate = date("Y-m-d",mktime(01,01,01,$fromMonth,$fromDay-$dotw+$dayAdj,$fromYear)); $toDate = date("Y-m-d",mktime(01,01,01,$toMonth,$toDay-$dotw+$dayAdj,$toYear)); $totalNumberOfDays = (strtotime("$toDate 13:00:00") - strtotime("$fromDate 13:00:00")) / 86400; break; } //Get additional display, now that the dates are established $CalendarMenu = calendarMenu($fromDate,$toDate); //Check to see if we need to send reminders and update the RSS sendReminders($SystemOptions['emails']); updateRSS($SystemOptions['emails']); //Record this view recordUser("calendar",$calendar); //Initialize a couple variables $tmpHolidayData = array(); $tmpEventData = array(); //Check to see if we need to build a list of events if($CalendarInfo['calendar_style'] == 2 || $CalendarInfo['calendar_style'] == 3 || ($CalendarInfo['calendar_style'] == 1 && ($type != "quarter" && $type != "biyear" && $type != "year"))) { //Get link styles $result = query("SELECT text_font_id,text_font FROM {$calendar_prefix}calendars_text_font",$cal_link); while(list($id,$font) = mysql_fetch_row($result)) { $displayFonts[$id] = $font; } $result = query("SELECT text_style_id,text_style FROM {$calendar_prefix}calendars_text_style",$cal_link); while(list($id,$style) = mysql_fetch_row($result)) { $displayStyles[$id] = $style; } $result = query("SELECT text_size_id,text_size FROM {$calendar_prefix}calendars_text_size",$cal_link); while(list($id,$size) = mysql_fetch_row($result)) { $displaySizes[$id] = $size; } $result = query("SELECT text_color_id,text_color FROM {$calendar_prefix}calendars_text_color",$cal_link); while(list($id,$color) = mysql_fetch_row($result)) { $displayColors[$id] = $color; } //Get holidays $result = query("SELECT holiday_date, holiday_description FROM {$calendar_prefix}holidays WHERE (holiday_date LIKE '$year-$month%' OR holiday_date LIKE '9999-$month%') ORDER BY holiday_date",$cal_link); while(list($holiday_date,$holiday_description) = mysql_fetch_row($result)) { if(strstr($holiday_date,"9999")) { $holiday_date = date("Y-m-d",strtotime(date("Y")."-".substr($holiday_date,5))); } else { $holiday_date = date("Y-m-d",strtotime($holiday_date)); } $tmpHolidayData[$holiday_date] .= " $holiday_description "; } //Build the calendar list so we don't waste time checking all calendars reset($calendarList); while(list($key,$val) = each($calendarList)) { if($calendarListQuery != "") { $calendarListQuery .= " OR "; } $calendarListQuery .= "d.calendar_id=$val"; } //Setup the myDates addition if(isset($_COOKIE[$cookie_prefix."myDates"])) { $myDatesUser = intval(substr(protect($_COOKIE[$cookie_prefix."myDates"]),4,-4)); $calendarListQuery = "(d.calendar_id=0 AND e.user_id=$myDatesUser) OR ($calendarListQuery)"; } //Check category choice if($category != "") { $category = intval(protect($category)); $categoryQuery = "AND e.event_category=$category"; } //Run the query $result = query("SELECT d.event_id, d.event_date, d.calendar_id, d.event_time_start, d.event_time_end, e.event_title, e.event_location1, e.event_location2, e.contact_name, e.contact_email, e.event_description, e.style_font_type, e.style_font_style, e.style_font_size, e.style_font_color, e.event_private, e.event_custom1, e.event_custom2, e.event_custom3, e.event_custom4, e.event_custom5, e.event_custom6, e.event_custom7, e.event_custom8, e.event_custom9, e.event_custom10, c.custom1, c.custom2, c.custom3, c.custom4, c.custom5, c.custom6, c.custom7, c.custom8, c.custom9, c.custom10, c.custom1_values, c.custom2_values, c.custom3_values, c.custom4_values, c.custom5_values, c.custom6_values, c.custom7_values, c.custom8_values, c.custom9_values, c.custom10_values, e.event_icon, e.event_background FROM {$calendar_prefix}dates d LEFT JOIN {$calendar_prefix}events e ON d.event_id=e.event_id LEFT JOIN {$calendar_prefix}calendars c ON d.calendar_id=c.calendar_id WHERE (d.event_date BETWEEN '$fromDate' AND '$toDate') AND e.approved=1 AND ($calendarListQuery) $categoryQuery ORDER BY d.event_date, d.event_time_start", $cal_link); //Parse it out while(list($event_id,$event_date,$event_calendar,$event_start,$event_end,$event_title,$event_location1,$event_location2,$contact_name,$contact_email,$event_description,$style_font_type,$style_font_style,$style_font_size,$style_font_color,$event_private,$event_custom1_value,$event_custom2_value,$event_custom3_value,$event_custom4_value,$event_custom5_value,$event_custom6_value,$event_custom7_value,$event_custom8_value,$event_custom9_value,$event_custom10_value,$custom1,$custom2,$custom3,$custom4,$custom5,$custom6,$custom7,$custom8,$custom9,$custom10,$custom1_values,$custom2_values,$custom3_values,$custom4_values,$custom5_values,$custom6_values,$custom7_values,$custom8_values,$custom9_values,$custom10_values,$eventIcon,$eventBackground,$eventIcon) = mysql_fetch_row($result)) { //If this event is private, and we're not viewing the correct calendar, bypass it if($event_private == 1 && $calendarList[0] != $event_calendar) { continue; } //Compile link style $linkStyle = $displayFonts[$style_font_type].$displayStyles[$style_font_style].$displaySizes[$style_font_size].$displayColors[$style_font_color]; //Get the display for this event $toLoad = getDisplay($event_id,$calendar,$category,$event_start,$event_end,$event_title,$event_location1,$event_location2,$contact_name,$contact_email,$event_description,$CalendarInfo['events_display'],$CalendarInfo['hover_display'],$calTitles[$event_calendar],$custom1,$custom1_values,$event_custom1_value,$custom2,$custom2_values,$event_custom2_value,$custom3,$custom3_values,$event_custom3_value,$custom4,$custom4_values,$event_custom4_value,$custom5,$custom5_values,$event_custom5_value,$custom6,$custom6_values,$event_custom6_value,$custom7,$custom7_values,$event_custom7_value,$custom8,$custom8_values,$event_custom8_value,$custom9,$custom9_values,$event_custom9_value,$custom10,$custom10_values,$event_custom10_value,$event_date,0,$linkStyle,$eventBackground,$eventIcon); //Load the cell if($type != "day") { $tmpEventData[$event_date] .= << ENDCELL; } else { $tmpEventData[$event_id]['data'] = $toLoad; $tmpEventData[$event_id]['start'] = $event_start; $tmpEventData[$event_id]['end'] = $event_end; } } } //Check to see if we need to build mini-cals if($CalendarInfo['calendar_style'] == 2 || ($CalendarInfo['calendar_style'] == 1 && ($type == "quarter" || $type == "biyear" || $type == "year"))) { switch($type) { case "quarter": if($quarter == 1) { $miniCal1 = miniCal(1,$year,2); $miniCal2 = miniCal(2,$year,2); $miniCal3 = miniCal(3,$year,2); } if($quarter == 2) { $miniCal1 = miniCal(4,$year,2); $miniCal2 = miniCal(5,$year,2); $miniCal3 = miniCal(6,$year,2); } if($quarter == 3) { $miniCal1 = miniCal(7,$year,2); $miniCal2 = miniCal(8,$year,2); $miniCal3 = miniCal(9,$year,2); } if($quarter == 4) { $miniCal1 = miniCal(10,$year,2); $miniCal2 = miniCal(11,$year,2); $miniCal3 = miniCal(12,$year,2); } break; case "biyear": if($half == 1) { $miniCal1 = miniCal(1,$year,2); $miniCal2 = miniCal(2,$year,2); $miniCal3 = miniCal(3,$year,2); $miniCal4 = miniCal(4,$year,2); $miniCal5 = miniCal(5,$year,2); $miniCal6 = miniCal(6,$year,2); } if($half == 2) { $miniCal1 = miniCal(7,$year,2); $miniCal2 = miniCal(8,$year,2); $miniCal3 = miniCal(9,$year,2); $miniCal4 = miniCal(10,$year,2); $miniCal5 = miniCal(11,$year,2); $miniCal6 = miniCal(12,$year,2); } break; case "year": $miniCal1 = miniCal(1,$year,2); $miniCal2 = miniCal(2,$year,2); $miniCal3 = miniCal(3,$year,2); $miniCal4 = miniCal(4,$year,2); $miniCal5 = miniCal(5,$year,2); $miniCal6 = miniCal(6,$year,2); $miniCal7 = miniCal(7,$year,2); $miniCal8 = miniCal(8,$year,2); $miniCal9 = miniCal(9,$year,2); $miniCal10 = miniCal(10,$year,2); $miniCal11 = miniCal(11,$year,2); $miniCal12 = miniCal(12,$year,2); break; default: $miniCal1 = miniCal($prevMonth,$year,2); $miniCal2 = miniCal($month,$year,2); $miniCal3 = miniCal($nextMonth,$year,2); break; } } //--------------------------------------------------------------------------------------------------------------// // // // B L O C K M O D E // // // //--------------------------------------------------------------------------------------------------------------// if($CalendarInfo['calendar_style'] == 1 && ($type == "week" || $type == "2week" || $type == "3week" || $type == "4week" || $type == "month" || $type == "custom")) { //Determine the number of rows we need switch($type) { case "week": $numRows = 1; break; case "2week": $numRows = 2; break; case "3week": $numRows = 3; break; case "4week": $numRows = 4; break; case "month": $numRows = 6; break; case "custom": $numRows = intval($totalNumberOfDays / 7) + 1; break; } //Initialize the CSS for all possible cells for($i=1;$i<=($numRows * 7);$i++) { $cssData[$i] = "empty"; } //If displaying month mode, adjust our start date if($type == "month") { $monthDoTW = date("w",mktime(01,01,01,$month,01,$year)); $adjFromDate = date("Y-m-d",mktime(01,01,01,$month,01-$monthDoTW+$dayAdj,$year)); } else { $adjFromDate = $fromDate; } //Set a width if($SystemOptions['day_layout'] == 4) { $colWidth = "20%"; } else { $colWidth = "13%"; } //Loop through the rows $counter = 0; if($SystemOptions['day_layout'] == 4 && date("w",strtotime("$year-$month-01 13:01:01")) == 6) { $adjFromDate = date("Y-m-d",strtotime("$adjFromDate 13:01:01")+(86400 * 7)); } for($i=1;$i<=$numRows;$i++) { $cells .= " {$dayOfYear} {$weekOfYear} {$dateLine} {$tmpHolidayData[$cellDate]} {$tmpMyDatesData[$cellDate]} {$tmpEventData[$cellDate]} {$Languages['global']['days'][0]} {$Languages['global']['days'][1]} {$Languages['global']['days'][2]} {$Languages['global']['days'][3]} {$Languages['global']['days'][4]} {$Languages['global']['days'][5]} {$Languages['global']['days'][6]} {$Languages['global']['days'][6]} {$Languages['global']['days'][0]} {$Languages['global']['days'][1]} {$Languages['global']['days'][2]} {$Languages['global']['days'][3]} {$Languages['global']['days'][4]} {$Languages['global']['days'][5]} {$Languages['global']['days'][1]} {$Languages['global']['days'][2]} {$Languages['global']['days'][3]} {$Languages['global']['days'][4]} {$Languages['global']['days'][5]} {$Languages['global']['days'][6]} {$Languages['global']['days'][0]} {$Languages['global']['days'][1]} {$Languages['global']['days'][2]} {$Languages['global']['days'][3]} {$Languages['global']['days'][4]} {$Languages['global']['days'][5]} $miniCal1 $miniCal2 $miniCal3 $miniCal1 $miniCal2 $miniCal3 $miniCal4 $miniCal5 $miniCal6 $miniCal1 $miniCal2 $miniCal3 $miniCal4 $miniCal5 $miniCal6 $miniCal7 $miniCal8 $miniCal9 $miniCal10 $miniCal11 $miniCal12 {$displayDateLine} {$tmpHolidayData[$cellDate]} {$tmpMyDatesData[$cellDate]} {$tmpEventData[$cellDate]} $miniCal1 $miniCal3 $miniCal5 $miniCal7 $miniCal9 $miniCal11 $cells $miniCal2 $miniCal4 $miniCal6 $miniCal8 $miniCal10 $miniCal12 $miniCal1 $miniCal3 $miniCal5 $cells $miniCal2 $miniCal4 $miniCal6 $cells $miniCal1 $miniCal2 $miniCal3 $cells {$tmpCells[$counter]} {$tmpCells[$counter + 1]} {$tmpCells[$counter + 2]} {$tmpCells[$counter + 3]} {$tmpCells[$counter + 4]} {$dayheadArray[0]} {$dayheadArray[1]} {$dayheadArray[2]} {$dayheadArray[3]} {$dayheadArray[4]} {$dayheadArray[5]} {$dayheadArray[6]} {$dayheadArray[7]} {$dayheadArray[8]} {$dayheadArray[9]} {$dayheadArray[10]} {$dayheadArray[11]} {$dayheadArray[12]} {$dayheadArray[13]} {$dayheadArray[14]} {$dayheadArray[15]} {$dayheadArray[16]} {$dayheadArray[17]} {$dayheadArray[18]} {$dayheadArray[19]} {$dayheadArray[20]} {$dayheadArray[21]} {$dayheadArray[22]} {$dayheadArray[23]} {$tmpEventData[$key]['data']} $headRow $completedRows