#!/usr/bin/php
This script should only be invoked from command line!
\n"; die; } require_once "phpfspot.class.php"; $fspot = new PHPFSPOT; $fspot->fromcmd = true; $all_dups = $fspot->cfg_db->db_query(" SELECT i1.img_idx as i1, i2.img_idx as i2 FROM images i1 INNER JOIN images i2 ON ( i1.img_md5=i2.img_md5 AND i1.img_idx!=i2.img_idx ) ORDER BY i1.img_idx ASC "); while($row = $fspot->cfg_db->db_fetch_object($all_dups)) { if($photo1 = $fspot->getphotoname($row['i1'])) { print "Dups for ". $photo1 ."\n"; if($photo2 = $fspot->getphotoname($row['i2'])) { print "\t". $photo2 ."\n"; } } } ?>