Explorar o código

Add files via upload

Daniele Bonini (皮夕): WebDev and DevOps by lots of Sim.pli.city bits %!s(int64=3) %!d(string=hai) anos
pai
achega
e1e6a0ff70
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      Private/core/init.inc

+ 4 - 4
Private/core/init.inc

@@ -39,7 +39,10 @@ if (!file_exists(APP_DATA_PATH)) {
 }	
 if (!file_exists(APP_TEMPLATE_PATH)) {
   die("Template folder doesn't exist. You must have a tempate folder in your web app private path and configure it properly inside the config file.");
-}	
+}
+if (EDITOR_PASSWORD === "" || (strlen(EDITOR_PASSWORD) < 64)) {
+  die("Editor hashed password must be set (with a 64 chars min length). You must generate an editor password and configure it properly inside the config file.");
+}  
 if (!file_exists(APP_DATA_PATH . "/burger001-s.xml")) {
   // Generating data from the template..
 
@@ -69,9 +72,6 @@ if (!file_exists(APP_DATA_PATH . "/burger001-s.xml")) {
     }  
   }  
 }  
-if (EDITOR_PASSWORD === "" || (strlen(EDITOR_PASSWORD) < 6)) {
-  die("Editor password must be set (with a 6 chars min length). You must generate an editor password and configure it properly inside the config file.");
-}  
 
 require dirname(__DIR__) . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "const.inc";
 require dirname(__DIR__) . DIRECTORY_SEPARATOR . "functions" . DIRECTORY_SEPARATOR . "funct.inc";