summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/hooks/main-warning.inc.php
blob: 1778bb9d32eaac6794d063c2dadad674a194e8bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

/*
 * Show notification in main window if there are images that should be deleted and are waiting for confirmation
 */

if (User::hasPermission('.dozmod.expiredimages.delete')) {
	$res = Database::queryFirst("SELECT Count(*) AS cnt FROM sat.imageversion WHERE deletestate = 'SHOULD_DELETE'", array(), true);
	if (isset($res['cnt']) && $res['cnt'] > 0) {
		Message::addInfo('dozmod.images-pending-delete-exist', true, $res['cnt']);
	}
	unset($res);
}