function generate_exif_entry($html) { global $CONFIG; extractExifsAndImport($html); if ($CONFIG['plugin_flf_histotag_createonupload'] == '1') { // load the functions require_once './plugins/flf_histotag/include/histotag_histogram_support.php'; // create the histogram makeHistogram('albums/' . $html['filepath'], $html['filename'], $html['pid']); } }
function generateAllExifsIntoTable() { global $CONFIG, $flf_lang_var; $insertedvalues = 0; $testedimages = 0; $result = cpg_db_query("SELECT t.pid, t.filepath, t.filename FROM {$CONFIG['TABLE_PICTURES']} t WHERE t.pid not in (SELECT pid from {$CONFIG['TABLE_PREFIX']}plugin_flf_histotag );"); while ($row = mysql_fetch_assoc($result)) { $calldata['pid'] = $row['pid']; $calldata['filepath'] = $row['filepath']; $calldata['filename'] = $row['filename']; $testedimages++; $success = extractExifsAndImport($calldata); if ($success) { $insertedvalues++; } } $returnvalue[0] = $testedimages; $returnvalue[1] = $insertedvalues; return $returnvalue; }