]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/commandline.inc.php
Introduced common_location_shared() to check if location sharing is always,
[quix0rs-gnu-social.git] / scripts / commandline.inc.php
index 0a5257cdd5a2ec35652bbd890b0e4788bd8cc2bc..5f2e1d86eafaedfadab8b2d2e2e6f39d12a33401 100644 (file)
@@ -29,6 +29,8 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
 define('GNUSOCIAL', true);
 define('STATUSNET', true); //compatibility
 
+define('GNUSOCIAL_CLI', true);  // to know we're in a CLI environment
+
 // Set various flags so we don't time out on long-running processes
 
 ini_set("max_execution_time", "0");
@@ -36,6 +38,7 @@ ini_set("max_input_time", "0");
 set_time_limit(0);
 mb_internal_encoding('UTF-8');
 error_reporting(0);
+# DEBUG: error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
 
 // Add extlib to our path so we can get Console_Getopt