protected static function createHtAccess($path, $overwrite = true, $content)
{
$file = $path . '/.htaccess';
$content = "# This file is auto generated by Piwik, do not edit directly\n# Please report any issue or improvement directly to the Piwik team.\n\n" . $content;
if ($overwrite || !file_exists($file)) {
@file_put_contents($file, $content);
}
}