//addslashes($title5); htmlspecialchars($title5); $output .= $cr . "['" . addslashes($title5); if ($setting->show_num == 1) { $output .= imgcount($ca5->id, 1, 0, $item_id, 0, $setting->show_private); $output .= " (" . $photo_rows_final . ")', "; $photo_rows_final = 0; } else { $output .= "', "; } if ($ca5->pub_pri == 1) { $output .= "'" . $setting->site_url . "/pri.php?gid=" . $ca5->id . "&gal=" . $ca5->rdmcode . "'],"; } else { //$output.= "'" . $setting->site_url . "/gallery.php?gid=" . $ca5->id . "'],"; if ($setting->modrw) { $output .= "'" . $setting->site_url . "/" . mod_clean($ca5->title) . "_g" . $ca5->id . ".html'],"; } else { $output .= "'" . $setting->site_url . "/gallery.php?gid=" . $ca5->id . "'],"; } } } $output .= $cr . "],"; } } $output .= $cr . "],"; } } $output .= $cr . "],"; } } $output .= $cr . "],";
$ca_rows = mysql_num_rows($ca_result); $ca = mysql_fetch_object($ca_result); if($ca_rows){ $crumb_array_name[$ca->id] = $ca->title; $gid = $ca->nest_under; if($ca->nest_under != 0){ crumbs($gid); } } } crumbs($_GET['gid']); $thru = 1; $total_crumbs = count($crumb_array_name); $curgal = mod_clean($crumb_array_name[$_GET['gid']]); foreach(array_reverse($crumb_array_name,1) as $key => $value){ if($thru < $total_crumbs){ $pri_gal_result = mysql_query("SELECT pub_pri,rdmcode FROM photo_galleries where id = '$key'", $db); $pri_gal = mysql_fetch_object($pri_gal_result); if($pri_gal->pub_pri != 0){ echo "<a href=\"pri.php?gal=" . $pri_gal->rdmcode . "&gid=" . $key . "\" class=\"crumb_links\">" . $value . "</a>"; } else { mod_gallerylink($value,$key,"crumb_links"); } //echo " <img src=\"images/nav_arrow.gif\" align=\"absmiddle\" /> "; } else { $pri_gal1_result = mysql_query("SELECT pub_pri,rdmcode FROM photo_galleries where id = '$key'", $db); $pri_gal1 = mysql_fetch_object($pri_gal1_result);