[pLog-svn] r3545 - plog/trunk

reto at devel.lifetype.net reto at devel.lifetype.net
Tue Jun 6 21:33:48 GMT 2006


Author: reto
Date: 2006-06-06 21:33:48 +0000 (Tue, 06 Jun 2006)
New Revision: 3545

Modified:
   plog/trunk/wizard.php
Log:
yea right, dream on. actually the wizard need ./tmp from the very beginning. so we do need this old fashioned check. but then, the ./tmp check afterwards pretty much superfluous.

any ideas on how to make this check nice(er)?

Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php	2006-06-06 21:22:05 UTC (rev 3544)
+++ plog/trunk/wizard.php	2006-06-06 21:33:48 UTC (rev 3545)
@@ -2376,6 +2376,13 @@
 
     }    
 
+    // check if the "./tmp" folder is writable by us, otherwise
+    // throw an error before the user gets countless errors
+    // from Smarty
+    if( !File::isWritable( TEMP_FOLDER ) || !File::isDir( TEMP_FOLDER )) {
+        print("<span style=\"color:red; font-size: 14px;\">Error</span><br/><br/>This wizard needs the ".TEMP_FOLDER." folder to be writable by the web server user.<br/><br/>Please correct it and try again.");
+        die();
+    }
 
     //// main part ////
     $controller = new Controller( $_actionMap, "nextStep" );



More information about the pLog-svn mailing list