test if /install exists

This commit is contained in:
Nicolas Lœuillet
2013-08-08 09:11:12 +02:00
parent 7aa8ccc47d
commit ed06f04077
4 changed files with 12 additions and 3 deletions

View File

@ -31,6 +31,11 @@ class Poche
private function init()
{
if (file_exists('./install') && !DEBUG_POCHE) {
Tools::logm('folder /install exists');
die('the folder /install exists, you have to delete it before using poche.');
}
Tools::initPhp();
Session::init();