Added the logs dir verification
Esse commit está contido em:
+2
-1
@@ -32,4 +32,5 @@ mind3rd/API/logs/*
|
||||
.project
|
||||
nbproject
|
||||
nbproject/*
|
||||
/.settings/
|
||||
/.settings/
|
||||
/projects/demo-pt/.mind/
|
||||
@@ -34,6 +34,14 @@ class MindLog {
|
||||
$_SERVER['REMOTE_ADDR']:
|
||||
'local');
|
||||
|
||||
if(!file_exists(_MINDSRC_.\LOGS_DIR)){
|
||||
try{
|
||||
mkdir(_MINDSRC_.\LOGS_DIR);
|
||||
}catch(Exception $e){
|
||||
echo "ERROR: failed trying to create log! Could not creaate the directory "._MINDSRC_.\LOGS_DIR."!\n";
|
||||
}
|
||||
}
|
||||
|
||||
switch($type){
|
||||
case self::LOG_TYPE_USER:{
|
||||
if(strtolower($_MIND->conf['log_user_interaction'])){
|
||||
|
||||
Arquivo normal → Arquivo executável
Referência em uma Nova Issue
Bloquear um usuário