1) ? $start."/" : ""; $canonical_url = $album_photos_url.$start_str; if (preg_match("/thumbnail\.php/",$_SERVER['REQUEST_URI'])) { header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$protocol_site_domain.$canonical_url); exit; } $head_string = " "; $row_2 = mysqli_fetch_array(mysqli_query($connect, "select count(*) from Album_photo".$where_str)); if (!$start || $start<0) $start = 1; $total = $row_2[0]; $scale = 120; $page_scale = $default_page_scale; $total_page = @ceil($total/$scale); if ($total_page>0 && $start>$total_page) $start = $total_page; $m = ($start-1)*$scale; if ($isMobile) { $result = mysqli_query($connect, "select idx,album_idx,thumb_name,format from Album_photo".$where_str." order by idx desc limit ".$m.",".$scale); } else { $result = mysqli_query($connect, "select idx,mem_idx,album_idx,thumb_name,likes,format from Album_photo".$where_str." order by idx desc limit ".$m.",".$scale); } if ($mode=="artist") { $breadcrumb_3_cnt = $total; } else if ($mode=="album") { $tmp = mysqli_fetch_array(mysqli_query($connect, "select count(*) from Album_photo where artist_idx='".$tmet["band_idx"]."'")); $breadcrumb_3_cnt = $tmp[0]; $breadcrumb_4_cnt = $total; } $chk_num = mysqli_num_rows($result); if ($isMobile) { $no_top_ad = 1; if ($chk_num>=22) $echo_matched_content = 1; $top_include_file = "../mobile_top.php"; $main_include_file = "include/mobile_photos_thumbnail.php"; include "../mobile_site_layout.php"; } else { $top_include_file = "../top_new.php"; $main_include_file = "include/photos_thumbnail.php"; $side_include_file_1 = "../side/side_group_2.php"; if ($chk_num>=22) $side_include_file_2 = "../side/matched_content.php"; include "../site_layout_new.php"; } include "../hidden2.php"; ?>