install/includes/common.php
changeset 812 68060328e9c6
parent 803 ab64a963e492
child 1081 745200a9cc2a
--- a/install/includes/common.php	Sun Jan 11 21:37:49 2009 -0500
+++ b/install/includes/common.php	Wed Jan 14 20:33:05 2009 -0500
@@ -155,4 +155,13 @@
 // List of available DB drivers
 $supported_drivers = array('mysql', 'postgresql');
 
+// Divert to CLI loader if running from CLI
+if ( isset($argc) && isset($argv) )
+{
+  if ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) )
+  {
+    define('ENANO_CLI', '');
+  }
+}
+
 ?>