0): // $fsponspor1type == 1 AND $contentbox_title = "Sponsors"; $main_item_bottom = $frontsponsor; else: $bannersize = "300x250"; $bannerfile = "bannerscript.php"; include($bannerfile); $main_item_bottom = $bannerscript; endif; if ($universaltimezone == 1): $bbuserinfo[timezoneoffset] = "-5"; $bbuserinfo[timezoneshort] = "ET"; $bbuserinfo[timezone] = "Eastern Time"; else: $bbuserinfo[timezoneoffset] = $timezoneoffset; $bbuserinfo[timezoneshort] = $timezoneshort; $bbuserinfo[timezone] = $timezone; endif; $eventinfo = "

" . $sxe->city . ", " . $sxe->province . "

Dates:

$eventdate 

Purse: 

$purse

Teams: 

$numteams ($numqualify qualifiers)

Format: 

$formattype 

"; $eventright = " "; if ($event_division <> "" AND $eventid_pair <> 0): if ($eventlabel <> ""): $event_division = $eventlabel; endif; $event_division_display = "Click to View " . $event_division; $eventright .= ""; endif; $eventright .= "
$frontboximage
$eventinfo
Click here for Event/Contact information
 $event_division_display
"; $contentbox_title = $eventname; $contentbox_main = $eventright; $contentbox_link = ""; include ("contentbox_new2.php"); $sidebar_content .= $contentboxsection; /* if ($eventid_pair <> 0): $other_event_division = $event_division; $eventid_main = $eventid; $eventid_main_pair = $eventid_pair; $xmlfile = $includeroot . "forums/includes/events/event" . $eventid_pair . ".xml"; $filename = $includeroot . 'forums/tour/tour_event_xml_display.php'; require($filename); if ($eventlabel <> ""): $event_division = $eventlabel; endif; $rr_tournamentid_pair = $rr_tournamentid; $tb_tournamentid_pair = $tb_tournamentid; $po_tournamentid_pair = $po_tournamentid; $primarydraw_pair = $primarydraw; $event_division_display = ""; if ($event_division <> ""): $event_division_display = " (" . $event_division . ")"; elseif ($other_event_division <> ""): if ($other_event_division == "Men"): $event_division_display = "Click to View Women's Event"; else: $event_division_display = "Click to View Men's Event"; endif; endif; $contentbox_title = "$event_division_display"; $contentbox_main = ""; $contentbox_link = ""; include ("contentbox_new2.php"); $sidebar_content .= $contentboxsection; endif; */ if ($rr_tournamentid <> 0 OR $tb_tournamentid <> 0 OR $po_tournamentid <> 0): $drawid = $primarydraw; $showdrawparams = "&showdrawid="; $gameurl = "events.php?eventid=$eventid&view=Scores"; $tournamentid = $rr_tournamentid; $gameurl = "events.php?view=Scores&eventid=".$eventid; $filename = $includeroot . "forums/tour/tour_scoreboard_draw.php"; require($filename); $tournamentid = $tb_tournamentid; $filename = $includeroot . "forums/tour/tour_scoreboard_draw.php"; require($filename); $tournamentid = $po_tournamentid; $filename = $includeroot . "forums/tour/tour_scoreboard_draw.php"; require($filename); $gameurl = ""; if ($eventid_pair <> 0 AND $primarydraw_pair <> ""): $drawid = $primarydraw_pair; $showdrawparams = "&showdrawid="; $gameurl = "events.php?eventid=$eventid&view=Scores"; $tournamentid = $rr_tournamentid_pair; $eventid = $eventid_pair; $gameurl = "events.php?view=Scores&eventid=" . $eventid; $filename = $includeroot . "forums/tour/tour_scoreboard_draw.php"; require($filename); $tournamentid = $event->tb_tournamentid; $filename = $includeroot . "forums/tour/tour_scoreboard_draw.php"; require($filename); $tournamentid = $event->po_tournamentid; $filename = $includeroot . "forums/tour/tour_scoreboard_draw.php"; require($filename); $gameurl = ""; endif; if ($view == "Main" OR $view == ""): $front_event_scoreboard = $scoreboardmain; else: $contentbox_main = $scoreboardmain; $contentbox_title = "Scoreboard"; $contentbox_link = ""; include ("contentbox_new2.php"); $sidebar_content .= $contentboxsection; endif; endif; //$eventid = $original_eventid; //$filename = $includeroot . 'forums/tour/tour_event_xml_display.php'; //require($filename); $bannersize = "300x250"; $bannerfile = "bannerscript.php"; include($bannerfile); $contentbox_title = ""; $contentbox_main = $bannerscript; $contentbox_link = ""; include ("contentbox_new2.php"); $sidebar_content .= $contentboxsection; $filename = $includeroot . 'forums/tour/tour_event_champions_skip.php'; require($filename); if ($champions <> ""): $contentbox_title = "Champions"; $contentbox_main = $champions; $contentbox_link = ""; include ("contentbox_new2.php"); $sidebar_content .= $contentboxsection; endif; if ($view == "Contact"): $filename = $includeroot . 'forums/tour/tour_event_contact.php'; require($filename); $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "Draws"): $filename = $includeroot . 'forums/tour/tour_event_draw.php'; require($filename); $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "Money"): $filename = $includeroot . 'forums/tour/tour_event_ranking.php'; require($filename); $contenttitle = "Prize Purse"; $contentarea .= $ranking_content; elseif ($view == "News"): $filename = $includeroot . 'forums/tour/tour_event_news.php'; require($filename); $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "Photos"): $eventurl = "events.php?view=$view&eventid=$eventid"; $filename = $includeroot . "forums/tour/tour_photo_gallery.php"; include($filename); $contenttitle = "Event Photos"; $contentarea .= $main_section; elseif ($view == "Scores"): $formaction = "events.php?eventid=$eventid&view=Scores"; $scoresurl = "events.php?view=Scores"; $filename = $includeroot . "forums/tour/linescorescode.php"; include($filename); $contentbox_main = str_replace("{localpath}", "", $main_section); $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "Shootout"): $tournamentid = $rr_tournamentid; $filename = $includeroot . 'forums/tour/tour_event_shootout.php'; require($filename); $main_section .= "

Draw Shot Challenge Rankings:

$shootoutresults

"; $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "Round-Robin" OR $view == "Tie-Breakers" OR $view == "Playoffs"): $teamurl = "events.php?view=Team&eventid=$eventid"; $eventurl = "events.php?view=$view&eventid=$eventid"; $filename = $includeroot . 'forums/scores/scores_drawsheet.php'; require($filename); if ($view == "Round-Robin"): $view = "Preliminary Round"; if ($eventround <> ""): $view .= ": " . $eventround; endif; endif; if ($view == "Round-Robin"): if ($rr_title <> ""): $view_display = $rr_title; else: $view_display = $view; endif; elseif ($view == "Tie-Breakers"): if ($tb_title <> ""): $view_display = $tb_title; else: $view_display = $view; endif; elseif ($view == "Playoffs"): if ($po_title <> ""): $view_display = $po_title; else: $view_display = $view; endif; endif; $contenttitle = $view_display; $contentarea .= $main_section; elseif ($view == "Shooting"): $sorturl = "events.php?task=Event&eventid=$eventid&view=Statistics"; $teamurl = "events.php?view=Team&eventid=$eventid"; $shooturl = "events.php?task=Shooting&eventid=$eventid"; $filename = $includeroot . 'forums/stats/shooting_stats_cumulative.php'; require($filename); $filename = $includeroot . 'forums/stats/tourn_stats.php'; require($filename); $main_section .= $stats_section; $main_section .= "" . $teamstuff . "
"; $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "SFM"): $filename = $includeroot . 'forums/tour/tour_event_sfm.php'; require($filename); $contenttitle = "Strength of Field"; $contentarea .= $sfm_content; elseif ($view == "Sponsors"): $formaction = "events.php?eventid=$eventid&view=Scores"; $filename = $includeroot . 'forums/tour/tour_event_sponsors.php'; require($filename); $contenttitle = $view; $contentarea .= $eventsponsor; elseif ($view == "Statistics"): $sorturl = "events.php?task=Event&eventid=$eventid&view=Statistics"; $teamurl = "events.php?view=Team&eventid=$eventid"; $shooturl = "events.php?task=Event&eventid=$eventid&view=Shooting"; $statsparams = " FROM team t, tournamentteam et, tournamentrecord r, player p, tournament e, section s WHERE e.eventid = $eventid AND r.tournamentid = e.tournamentid AND et.tournamentid = e.tournamentid AND et.tournamentteamid = r.tournamentteamid AND t.teamid = et.teamid AND p.playerid = t.skip AND s.sectionid = t.sectionid "; $statsparams2 = "FROM team t, tournamentteam et, tournamentrecordmore r, player p, tournament e, section s WHERE e.eventid = $eventid AND r.tournamentid = e.tournamentid AND et.tournamentid = e.tournamentid AND et.tournamentteamid = r.tournamentteamid AND t.teamid = et.teamid AND p.playerid = t.skip AND s.sectionid = t.sectionid "; $eventparams = "e.eventid = $eventid AND eventtypeid = $eventtypeid"; $filename = $includeroot . 'forums/stats/teamstats.php'; require($filename); $filename = $includeroot . 'forums/stats/tourn_stats.php'; require($filename); $main_section .= $stats_section; $contenttitle = $view; $contentarea .= $main_section; elseif ($view == "Teams"): $playerurl = "player.php?playerid="; $teamurl = "events.php?view=Team&eventid=$eventid"; $filename = $includeroot . 'forums/tour/tour_event_teams.php'; require($filename); $contenttitle .= $view; $contentarea .= $main_section; elseif ($view == "Team"): $xmlfile = $includeroot . "forums/includes/teams/" . $teamid . "teaminfo.xml"; if (file_exists($xmlfile)): $team_array = simplexml_load_file($xmlfile); $xmlteam = 1; $teamphoto = $team_array->photo; $photodesc = $team_array->photodesc; $teamurl = "teams.php?teamid=$teamid"; if ($team_array->profileid <> 0): $teamprofileurl .= "&profileid=".$team_array->profileid; else: $teamprofileurl = ""; endif; $teamurl = $teamurl.$teamprofileurl; if ($teamphoto <> ""): $teamphotostuff = "
"; endif; /* $query = "SELECT * FROM eventteamtourlink WHERE teamid_event = $teamid AND (eventtypeid = 21 OR eventtypeid = 51)"; $teamlink = $DB_site->query_first($query); $tourteamid = $teamlink[teamid_tour]; */ $contentwidth = 300; include("teams_profile.php"); $contentarea .= $teamright; endif; if ($tourteamid > 0): $contentbox_title = "Tour Profile"; $contentbox_main = "Click HERE to View Tour Profile"; $contentbox_link = ""; // include ("contentbox_new2.php"); $list_postitem .= "
  • \"\"

    Tour Profile

    Check out Team XYZ on the World Curling Tour.
  • "; endif; /* $filename = $includeroot . 'forums/tour/tour_event_sponsors_front.php'; require($filename); if ($fsponspor2type == 1): $contentbox_title = "Sponsors"; $contentbox_main = $frontsponsor; $contentbox_link = ""; $contentbox_colour = "FFFFFF"; $contentwidth = "300"; // include ("contentbox_new2.php"); $contentarea .= $contentboxsection; else: if (file_exists('banner300x250.php')): include('banner300x250.php'); $eventsponsors = $bannercode; endif; $contentarea .= $eventsponsors; endif; */ $teamurl = "events.php?view=Team&eventid=$eventid"; $filename = $includeroot . 'forums/scores/scores_gamelog.php'; require($filename); if ($scoresummary <> ""): $list_postitem .= "
  • Event Schedule

    $scoresummary
  • "; endif; $xmlfile = $includeroot . "forums/includes/teams/stats_team" . $teamid . ".xml"; if (file_exists($xmlfile)): $sxe = simplexml_load_file($xmlfile); foreach($sxe->stat as $stats) { $frontstatistics = ""; $frontstatistics .= " "; $frontstatistics .= "
    Games: " . $stats->games . "  
    Record: " . $stats->wins . "W - " . $stats->losses . "L"; if ($stats->ties <> 0): $frontstatistics .= $stats->ties . "T"; endif; $frontstatistics .= "  
    Extra Ends: " . $stats->ee_win . "W - " . $stats->ee_loss . "L  
    One-Point Games: " . $stats->one_point_win . "W - " . $stats->one_point_loss . "L  
    PF/G: " . number_format((double)$stats->pfpg,2) . "  
    PA/G: " . number_format((double)$stats->papg,2) . "  
    Hammer Efficiency: " . number_format((double)$stats->hammer_efficiency,2) . "  
    Steal Defense: " . number_format((double)$stats->steal_defense,2) . "  
    Force Efficiency: " . number_format((double)$stats->force_efficiency,2) . "  
    Steal Efficiency: " . number_format((double)$stats->steal_efficiency,2) . "  
    "; } endif; $list_postitem .= "
  • Team Statistics

    $frontstatistics
  • "; $contentwidth = "310"; $filename = $includeroot . "forums/teams/teams_sponsorfront.php"; include($filename); //$contentbox_title = "Team Sponsors"; //$entbox_maicontn = $teamsponsors; $main_item_image = "upload/politics.jpg"; $main_item_title = $eventname; $main_item_content = $postitem_content; $main_item_more = "READ MORE"; $main_item_more_link = "post.php?postid=".$sxe->postid; $main_item_comments = "PLAYOFF BRACKET"; $main_item_comments_link = "events.php?view=Playoffs&eventid=$eventid"; $main_postitem = "
    \"\"

    $main_item_title

    $main_item_content

    $main_item_comment_line $main_item_more_line

     
    $main_item_bottom
    "; $contentarea = "

    $teamname - $teamlocation

    $main_postitem
    "; elseif ($view == "Watch"): $contentarea = "

    Canada:
    Watch on CBCSports.ca

    International Coverage:

    "; elseif ($view == "XML"): else: if ($front_event_scoreboard <> ""): $list_postitem .= "
  • Scoreboard

    ".$front_event_scoreboard."
  • "; endif; $xmlfile = $includeroot . "forums/includes/clubs/club" . $hostclubid . ".xml"; if ($hostclubid <> 0): $xmlfile = $includeroot . "forums/includes/clubs/club" . $hostclubid . ".xml"; if (file_exists($xmlfile)): $sxe = simplexml_load_file($xmlfile); $cityprov = ""; if ($sxe->address <> ""): $cityprov .= $sxe->address . ", "; endif; if ($sxe->mailaddress <> ""): $cityprov .= $sxe->mailaddress; endif; if ($sxe->address == "" AND $sxe->mailaddress == ""): else: $cityprov .= "
    "; endif; $cityprov .= $sxe->city; if ($sxe->province <> ""): $cityprov .= ", " . $sxe->province; endif; if ($sxe->country <> ""): $cityprov .= ", " . $sxe->country; endif; endif; $list_postitem .= "
  • \"\"

    ".$sxe->clubname."

    ".$cityprov."
  • "; endif; $contentbox_title = "Prize Purse"; $contentbox_main = ""; $frontview = 1; $filename = $includeroot . 'forums/tour/tour_event_ranking.php'; require($filename); $contentbox_main .= $ranking_content; $contentbox_main .= "
    View Full Standings
    "; $contentbox_link = "events.php?eventid=$eventid&view=Money"; if (doubleval($strength_of_field) > 0): if ($ismoney == 0): $sfm_place_points = ""; $one_points = number_format(doubleval($strength_of_field)*7.5,3); $sfm_place_points .= "Champion: ".$one_points."pts
    "; if ($numqualify >=2): $two_points = number_format(doubleval($strength_of_field)*5.5,3); $sfm_place_points .= "2nd Place: ".$two_points."pts
    "; endif; if ($numqualify >=3): $three_points = number_format(doubleval($strength_of_field)*4.25,3); $sfm_place_points .= "Semifinals: ".$three_points."pts
    "; endif; if ($numqualify >=5): $qf_base_value = 3; if ($numteams >= 15 OR ($numteams / $numqualify >= 2)): $five_points = number_format(doubleval($strength_of_field)*$qf_base_value,3); else: if ($numteams >= 14): if ($numqualify == 8): $num_qf_allowed = 3; $qf_base_value = $num_qf_allowed*$qf_base_value/($numqualify-4); endif; elseif ($numteams >= 12): $num_qf_allowed = 2; $qf_base_value = $num_qf_allowed*$qf_base_value/($numqualify-4); elseif ($numteams >= 10): $num_qf_allowed = 1; $qf_base_value = $num_qf_allowed*$qf_base_value/($numqualify-4); endif; endif; if ($numteams >= 10): $five_points = number_format(doubleval($strength_of_field)*$qf_base_value,3); $sfm_place_points .= "Quarterfinals: ".$five_points."pts
    "; endif; endif; $sfm_placement = "$sfm_place_points"; endif; $list_postitem .= "
  • Strength of Field: $strength_of_field

    $sfm_placement
  • "; endif; if ($ismoney == 1): $list_postitem .= "
  • $contentbox_title

    $contentbox_main
  • "; endif; $xmlfile = $includeroot."forums/includes/events/television_eventid".$eventid.".xml"; if (file_exists($xmlfile)): $filename = $includeroot."forums/tour/tour_event_stream_schedule.php"; include($filename); $contentbox_main = $main_section; $contentbox_title = "TV / STREAMING SCHEDULE"; $list_postitem .= "
  • \"\"

    $contentbox_title

    $contentbox_main
  • "; endif; if ($ismoney == 0 AND $front_event_scoreboard == ""): if ($onlineregister == 1): $contentbox_title = "Register Online"; if ($onlineregisterlink <> ""): $contentbox_link = $onlineregisterlink; else: $contentbox_link = "http://teams.curlingzone.com/index.php?task=Register&eventid=".$eventid; endif; $contentbox_main = "Click HERE to Register for this event!"; $list_postitem .= "
  • \"\"

    $contentbox_title

    $contentbox_main
  • "; endif; if ($hostclubid <> 0): $xmlfile = $includeroot . "forums/includes/clubs/club" . $hostclubid . ".xml"; if (file_exists($xmlfile)): $sxe = simplexml_load_file($xmlfile); $clubvenuename = $sxe->clubname; $cityprov = "" . $sxe->clubname . "
    "; if ($sxe->address <> ""): $cityprov .= $sxe->address . ", "; endif; if ($sxe->mailaddress <> ""): $cityprov .= $sxe->mailaddress; endif; if ($sxe->address == "" AND $sxe->mailaddress == ""): else: $cityprov .= "
    "; endif; $cityprov .= $sxe->city; $club_search = str_replace(" ", "+", $sxe->clubname).",".$sxe->city; $clubcityprov = $sxe->city; if ($sxe->province <> ""): $cityprov .= ", " . $sxe->province; $clubcityprov .= ", " . $sxe->province; $club_search .= "+".$sxe->province; endif; if ($sxe->country <> ""): $cityprov .= ", " . $sxe->country; $clubcityprov .= ", " . $sxe->country; $club_search .= "+".$sxe->country; endif; endif; else: $clubcityprov = $cityprov; $club_search = $cityprov; endif; if ($contact <> ""): $contactinfo = "" . $contact . ""; if ($contactemail <> ""): $contactinfo .= "
    E: " . $contactemail . ""; endif; if ($contactphone <> ""): $contactinfo .= "
    P: " . $contactphone; endif; if ($contactfax <> ""): $contactinfo .= "
    F: " . $contactfax; endif; endif; $eventdescription = str_replace(chr(13),"
    ",$eventdescription); $paymentinfo = str_replace(chr(13),"
    ",$paymentinfo); if ($eventdescription <> ""): $list_postitem .= "
  • Event Description

    $eventdescription
  • "; endif; if ($paymentinfo <> ""): $list_postitem .= "
  • Payment Information

    $paymentinfo
  • "; endif; if ($paypalcode <> ""): $list_postitem .= "
  • $paypalcode
  • "; endif; $list_postitem .= "
  • Location

    $cityprov
  • "; if ($contactinfo <> ""): $list_postitem .= "
  • Contact

    $contactinfo
  • "; endif; $xmlfile = $includeroot . "forums/includes/events/files" . $eventid . ".xml"; if (file_exists($xmlfile)): $sxe = simplexml_load_file($xmlfile); $contentbox_main = ""; $filecount = 0; foreach($sxe->file as $file) { $filecount++; $list_postitem .= "
  • filename."\">Download

    ".$file->filedesc."
  • "; } endif; endif; if ($facebookrss <> "" AND 1 == 0): if (strpos($facebookrss, "/") >= 1): $facebook_code = substr($facebookrss, strrpos($facebookrss, "/")+1); else: $facebook_code = $facebookrss; endif; $facebook_url = "https://www.facebook.com/feeds/page.php?id=" . $facebook_code . "&format=rss20"; //Run the function with the url and a number as arguments $myfb_statuses = fetch_fb_feed($facebook_url, 3); //Print Facebook status updates $facebook_content .= ""; $facebook_content .= ""; foreach ($myfb_statuses as $k => $v) { $content_check = substr($v['desc'], 0, 20); $facebookdesc = str_replace("" .$facebookdesc. ""; $facebook_content .= "
    " .$v['date']. ""; $facebook_content .= "
    Link to status update

    "; } $facebook_content .= ""; $facebook_content .= "
    "; elseif ($facebook <> ""): $facebook_content = "
    "; endif; if ($facebook_content <> ""): $facebook_content = "
    $facebook_content
    "; $contentbox_title = "Facebook"; $contentbox_main = $facebook_content; $contentbox_link = ""; $list_postitem .= "
  • $contentbox_main
  • "; endif; // MAIN ITEM CONTENT $item_display_box = "event_main_item_box.php"; $xmlfile = $includeroot . "forums/includes/events/event".$eventid."_checklist.xml"; if (file_exists($xmlfile)): $checklist = simplexml_load_file($xmlfile); foreach ($checklist->item as $item){ if ($item->status == 1 AND $main_item_set == 0): if ($item->itemid == 1): // champion $comesfrom = 1; include("event_main_item_champion.php"); elseif ($item->itemid == 2): // playoffs $comesfrom = 1; include("event_main_item_playoffs.php"); elseif ($item->itemid == 3): // tiebreakers elseif ($item->itemid == 4): // draw set include("event_main_item_draw.php"); elseif ($item->itemid == 5): // sfm set elseif ($item->itemid == 6): // teams set endif; endif; } endif; if ($main_item_set == 0): $comesfrom = 2; include("event_main_item_champion.php"); endif; if ($main_item_set == 0): $postitem_content = "The ".$eventname." takes place ".$eventdate; if ($hostclubid <> 0): $postitem_content .= " at the ".$clubvenuename; elseif ($hostvenueid <> 0): $postitem_content .= " at the ".$clubvenuename; endif; $postitem_content .= " in ".$clubcityprov.","; if ($numteams <> 0): $postitem_content .= " featuring ".$numteams." teams playing"; else: $postitem_content .= " with teams playing"; endif; if ($formattype <> ""): $postitem_content .= " a ".$formattype." format"; endif; if ($eventpurse <> "" AND intval($eventpurse) <> 0): $postitem_content .= " for a $".number_format((double)$eventpurse,0)." purse"; else: $postitem_content .= " for the title"; endif; $postitem_content .= "."; $main_item_title = $eventname; $main_item_content = $postitem_content; $main_item_more = "READ MORE"; $main_item_more_link = "post.php?postid=".$sxe->postid; $main_item_comments = "PLAYOFF BRACKET"; $main_item_comments_link = "events.php?view=Playoffs&eventid=$eventid"; include($item_display_box); endif; // DISPLAY CHAMPION / NEWS $xmlfile = $includeroot . "forums/includes/events/event".$eventid."champion.xml"; if (file_exists($xmlfile)): endif; $contentarea = "

    $eventname

    $main_postitem
    "; /*
  • \"\"

    Adipiscing elit. Nam non consectetur leo. Phasellus

    March 25, 2012
  • */ endif; /* if ($website <> ""): $contentbox_title = "Event Website"; $contentbox_main = "Click HERE to View Event Site"; $contentbox_link = ""; $contentwidth = "300"; $contentbox_colour = "FFFFFF"; include ("contentbox_new2.php"); echo $contentboxsection; endif; if ($shootout == 1): $contentbox_title = "Shootout Scores"; $contentbox_main = "Click here to view Tiebreaker Shootout Standings"; $contentbox_link = ""; $contentwidth = "300"; $contentbox_colour = "FFFFFF"; include ("contentbox_new2.php"); echo $contentboxsection; endif; if ($go_basic == 0): $query = "SELECT * FROM photos p WHERE p.eventid = $eventid ORDER BY RAND() LIMIT 1"; if ($img=$DB_site->query_first($query)): $imgfile = $includeroot . "forums/images/photos/" . $img[imgfile]; list($width, $height, $type, $attr) = getimagesize($imgfile); if ($width > 250): $divideby = $width / 250; $width = $width / $divideby; $height = $height / $divideby; endif; $imageurl = $imagesurl . "/photos/" . $img[imgfile]; $main_section = "
    Click to View More Photos!
    "; $contentbox_title = "Photo Gallery"; $contentbox_main = $main_section; $contentbox_link = ""; $contentwidth = "300"; $contentbox_colour = "FFFFFF"; include ("contentbox_new2.php"); echo $contentboxsection; endif; endif; */ endif; $content_page_title = $eventname; $submenufile = "submenu_events.php"; include('header.php'); echo $header; include('content.php'); echo $content; include('sidebar.php'); echo $sidebar; include('footer.php'); echo $footer; ?>