diff --git a/out/out.AdminTools.php b/out/out.AdminTools.php
index 89cacd909..370185391 100644
--- a/out/out.AdminTools.php
+++ b/out/out.AdminTools.php
@@ -51,6 +51,7 @@ if($settings->_enableFullSearch) {
+
getFolderList();
+ /* Check the folder */
+ if($folderList != $path) {
+ print "getID()."\"> | ";
+ print "getID()."\">";
+ $tmppath = $folder->getPath();
+ for ($i = 1; $i < count($tmppath); $i++) {
+ print "/".$tmppath[$i]->getName();
+ }
+ print $foldername;
+ print " | ";
+
+ $owner = $folder->getOwner();
+ print "".$owner->getFullName()." | ";
+ print "Folderlist is '".$folderList."', should be '".$path."' | ";
+ if($repair) {
+ $folder->repair();
+ }
+ print " | \n";
+ print "\n";
+ }
+ }
+
+ $subfolders = $folder->getSubFolders();
+ foreach($subfolders as $subfolder) {
+ tree($subfolder, $indent.' ', $path.$folder->getId().':');
+ }
+ $path .= $folder->getId().':';
+ $documents = $folder->getDocuments();
+ foreach($documents as $document) {
+ /* Check the document */
+ $folderList = $document->getFolderList();
+ if($folderList != $path) {
+ $lc = $document->getLatestContent();
+ print "getID()."\"> getFileType())."\" title=\"".$lc->getMimeType()."\"> | ";
+ print "getID()."\">/";
+ $folder = $document->getFolder();
+ $tmppath = $folder->getPath();
+ for ($i = 1; $i < count($tmppath); $i++) {
+ print $tmppath[$i]->getName()."/";
+ }
+ print $docName;
+ print " | ";
+ $owner = $document->getOwner();
+ print "".$owner->getFullName()." | ";
+ print "Folderlist is '".$folderList."', should be '".$path."' | ";
+ if($repair) {
+ }
+ print " | \n";
+ print "\n";
+ }
+ }
+} /* }}} */
+
+if (!$user->isAdmin()) {
+ UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
+}
+
+$v = new LetoDMS_Version;
+
+UI::htmlStartPage(getMLText("admin_tools"));
+UI::globalNavigation();
+UI::pageNavigation(getMLText("admin_tools"), "admin_tools");
+UI::contentHeading(getMLText("objectcheck"));
+UI::contentContainerStart();
+
+if(isset($_GET['repair']) && $_GET['repair'] == 1) {
+ $repair = 1;
+ echo "".getMLText('repairing_objects')."
";
+} else {
+ $repair = 0;
+ echo ''.getMLText('do_object_repair').'';
+}
+
+$folder = $dms->getFolder($settings->_rootFolderID);
+print "";
+print "\n\n";
+print " | \n";
+print "".getMLText("name")." | \n";
+print "".getMLText("owner")." | \n";
+print "".getMLText("error")." | \n";
+print " | \n";
+print "
\n\n\n";
+tree($folder, $repair);
+print "
\n";
+
+UI::contentContainerEnd();
+UI::htmlEndPage();
+?>