PHP 클래스 Piwik\Plugins\Installation\ServerFilesGenerator

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )

보호된 메소드들

메소드 설명
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

메소드 상세

createFilesForSecurity() 공개 정적인 메소드

public static createFilesForSecurity ( )

createHtAccess() 보호된 정적인 메소드

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() 공개 정적인 메소드

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

createWebConfigFiles() 보호된 정적인 메소드

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

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).
public static createWebRootFiles ( )

deleteHtAccessFiles() 공개 정적인 메소드

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

deleteWebConfigFiles() 공개 정적인 메소드

public static deleteWebConfigFiles ( )

getAllowHtaccessContent() 보호된 정적인 메소드

protected static getAllowHtaccessContent ( ) : string
리턴 string

getDenyAllHtaccessContent() 보호된 정적인 메소드

protected static getDenyAllHtaccessContent ( ) : string
리턴 string

getDenyHtaccessContent() 보호된 정적인 메소드

protected static getDenyHtaccessContent ( ) : string
리턴 string