Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-19 11:06:41 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-19 11:06:41 +0400
commit39f12998a7f22682c9adb493f0335e1590f412fa (patch)
tree9c48370dfb49461d7677c7ab6d9e67de785d6537 /core/SettingsServer.php
parent221a9e99bb3814bc9df340a392f43c70367ae157 (diff)
Moving isPhpCli to Common
Diffstat (limited to 'core/SettingsServer.php')
-rw-r--r--core/SettingsServer.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/SettingsServer.php b/core/SettingsServer.php
index 58208714b8..8f0f9d80bd 100644
--- a/core/SettingsServer.php
+++ b/core/SettingsServer.php
@@ -30,19 +30,6 @@ class SettingsServer
}
/**
- * Returns true if PHP was invoked from command-line interface (shell)
- *
- * @since added in 0.4.4
- * @return bool true if PHP invoked as a CGI or from CLI
- */
- public static function isPhpCliMode()
- {
- $remoteAddr = @$_SERVER['REMOTE_ADDR'];
- return PHP_SAPI == 'cli' ||
- (!strncmp(PHP_SAPI, 'cgi', 3) && empty($remoteAddr));
- }
-
- /**
* Returns true if running on Microsoft IIS 7 (or above)
*
* @return bool