[pLog-svn] r5505 - plog/trunk

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jun 7 02:32:43 EDT 2007


Author: mark
Date: 2007-06-07 02:32:43 -0400 (Thu, 07 Jun 2007)
New Revision: 5505

Modified:
   plog/trunk/wizard.php
Log:
Add a new constant INTEGRITY_CHECK in wizard to disable file integrity check in development version.

Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php	2007-06-07 06:32:27 UTC (rev 5504)
+++ plog/trunk/wizard.php	2007-06-07 06:32:43 UTC (rev 5505)
@@ -11,6 +11,11 @@
     //
     define( "DB_WIZARD_DEBUG", true );
 
+	//
+	// disable integrity check in development version
+	//
+	define( "INTEGRITY_CHECK", false);
+
     //
     // in case you're having problems with time outs while upgrading (probably too
     // many records) lower this figure
@@ -498,12 +503,20 @@
         function perform()
         {
             // build the array with checks
-            $checkGroups['File checks'] = Array(
-               "writeConfigFile" => new WizardWritableFileValidator( "config/config.properties.php" ),
-               "writeTmpFolder" => new WizardWritableFileValidator( "tmp" ),
-               "writeGalleryFolder" => new WizardWritableFileValidator( "gallery" ),
-			   "fileVersionCheck" => new WizardFileIntegrityValidator()
-            );
+			if( INTEGRITY_CHECK ) {
+	            $checkGroups['File checks'] = Array(
+	               "writeConfigFile" => new WizardWritableFileValidator( "config/config.properties.php" ),
+	               "writeTmpFolder" => new WizardWritableFileValidator( "tmp" ),
+	               "writeGalleryFolder" => new WizardWritableFileValidator( "gallery" ),
+				   "fileVersionCheck" => new WizardFileIntegrityValidator()
+	            );
+	        } else {
+	            $checkGroups['File checks'] = Array(
+	               "writeConfigFile" => new WizardWritableFileValidator( "config/config.properties.php" ),
+	               "writeTmpFolder" => new WizardWritableFileValidator( "tmp" ),
+	               "writeGalleryFolder" => new WizardWritableFileValidator( "gallery" )
+	            );
+			}	        	
             
             $checkGroups['PHP version checking'] = Array(
                "php" => new WizardPhpVersionValidator()



More information about the pLog-svn mailing list