Piwik\Plugins\SitesManager\Controller::downloadPiwikTracker PHP Метод

downloadPiwikTracker() публичный Метод

User will download a file called PiwikTracker.php that is the content of the actual script
    function downloadPiwikTracker()
    {
        $path = PIWIK_INCLUDE_PATH . '/libs/PiwikTracker/';
        $filename = 'PiwikTracker.php';
        Common::sendHeader('Content-type: text/php');
        Common::sendHeader('Content-Disposition: attachment; filename="' . $filename . '"');
        return file_get_contents($path . $filename);
    }