username,$req_user) == 0 || $session->isAdmin()) { } else if(strcmp($session->username,$req_user) == 0 || $session->isScreener()) { } else if(strcmp($session->username,$req_user) == 0 || $session->isMember()) { } else if($member_only_sees_medium_pics == 'yes') { echo(" $website_name : $page_title
"); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top_left.php"); echo(""); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top.php"); echo("


$members_only_text
"); exit(); } //************** DATABASE CONNECTION CHECK ************** if (!(@mysql_select_db($db_name))) // If can't connect to database, error and exit(). { echo(" $website_name : $page_title
"); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top_left.php"); echo(""); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top.php"); echo("


The $website_name $page_title server appears to be down, please try again later, we apologise for this interruption.

"); exit(); } //************** SHUT DOWN WEBSITE CODE ************** if ($turn_website_on == 'no') // If can't connect to database, error and exit(). { echo(" $website_name : $page_title
"); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top_left.php"); echo(""); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top.php"); echo("


The $website_name $page_title server has been turned off to facilitate upgrade and maintenance work to be carried out.

The $website_name apologises for this interruption, service will be resumed ASAP.

"); exit(); } $var = @$_GET['q'] ; $trimmed = trim($var); //trim whitespace from the stored variable if ($var == '' || $var <1000000){ echo(" $website_name : $page_title
"); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top_left.php"); echo(""); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top.php"); echo("


No results were found for your search.

You can use the search page to search for pictures.


[�Click here to search for pictures.�]

"); // bah, modify the "Not Found" error for your needs. exit(); } $result = mysql_query("SELECT * FROM $pictures_table WHERE display_picture='yes' and id like '%$trimmed%' limit 1"); while($row=mysql_fetch_array($result)) { if ($_SESSION["counted_".$row["id"]] != "counted") { $id_count = $row['id']; $views = $row["views"]; mysql_query("UPDATE $pictures_table set views= views + 1 where id = '$id_count'"); $_SESSION["counted_".$row["id"]] = "counted"; } } $num=mysql_numrows($result); if ($num == 0){ echo(" $website_name : $page_title
"); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top_left.php"); echo(""); include ("/home/users/web/b1176/pow.photoarchive/htdocs/includes/top.php"); echo("


No results were found for your search.

You must use the search page to view aircraft details


[�Click here to search for pictures.�]

"); // bah, modify the "Not Found" error for your needs. exit(); } $i=0; while ($i < $num) { $type=mysql_result($result,$i,"type"); $reg=mysql_result($result,$i,"reg"); $photographer=mysql_result($result,$i,"photographer"); $email=mysql_result($result,$i,"email"); $information=mysql_result($result,$i,"information"); $picture=mysql_result($result,$i,"picture"); $picture_category=mysql_result($result,$i,"picture_category"); $date=mysql_result($result,$i,"date"); $location=mysql_result($result,$i,"location"); $country=mysql_result($result,$i,"country"); $cn=mysql_result($result,$i,"cn"); $views=mysql_result($result,$i,"views"); $event=mysql_result($result,$i,"event"); $subtype=mysql_result($result,$i,"subtype"); $subtype2=mysql_result($result,$i,"subtype2"); $id=mysql_result($result,$i,"id"); $full_size_folder=mysql_result($result,$i,"full_size_folder"); $PFATYPENO=mysql_result($result,$i,"PFATYPENO"); $PFASERNO=mysql_result($result,$i,"PFASERNO"); $PLANNUMBER=mysql_result($result,$i,"PLANNUMBER"); $constructor=mysql_result($result,$i,"constructor"); ?> <? echo "$type"; ?> <? if($reg == '-' || $reg == '' || $reg == 'unknown' || $reg == 'Unknown' || $reg == 'UNK' || $reg == 'Unk' || $reg == 'unk') { echo ''; } else { echo ', '.$reg.''; } ?> reg number at "> light aircraft association,picture,photo,photography,aviation,aircraft,flight">
'' && $picture_category == '') || ($subtype2 <> '' && $picture_category == $subtype2)) { echo ''; } else if ($subtype2 <> '' && ($picture_category <> '' && $picture_category <> $subtype2)) { echo ''; } ?> '; } else { echo ''; } ?> '; } else { echo ''; } ?> '; } else { echo ''; } ?> '; } else { echo ''; } ?> '; } ?> '; } else { echo ''; } ?> '; } else { echo ''; } ?> '; } else { echo ''; } ?>
   
Use your back button to return to the results page
   

This picture is copyright protected and may not be used or published without permission.

'; } else { echo 'This picture is � '.$photographer.' and may not be used or published without permission.

'; } ?>
Aircraft & Picture Details This picture has been viewed times
Picture ID:
Picture Category: '.$subtype2.'
Picture Category: '.$subtype2.' / '.$picture_category.'
Type: &fields=model" title="Click here to search for more pictures of the ">
Aircraft Registration: $reg"; } ?>
LAA / PFA Type Number: -
LAA / PFA Type Number: '.$PFATYPENO.'
LAA / PFA Serial Number: -
LAA / PFA Serial Number: '.$PFASERNO.'
Plans or Kit Number: -
Plans or Kit Number: '.$PLANNUMBER.'
Constructor: -
Constructor: '.$constructor.'
Construction Number: '.$cn.'
Location: Unknown, '.$country.'
Location: '.$location.', '.$country.'
Date: '.$date.'
Date: '.$date.'
Event / Fly-In: -
Event / Fly-In: '.$event.'
Photographer: '.$photographer.'     '; } ?> Because there is no name or email address supplied with this picture you will have to contact $website_name instead. Contact '.$website_name.''; } else { echo 'Click here to send '.$photographer.' an email Contact'; } ?>
Additional Information
   
')">Update / Correct Picture Information