PHP Class Piwik\Plugins\Installation\ServerFilesGenerator

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode Description
createFilesForSecurity ( )
createHtAccessFiles ( ) Generate Apache .htaccess files to restrict access
createWebRootFiles ( ) 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).
deleteHtAccessFiles ( ) Deletes all existing .htaccess files and web.config files that Piwik may have created,
deleteWebConfigFiles ( )

Méthodes protégées

Méthode Description
createHtAccess ( string $path, boolean $overwrite = true, string $content ) Create .htaccess file in specified directory
createWebConfigFiles ( ) Generate IIS web.config files to restrict access
getAllowHtaccessContent ( ) : string
getDenyAllHtaccessContent ( ) : string
getDenyHtaccessContent ( ) : string

Method Details

createFilesForSecurity() public static méthode

public static createFilesForSecurity ( )

createHtAccess() protected static méthode

Apache-specific; for IIS @see web.config .htaccess files are created on all webservers even Nginx, as sometimes Nginx knows how to handle .htaccess files
protected static createHtAccess ( string $path, boolean $overwrite = true, string $content )
$path string without trailing slash
$overwrite boolean whether to overwrite an existing file or not
$content string

createHtAccessFiles() public static méthode

.htaccess files are created on all webservers even Nginx, as sometimes Nginx knows how to handle .htaccess files
public static createHtAccessFiles ( )

createWebConfigFiles() protected static méthode

Note: for IIS 7 and above
protected static createWebConfigFiles ( )

createWebRootFiles() public static méthode

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 ( )

deleteHtAccessFiles() public static méthode

Deletes all existing .htaccess files and web.config files that Piwik may have created,
public static deleteHtAccessFiles ( )

deleteWebConfigFiles() public static méthode

public static deleteWebConfigFiles ( )

getAllowHtaccessContent() protected static méthode

protected static getAllowHtaccessContent ( ) : string
Résultat string

getDenyAllHtaccessContent() protected static méthode

protected static getDenyAllHtaccessContent ( ) : string
Résultat string

getDenyHtaccessContent() protected static méthode

protected static getDenyHtaccessContent ( ) : string
Résultat string