"); include("includes_01/header_03_no_menu.php"); echo ("



The WorldAirPics.com server appears to be down, please refresh this page or try again later.


WorldAirPics.com apologises for this interruption.












"); include("includes_01/footer_01.php"); echo (""); // bah, modify the "Not Found" error for your needs. exit(); } if (!(@mysql_select_db($db_name))) // If can't connect to database, error and exit(). { echo(" WorldAirPics.com "); include("includes_01/header_03_no_menu.php"); echo ("



The WorldAirPics.com server appears to be down, please refresh this page or try again later.


WorldAirPics.com apologises for this interruption.












"); include("includes_01/footer_01.php"); echo (""); // bah, modify the "Not Found" error for your needs. exit(); } if ($turn_website_on != 'yes') // Check if website is turned on or off, error and exit(). { echo(" WorldAirPics.com "); include("includes_01/header_03_no_menu.php"); echo ("



The $website_name_01 has been turned off for maintenance, please try again later.


$website_name_01 apologises for this interruption.












"); include("includes_01/footer_01.php"); echo (""); // bah, modify the "Not Found" error for your needs. exit(); } $var = @$_GET['q'] ; //**********Last Page Visited********** // Function to generate random string function randomstring($chars) { srand((double) microtime() * 1000000); $allowchars = '0123456789'; while(++$n < ($chars+1)) $freturn .= $allowchars[rand(0, strlen($allowchars)-1)]; return $freturn; } $random = randomstring("5"); $current_time = time(); $trimmed_time = substr($current_time, 5); $random_id = "$trimmed_time$random"; $question_mark = "?q="; $page_name = "$page_name$question_mark$var"; $query_redirect = "insert into airpics_logging_redirect (redirect_url, unique_id, timestamp) VALUES ('$page_name', '$random_id', NOW())"; $result_redirect = mysql_query($query_redirect); if (!isset($result_redirect)) { echo ("Error in query.
Please go back and try again."); //exit(); } //**********Results Check********** if ($var == '' || $var <1000000) { echo(" WorldAirPics.com "); include("includes_01/header_03_no_menu.php"); echo ("



No results were found for your search.


[�Click here to search for pictures.�]












"); include("includes_01/footer_01.php"); echo (""); // bah, modify the "Not Found" error for your needs. exit(); } mysql_connect("$db_addr", "$db_user", "$db_pass"); mysql_select_db("airpics") or die( "Unable to select database"); $result = mysql_query("SELECT * FROM $pictures_table WHERE display_picture='yes' and id = '$var'"); $num=mysql_numrows($result); if ($num == 0){ echo(" $website_name_01 "); include("includes_01/header_03.php"); require_once('/home/users/web/b2270/pow.frankjnr/htdocs/worldairpics/forum/SSI.php'); $logout_page = "$wap_login_link/logout.php?url=$random_id"; //if ($context['user']['is_admin']) //{ // echo ' // // Logged in as an admin // '; //} // 1= Admin // 2= Moderator // 9= Screener // 10= Premium Member $ad_free_groups = array(1, 2, 9,10); $no_adverts = FALSE; foreach ($ad_free_groups as $ad_free) if (in_array($ad_free, $user_info['groups'])) { $no_adverts = TRUE; break; } $username = $context['user']['name']; if ($context['user']['is_guest']) { echo "

You are not logged in. Please Login or Register
"; } else { echo "

You are logged in as $username - "; $_SESSION['logout_url'] = "$page_name"; ssi_logout($logout_page); echo "
"; } if ($no_adverts) { echo ""; } else { echo "


"; include("adverts/google_468_60.php"); echo "

"; } echo ("





No results were found for your search.


[�Click here to search for pictures.�]












"); include("includes_01/footer_01.php"); echo (""); // bah, modify the "Not Found" error for your needs. exit(); } //your webpage that you want it to be directed to: $address = 'contact.php'; //title of the contact form $title = 'WorldAirPics.com'; $type=mysql_result($result,$i,"type"); $medpicture=mysql_result($result,$i,"medpicture"); $photographer=mysql_result($result,$i,"photographer"); $photographer_email=mysql_result($result,$i,"email"); $id=mysql_result($result,$i,"id"); if ($photographer == '' || $photographer == '-' || $photographer == 'Unknown' || $photographer_email == '' || $photographer_email == '-' || $displayedinfo == 'no_info' || $displayedinfo == 'name_only') { $subject=("Contact Frank regarding the $type picture on WorldAirPics.com"); $photographer_01=("Frank"); } else { $subject=("Your $type picture on WorldAirPics.com"); $photographer_01=$photographer; } ?> Contact <? echo "$photographer_01"; ?> about Picture ID: <? echo "$id"; ?> ">

You are not logged in. Please Login or Register






Contact about Picture ID: (shown below)

 
"; ?>
 
This picture is copyright protected and may not be used or published without permission.

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

'; } ?>
Contact about Picture ID:
" align="center" method="post">
Your name:

Your email address:

Subject:

Comments: