From ed06f040776d5e2f38b938005ebc2b09ddd41bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 8 Aug 2013 09:11:12 +0200 Subject: test if /install exists --- inc/poche/Poche.class.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/poche/Poche.class.php') diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 38b4a98e..0439f301 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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(); -- cgit v1.2.3