0) { $nickNameRequested = ""; } if (!empty($nickNameRequested) && empty($gclid)) { // To MEMBER and FREE Galleries if (strpos($nickNameRequested,"=") > 0) { // if there if MORE than just a nickname // do home below // header("Location: home.php"); } elseif (empty($gclid)) { // ?jim header("Location: mg.php?nickName=" . $nickNameRequested, true, 301); exit; // Immediately stop further execution } } else { // if there is no nickname //parse out the requested domain $DomainRequested = strtolower($_SERVER['SERVER_NAME']); if (empty($DomainRequested)) { $DomainRequested = "betterphoto"; } if (strpos($DomainRequested,"betterphoto.fun") > 0 || strpos($DomainRequested,"betterphotos.fun") > 0) { // redirect old dot fun, for Google header("Location: https://www.betterphoto.com", true, 301); exit; // Immediately stop further execution } // and drop the "www." and the ".com" $DomainRequested = str_replace("www.", "", $DomainRequested); $DomainRequested = str_replace(".com", "", $DomainRequested); $DomainRequested = str_replace(".ai", "", $DomainRequested); $DomainRequested = str_replace(".co", "", $DomainRequested); $DomainRequested = str_replace(".net", "", $DomainRequested); $DomainRequested = str_replace(".org", "", $DomainRequested); $DomainRequested = str_replace(".info", "", $DomainRequested); $DomainRequested = str_replace(".biz", "", $DomainRequested); $DomainRequested = str_replace(".club", "", $DomainRequested); $DomainRequested = str_replace(".ca", "", $DomainRequested); $DomainRequested = str_replace(".us", "", $DomainRequested); $DomainRequested = str_replace(".co.uk", "", $DomainRequested); $DomainRequested = str_replace(".com.au", "", $DomainRequested); $DomainRequested = str_replace(".photography", "", $DomainRequested); $DomainRequested = str_replace(".tv", "", $DomainRequested); $DomainRequested = str_replace(".fi", "", $DomainRequested); $DomainRequested = str_replace(".nl", "", $DomainRequested); $DomainRequested = str_replace(".me", "", $DomainRequested); $DomainRequested = str_replace(".fun", "", $DomainRequested); if (!empty($DomainRequested)) { if ($DomainRequested == "betterphoto" || $DomainRequested == "betterphotos") { //if we could not get a server name, go home // do home below // header("Location: https://www.betterphoto.com/home.php"); } else { // to DELUXE SITES if (!empty($gclid)) { $gclid="?=" . $gclid; } if ($DomainRequested == "personalityquizz") { //if for quizz, go directly there header("Location: https://www.personalityquizz.com/a-test.php", true, 301); exit; } if (!isset($conn) || !$conn) { die("Database connection failed."); } $post = "No"; // Default value before the database query // look em up $q1="SELECT siteID, dateStatsPaid, post FROM DeluxeSites WHERE lcase(domainFinal) LIKE '" . strtolower($DomainRequested) . "%'"; $dataSites = mysqli_query($conn, $q1); $tCountDS1 = ($dataSites) ? mysqli_num_rows($dataSites) : 0; if ($tCountDS1 > 0){ while($deluxeDBstuff = mysqli_fetch_assoc($dataSites)) { $dateStatsPaid = $deluxeDBstuff['dateStatsPaid']; $post = $deluxeDBstuff['post']; } // look 'em up... reject if not paid up $countryWebSite = left(right(strtolower($_SERVER['SERVER_NAME']),6),3); } else { $q1="SELECT domainExpiration FROM NonDeluxeDomainNames WHERE lcase(domainName) LIKE '" . strtolower($DomainRequested) . "%'"; $dataSites2 = mysqli_query($conn, $q1); $tCountDS2 = ($dataSites2) ? mysqli_num_rows($dataSites2) : 0; if ($tCountDS2 > 0){ while($deluxeDBstuff2 = mysqli_fetch_assoc($dataSites2)) { $dateStatsPaid = ""; $countryWebSite = ""; $domainExpiration = $deluxeDBstuff2['domainExpiration']; if (!empty($domainExpiration)) { $post = "Yes"; } } } } echo "

tCountDS1=".$tCountDS1; if ($post == 'Yes'){ if ($countryWebSite == '.co') { header("Location: https://" . strtolower($_SERVER['SERVER_NAME']) . "/-/" . $DomainRequested . $countryWebSite, true, 301); // for other countries exit; // Immediately stop further execution } else { header("Location: https://" . strtolower($_SERVER['SERVER_NAME']) . "/-/" . $DomainRequested . "/" . $gclid, true, 301); exit; // Immediately stop further execution } } else { echo "

This site is now offline. If you are the site owner and would like to renew, click "; if (empty($dateStatsPaid)) { echo "Deluxe"; } else { echo "Pro"; } echo " on this page and pay to renew. As soon as we see your order, we will work to reinstate your Website. Contact us if you have questions. Thank you."; exit; } } // if we have a domainrequested and either bp or a dlx/pro } else { /* if domain is empty */ // do home below // header("Location: https://www.betterphoto.com/home.php"); } } $seoTitle = "Photography Courses, Quotes, Tips & Inspiration for Creative Photographers"; $seoMetaDescription = "Is photography your passion? Make your fun hobby even better. Started in 1996, we are one of the longest lasting communities of creative photography enthusiasts. Join us!"; require 'incHeadWithoutRequired.php'; ?>

0){ while($ImageSetPOTD = mysqli_fetch_assoc($dataPOTD)) { $photoID = $ImageSetPOTD['photoID']; $photoName = $ImageSetPOTD['photoName']; $photoDirectory = $ImageSetPOTD['directory']; } if (isMovedtoNewServer($conn,$photoID)==1) { $imageURL = SITE_URL; } else { $imageURL = SITE_URL_OLD; } $imageURL .= $photoDirectory . "/" . $photoName .".jpg"; } $imageURLGOTD = "https://www.betterphoto.com/uploads/processed/2416/2024Apr15-0425351FullSizeRender.jpg"; // GET POTD if it's horizontal (or get SOTD if IT's horizontal) $q = "SELECT p.photoID, photoName, directory FROM Photos p JOIN PhotoCatsCross pcc ON p.photoID = pcc.photoID WHERE pcc.catID = 69384 ORDER BY pcc.dateCreated DESC LIMIT 1"; /* */ $dataGOTD = mysqli_query($conn, $q); $tCountGOTD = ($dataGOTD) ? mysqli_num_rows($dataGOTD) : 0; /**/ if ($tCountGOTD > 0){ while($ImageSetGOTD = mysqli_fetch_assoc($dataGOTD)) { $photoIDG = $ImageSetGOTD['photoID']; $photoNameG = $ImageSetGOTD['photoName']; $photoDirectoryG = $ImageSetGOTD['directory']; } if (isMovedtoNewServer($conn,$photoIDG)==1) { $imageURLGOTD = SITE_URL; } else { $imageURLGOTD = SITE_URL_OLD; } $imageURLGOTD .= $photoDirectoryG . "/" . $photoNameG .".jpg"; } ?>

Win Photo of the Day!

Get inspired to earn your own Photo of the Day. Join the fun!

Register
Log in

Gem of the Day: a creative photo with an inspiring quote. Play to win!

Register
Log in
62657

Members

9

Million Photos

1835

Trees Planted

  • Bronze (me)(upgrade)
  • Showcase Up to 1,000 Photos
  • Classic Photo Gallery
  • 1 entry into contest per day
  • $5.75

    per month
    ($69 billed annually)

  • Free 30-Day Trial
  • Silver (me)(upgrade)
  • MOST POPULAR
  • Enjoy All Bronze Benefits AND
  • Showcase Up to 3,000 Gallery Photos
  • 10 Contest Entries Per Day
  • Private Forum
  • OPTIONAL ADD-ON: Deluxe Website - additional $40/year
  • $10.75

    per month
    ($129 billed annually)
  • Gold VIP (me)(upgrade) (upgrade)
  • Access All Silver Benefits... PLUS:
  • Unlimited Photo Showcasing
  • Enter Contests Without Limits
  • Pro Website with Your Domain Name (find domain name): Make a Professional Impression:
  • Create Multiple Galleries
  • Password-Protected Galleries
  • Show Off with a Slideshow on Homepage
  • $32.4

    per month
    ($389 billed annually)