getBucket($gallery); if(empty($_GET['count'])) $_GET['count']=1; $total_images=count($photos); $up_to=($_GET['count']-1)*10; $p_keys=array_keys($photos); for($k=0;$k<$up_to;$k++) { unset($photos[$p_keys[$k]]); } $k=0; foreach($photos as $key=>$photo){ if($k>9) { break; } $k++; $caption = $wpdb->get_row("SELECT caption FROM ".$wpdb->prefix."amg_caption WHERE photo_hash = '".$photo['hash']."'"); ?>
" width="150" height="100" alt="caption); ?>" title="caption); ?>" />
    '; for($p=1;$p<=$total_pages;$p++) { if($p==$_GET['count']) $s='class="active"'; else $s=''; echo "
  • ".$p."
  • "; } //end here echo "
"; } else{ $imagepath = "http://".$gallery.".s3.amazonaws.com/".base64_decode($_GET['file']); $wpdb->show_errors(); $comments = $wpdb->get_results("SELECT * FROM $table WHERE photo_hash ='".$_GET['id']."'"); $caption = $wpdb->get_row("SELECT caption FROM ".$wpdb->prefix."amg_caption WHERE photo_hash = '".$_GET['id']."'"); echo ''; echo $caption->caption; ?> '.$error.''; ?>
  1. Your comment is awaiting moderation.

    comment; ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>