function delete_exif_entry($html) { global $CONFIG; deleteExifData($html); require_once './plugins/flf_histotag/include/histotag_histogram_support.php'; // delete the histogram deletehistogram('albums/' . $html['filepath'], $html['filename'], $html['pid']); }
function deleteAllHistograms() { global $CONFIG, $flf_lang_var; $deletedvalues = 0; $result = cpg_db_query("SELECT t.pid, t.filepath, t.filename FROM {$CONFIG['TABLE_PICTURES']} t "); while ($row = mysql_fetch_assoc($result)) { $calldata['pid'] = $row['pid']; $calldata['filepath'] = $row['filepath']; $calldata['filename'] = $row['filename']; if (file_exists('albums/' . $calldata['filepath'] . 'hist_' . $calldata['pid'] . '_' . $calldata['filename'])) { $success = deletehistogram($calldata['filepath'], $calldata['filename'], $calldata['pid']); if ($success) { $deletedvalues++; } } } return $deletedvalues; }