stick a blank index.php in data/ just in case somebody left directory-indexing on

This commit is contained in:
Shish 2020-03-23 19:56:05 +00:00
parent ea0e83abc9
commit 8b1b4d257e
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,10 @@ class Upgrade extends Extension
{
global $config, $database;
if (!file_exists("data/index.php")) {
file_put_contents("data/index.php", "<?php\n// Silence is golden...\n");
}
if ($config->get_int("db_version") < 1) {
$this->set_version("db_version", 2);
}