Fixes #272 missing md5sum

* dashboard: add warning if missing checksums
* add a "compute all missing md5sum" option in batch manager (inspired by delete orphans)
* progress bar when computing md5sums
This commit is contained in:
Teatek
2019-01-22 10:26:52 +01:00
committed by Pierrick Le Gall
parent 29f938acba
commit b05241f508
10 changed files with 206 additions and 4 deletions
+17 -1
View File
@@ -79,8 +79,21 @@ DELETE FROM '.CADDIE_TABLE.'
redirect(get_root_url().'admin.php?page='.$_GET['page']);
}
}
}
if ('sync_md5sum' == $_GET['action'] and isset($_GET['nb_md5sum_added']))
{
check_input_parameter('nb_md5sum_added', $_GET, false, '/^\d+$/');
if ($_GET['nb_md5sum_added'] > 0)
{
$_SESSION['page_infos'][] = l10n_dec(
'%d checksums were added', '%d checksums were added',
$_GET['nb_md5sum_added']
);
redirect(get_root_url().'admin.php?page='.$_GET['page']);
}
}
}
// +-----------------------------------------------------------------------+
// | initialize current set |
// +-----------------------------------------------------------------------+
@@ -369,6 +382,9 @@ SELECT id
case 'no_album':
$filter_sets[] = get_orphans();
break;
case 'no_sync_md5sum':
$filter_sets[] = get_photos_no_md5sum();
break;
case 'no_tag':
$query = '