(picture category = {$pic['category']}/ $pid)", __FILE__, __LINE__); if (!isset($user_album_set[$aid])) cpg_die(ERROR, $lang_errors['perm_denied']."
(target album = $aid)", __FILE__, __LINE__); } $update = "aid = '".$aid."'"; if (is_movie($pic['filename'])) { $update .= ", pwidth = ".$pwidth; $update .= ", pheight = ".$pheight; } $update .= ", title = '".addslashes($title)."'"; $update .= ", caption = '".addslashes($caption)."'"; $update .= ", keywords = '".addslashes($keywords)."'"; $update .= ", user1 = '".addslashes($user1)."'"; $update .= ", user2 = '".addslashes($user2)."'"; $update .= ", user3 = '".addslashes($user3)."'"; $update .= ", user4 = '".addslashes($user4)."'"; if ($reset_vcount) $update .= ", hits = '0'"; if ($reset_votes) $update .= ", pic_rating = '0', votes = '0'"; if ($del_comments) { $query = "DELETE FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid='$pid'"; $result =db_query($query); } else { $query = "UPDATE {$CONFIG['TABLE_PICTURES']} SET $update WHERE pid='$pid' LIMIT 1"; $result = db_query($query); } } function get_user_albums($user_id) { global $CONFIG, $USER_ALBUMS_ARRAY, $user_albums_list; if (!isset($USER_ALBUMS_ARRAY[$user_id])) { $user_albums = db_query("SELECT aid, title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category='".(FIRST_USER_CAT + $user_id)."' ORDER BY title"); if (mysql_num_rows($user_albums)) { $user_albums_list=db_fetch_rowset($user_albums); } else { $user_albums_list = array(); } mysql_free_result($user_albums); $USER_ALBUMS_ARRAY[$user_id] = $user_albums_list; } else { $user_albums_list = &$USER_ALBUMS_ARRAY[$user_id]; } } function form_alb_list_box() { global $CONFIG, $CURRENT_PIC; global $user_albums_list, $public_albums_list, $lang_editpics_php; $sel_album = $CURRENT_PIC['aid']; echo << {$lang_editpics_php['album']} EOT; starttable("100%", $lang_editpics_php['desc'], 3); //$pic_info = sprintf($lang_editpics_php['pic_info_str'], $CURRENT_PIC['pwidth'], $CURRENT_PIC['pheight'], ($CURRENT_PIC['filesize'] >> 10), $CURRENT_PIC['hits'], $CURRENT_PIC['votes']); if (!is_movie($CURRENT_PIC['filename'])) { $pic_info = sprintf($lang_editpics_php['pic_info_str'], $CURRENT_PIC['pwidth'], $CURRENT_PIC['pheight'], ($CURRENT_PIC['filesize'] >> 10), $CURRENT_PIC['hits'], $CURRENT_PIC['votes']); } else { $pic_info = sprintf($lang_editpics_php['pic_info_str'], '', '', ($CURRENT_PIC['filesize'] >> 10), $CURRENT_PIC['hits'], $CURRENT_PIC['votes']); } if (defined('UPLOAD_APPROVAL_MODE')) { if ($CURRENT_PIC['owner_name']){ $pic_info .= ' - '.$CURRENT_PIC['owner_name'].''; } } print << $filename {$lang_editpics_php['pic_info']} $pic_info {$CURRENT_PIC['title']}
EOT; form_alb_list_box(); print << {$lang_editpics_php['title']} EOT; echo << {$lang_editpics_php['desc']} {$lang_editpics_php['keywords']} EOT; if ($CONFIG['user_field1_name'] != ''){ echo << {$CONFIG['user_field1_name']} EOT; } if ($CONFIG['user_field2_name'] != ''){ echo << {$CONFIG['user_field2_name']} EOT; }if ($CONFIG['user_field3_name'] != ''){ echo << {$CONFIG['user_field3_name']} EOT; }if ($CONFIG['user_field4_name'] != ''){ echo << {$CONFIG['user_field4_name']} EOT; } print << {$lang_editpics_php['read_exif']}  {$lang_editpics_php['reset_view_count']}  {$lang_editpics_php['reset_votes']}  {$lang_editpics_php['del_comm']}  EOT; endtable(); echo ''; pagefooter(); ob_end_flush(); ?>