#this script takes the PHPIX URL and passes it to my new image gallery to try and find the new home for the image/album define('RELOCATED_GALLERY_URL','http://www.theswansonfamily.us/modules/gallery2/marc'); define('DEBUG',0); if($_REQUEST['mode']) { $mode = $_REQUEST['mode']; } if($_REQUEST['album']) { $album = $_REQUEST['album']; } if($_REQUEST['pic']) { $pic = $_REQUEST['pic']; } if(preg_match("/\/([^\/]+)$/",$album,$matches)) { $album = $matches[1]; } #should have the one target album here $base_url = "http://www.theswansonfamily.us/modules/gallery2/"; $direct_url = "http://www.theswansonfamily.us/albums/"; $url = $base_url . $album; $try_url = $direct_url . $album . "_0"; $have_rename = 0; if(!empty($album)) { $code = get_http_response($try_url); if($code == 200 || $code == 403 || $code == 301) { #see how many for($i=1;$i<30;$i++) { $code = get_http_response($direct_url . $album . "_$i"); if($code == 200 || $code == 403 || $code == 301) { } else { break; } } $have_rename = $i; } } if($mode == 'album') { if($have_rename != 0) { print " The image gallery has moved! The new system uses a different method of storing the photos. While trying to redirect you to the new site I found more than one possible matching album.
Try some of these links to find what you are looking for: