[fix] dir cache not present in first commit and missing .htacces in cache/config/

This commit is contained in:
Knah Tsaeb 2013-03-14 12:18:55 +01:00
parent 7cee3ed6f5
commit 6a92bffbd3
3 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
cache/*
!cache/index.html
.project

1
cache/index.html vendored Normal file
View file

@ -0,0 +1 @@

View file

@ -136,9 +136,6 @@ function install() {
if (!is_file('cache/logs/banUser.php')) {
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>';
checkInstall();
}
@ -151,7 +148,7 @@ function checkInstall() {
file_put_contents('cache/logs/.htaccess', "Allow from none\nDeny from all\n");
}
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')) {
file_put_contents('bin/.htaccess', "Allow from none\nDeny from all\n");