get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$ID' "); if ($picture) { if ($ngg_options[deleteImg]) { $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$picture->galleryid' "); if ($gallerypath) { $thumb_folder = ngg_get_thumbnail_folder($gallerypath, FALSE); $thumb_prefix = ngg_get_thumbnail_prefix($gallerypath, FALSE); unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$picture->filename); unlink(WINABSPATH.$gallerypath.'/'.$picture->filename); } } $result = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $ID"); } } if ( isset($_POST['save']) ) { // Function save desription $img_title = attribute_escape($_POST[image_title]); $img_desc = attribute_escape($_POST[image_desc]); $result = $wpdb->query("UPDATE $wpdb->nggpictures SET alttext= '$img_title', description = '$img_desc' WHERE pid = '$ID'"); } } if (($action == "edit") || ($action == "view")) { ( $style == 'inline' ) ? ngg_admintab_insert_pic($ID) : ngg_image_edit(); return; } ?>
get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$picid'"); $imagesrc = ngg_get_image_url($picid); $thumbsrc = ngg_get_thumbnail_url($picid); echo '