mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
- check for missing checksum
This commit is contained in:
parent
78cd9f4c8f
commit
f54053daa8
|
@ -148,9 +148,11 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style {
|
|||
$folder = $this->params['folder'];
|
||||
$unlinkedversions = $this->params['unlinkedcontent'];
|
||||
$nofilesizeversions = $this->params['nofilesizeversions'];
|
||||
$nochecksumversions = $this->params['nochecksumversions'];
|
||||
$repair = $this->params['repair'];
|
||||
$unlink = $this->params['unlink'];
|
||||
$setfilesize = $this->params['setfilesize'];
|
||||
$setchecksum = $this->params['setchecksum'];
|
||||
|
||||
$this->htmlStartPage(getMLText("admin_tools"));
|
||||
$this->globalNavigation();
|
||||
|
@ -236,6 +238,34 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style {
|
|||
}
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
$this->contentHeading(getMLText("missing_checksum"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
if($nochecksumversions) {
|
||||
print "<table class=\"table-condensed\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("document")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("original_filename")."</th>\n";
|
||||
print "<th>".getMLText("mimetype")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
foreach($nochecksumversions as $version) {
|
||||
$doc = $version->getDocument();
|
||||
print "<tr><td>".$doc->getId()."</td><td>".$version->getVersion()."</td><td>".$version->getOriginalFileName()."</td><td>".$version->getMimeType()."</td>";
|
||||
if($setchecksum) {
|
||||
$version->setChecksum();
|
||||
}
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "</tbody></table>\n";
|
||||
if($setchecksum == 0) {
|
||||
echo '<p><a href="out.ObjectCheck.php?setchecksum=1">'.getMLText('do_object_setchecksum').'</a></p>';
|
||||
}
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user