فهرست منبع

Log the installation parameters in case an investigation is needed

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2371 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 سال پیش
والد
کامیت
c0eb37d393
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      setup/applicationinstaller.class.inc.php

+ 10 - 0
setup/applicationinstaller.class.inc.php

@@ -120,6 +120,16 @@ class ApplicationInstaller
 					'next-step' => 'copy',
 					'next-step-label' => 'Copying data model files',
 				);
+				
+				// Log the parameters...
+				$oDoc = new DOMDocument('1.0', 'UTF-8');
+				$oDoc->preserveWhiteSpace = false;
+				$oDoc->formatOutput = true;
+				$this->oParams->ToXML($oDoc, null, 'installation');
+				$sXML = $oDoc->saveXML();
+				$sSafeXml = preg_replace("|<pwd>([^<]*)</pwd>|", "<pwd>**removed**</pwd>", $sXML);
+				SetupPage::log_info("======= Installation starts =======\nParameters:\n$sSafeXml\n");
+				
 				break;
 				
 				case 'copy':