|
|
|
|
|
|
|
|
public static function protectDataDirectory() { |
|
|
public static function protectDataDirectory() { |
|
|
//Require all denied |
|
|
//Require all denied |
|
|
$now = date('Y-m-d H:i:s'); |
|
|
$now = date('Y-m-d H:i:s'); |
|
|
$content = "# Generated by ownCloud on $now\n"; |
|
|
|
|
|
|
|
|
$content = "# Generated by Nextcloud on $now\n"; |
|
|
$content.= "# line below if for Apache 2.4\n"; |
|
|
$content.= "# line below if for Apache 2.4\n"; |
|
|
$content.= "<ifModule mod_authz_core.c>\n"; |
|
|
$content.= "<ifModule mod_authz_core.c>\n"; |
|
|
$content.= "Require all denied\n"; |
|
|
$content.= "Require all denied\n"; |