From f54053daa83ee2af0a8f0e0ab922a3d3fc33be8b Mon Sep 17 00:00:00 2001 From: steinm Date: Fri, 8 Feb 2013 15:02:19 +0000 Subject: [PATCH] - check for missing checksum --- views/bootstrap/class.ObjectCheck.php | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php index 5b83437e2..996703313 100644 --- a/views/bootstrap/class.ObjectCheck.php +++ b/views/bootstrap/class.ObjectCheck.php @@ -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 ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + foreach($nochecksumversions as $version) { + $doc = $version->getDocument(); + print ""; + if($setchecksum) { + $version->setChecksum(); + } + print "\n"; + } + print "
".getMLText("document")."".getMLText("version")."".getMLText("original_filename")."".getMLText("mimetype")."
".$doc->getId()."".$version->getVersion()."".$version->getOriginalFileName()."".$version->getMimeType()."
\n"; + if($setchecksum == 0) { + echo '

'.getMLText('do_object_setchecksum').'

'; + } + } + $this->contentContainerEnd(); $this->htmlEndPage(); } /* }}} */