]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
test if /install exists
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index 38b4a98ea803e7e464c15d4dee166bc0c71ab918..0439f301fc2952ae56f5c7ade576434d9c541a57 100644 (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();