[pLog-svn] r4313 - plog/branches/lifetype-1.1.3

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Nov 16 13:14:33 GMT 2006


Author: jondaley
Date: 2006-11-16 13:14:33 +0000 (Thu, 16 Nov 2006)
New Revision: 4313

Modified:
   plog/branches/lifetype-1.1.3/runtests.php
Log:
oh. runtests isn't in the tools directory.  protect it too

Modified: plog/branches/lifetype-1.1.3/runtests.php
===================================================================
--- plog/branches/lifetype-1.1.3/runtests.php	2006-11-16 12:53:51 UTC (rev 4312)
+++ plog/branches/lifetype-1.1.3/runtests.php	2006-11-16 13:14:33 UTC (rev 4313)
@@ -1,7 +1,14 @@
 <?php
 
+    define("DISABLE_TESTS", true);
+
 	define( "INCLUDE_PLUGIN_TESTS", true );
 
+    if(defined("DISABLE_TESTS")){
+        print "You must enable tests at the top of runtests, since it could represent a security risk";
+        die;
+    }
+
 	if (!defined( "PLOG_CLASS_PATH" )) {
 	   define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
 	}



More information about the pLog-svn mailing list