[fix] dir cache not present in first commit and missing .htacces in cache/config/
This commit is contained in:
parent
7cee3ed6f5
commit
6a92bffbd3
3 changed files with 3 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
cache/*
|
cache/*
|
||||||
|
!cache/index.html
|
||||||
.project
|
.project
|
||||||
|
|
1
cache/index.html
vendored
Normal file
1
cache/index.html
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -136,9 +136,6 @@ function install() {
|
||||||
if (!is_file('cache/logs/banUser.php')) {
|
if (!is_file('cache/logs/banUser.php')) {
|
||||||
file_put_contents('cache/logs/banUser.php', "<?php\n\n?>");
|
file_put_contents('cache/logs/banUser.php', "<?php\n\n?>");
|
||||||
}
|
}
|
||||||
if (!is_file('cache/index.html')) {
|
|
||||||
file_put_contents('cache/index.html', " ");
|
|
||||||
}
|
|
||||||
echo '<div>This is the key for generate thumbnail whith GET method. Save it, this key is secret, don\'t share it. <p class="alert">', $serverKey, '</p></div>';
|
echo '<div>This is the key for generate thumbnail whith GET method. Save it, this key is secret, don\'t share it. <p class="alert">', $serverKey, '</p></div>';
|
||||||
checkInstall();
|
checkInstall();
|
||||||
}
|
}
|
||||||
|
@ -151,7 +148,7 @@ function checkInstall() {
|
||||||
file_put_contents('cache/logs/.htaccess', "Allow from none\nDeny from all\n");
|
file_put_contents('cache/logs/.htaccess', "Allow from none\nDeny from all\n");
|
||||||
}
|
}
|
||||||
if (!is_file('cache/config/.htaccess')) {
|
if (!is_file('cache/config/.htaccess')) {
|
||||||
file_put_contents('cache/logs/.htaccess', "Allow from none\nDeny from all\n");
|
file_put_contents('cache/config/.htaccess', "Allow from none\nDeny from all\n");
|
||||||
}
|
}
|
||||||
if (!is_file('bin/.htaccess')) {
|
if (!is_file('bin/.htaccess')) {
|
||||||
file_put_contents('bin/.htaccess', "Allow from none\nDeny from all\n");
|
file_put_contents('bin/.htaccess', "Allow from none\nDeny from all\n");
|
||||||
|
|
Loading…
Reference in a new issue