createWebRootFiles() public static method

Generate default robots.txt, favicon.ico, etc to suppress 404 (Not Found) errors in the web server logs, if Piwik is installed in the web root (or top level of subdomain).
public static createWebRootFiles ( )
コード例 #1
0
 protected static function initServerFilesForSecurity()
 {
     if (SettingsServer::isIIS()) {
         ServerFilesGenerator::createWebConfigFiles();
     } else {
         ServerFilesGenerator::createHtAccessFiles();
     }
     ServerFilesGenerator::createWebRootFiles();
 }
コード例 #2
0
ファイル: SystemCheck.php プロジェクト: TensorWrenchOSS/piwik
 protected static function initServerFilesForSecurity()
 {
     ServerFilesGenerator::createWebConfigFiles();
     ServerFilesGenerator::createHtAccessFiles();
     ServerFilesGenerator::createWebRootFiles();
 }