Event_Visits($id); } include('inc/head_html.php'); $navbar[1]=array('name'=>'Calender / Events','href'=>$servername.'events'); if(!empty($date)){ $datenav=explode('-',$date); $navbar[2]=array('name'=>"$datenav[2].$datenav[1].$datenav[0]"); } $user->Nav_Bar($navbar); if($user->logged==1){ echo ' '; } if(!empty($id)){ $eventID=$events->Get_Event($id); }else{ /*if(!empty($_GET['month'])) $month=$_GET['month']; else $month=date('Y-m-01'); if(!empty($date) && empty($_GET['month'])){ $from_month=date('Y-m-d',mktime(0,0,0,substr($date,5,2)-1,1,substr($date,0,4))); $month=date('Y-m-d',mktime(0,0,0,substr($date,5,2),1,substr($date,0,4))); }*/ $cur_month=(!empty($_GET['cur_month']))?$_GET['cur_month']:date('m'); $cur_year=(!empty($_GET['cur_year']))?$_GET['cur_year']:date('Y'); if(!empty($_GET['cur_month']))$date="$cur_year-$cur_month-01"; if(empty($_GET['cur_month']) && !empty($date)){ $datee=explode('-',$date); $cur_year=$datee[0]; $cur_month=$datee[1]; } $from_date="$cur_year-".(($cur_month-1)<=9?'0':'').($cur_month-1)."-01"; $to_date="$cur_year-".(($cur_month+1)<=9?'0':'').($cur_month+2)."-01"; $events->Get_Events_Dates($from_date,$to_date); echo '
'; for($i=$cur_month-1;$i<=$cur_month+1;$i++){ $month=date("$cur_year-$i-01"); $month=new month($month,$servername.'events'); $month->monthdisplay(); } echo '
'; echo '
Full Archive
'; echo '
'; if(empty($date)){ $from_date=date('Y-m-d'); } $events->Get_Events($date,@$from_date); } include('inc/footer.php'); ?>