diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-06 01:07:25 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-06 01:07:25 +0400 |
commit | 238e71a2bb514e851ba4b1129ffe4339f9689ab0 (patch) | |
tree | 84989d93c1603830922f1e94ef67adf4d9069e71 /core/Http.php | |
parent | b1118efc1ed53dbabfe7aac93038ba08400beb57 (diff) |
refs #4610 trigger archiving using cli instead of http
Diffstat (limited to 'core/Http.php')
-rw-r--r-- | core/Http.php | 7 |
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; |