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:
authorThomas Steur <thomas.steur@googlemail.com>2014-02-06 01:07:25 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-02-06 01:07:25 +0400
commit238e71a2bb514e851ba4b1129ffe4339f9689ab0 (patch)
tree84989d93c1603830922f1e94ef67adf4d9069e71 /core/Http.php
parentb1118efc1ed53dbabfe7aac93038ba08400beb57 (diff)
refs #4610 trigger archiving using cli instead of http
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Http.php b/core/Http.php
index d6e7376999..2d5aa952aa 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -359,6 +359,13 @@ class Http
// determine success or failure
@fclose(@$fsock);
+ } else if ($method == 'cli') {
+
+ $url = @parse_url($aUrl);
+ $status = 200;
+ $headers = array();
+ $response = shell_exec('php ' . PIWIK_INCLUDE_PATH . '/core/wrapper.php -- ' . escapeshellarg($url['query']));
+
} else if ($method == 'fopen') {
$response = false;