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

index.php « js - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cdda22c6b41a3dcdd48e90eaf5994be42787ad3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * Piwik - Open source web analytics
 * 
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
 * @version $Id$
 */

if(!empty($_SERVER['QUERY_STRING'])) {
	include '../piwik.php';
	exit;
}

/**
 * @see core/Piwik.php
 */

define('PIWIK_INCLUDE_PATH', '..');
define('PIWIK_DOCUMENT_ROOT', '..');

require_once PIWIK_INCLUDE_PATH . '/core/Piwik.php';

$file = 'piwik.js';

Piwik::serveStaticFile($file, "application/javascript; charset=UTF-8");

exit;