Added the logs dir verification

Esse commit está contido em:
Felipe
2012-07-17 01:38:25 -03:00
commit 4def4b3c82
3 arquivos alterados com 10 adições e 1 exclusões
+2 -1
Ver Arquivo
@@ -32,4 +32,5 @@ mind3rd/API/logs/*
.project
nbproject
nbproject/*
/.settings/
/.settings/
/projects/demo-pt/.mind/
+8
Ver Arquivo
@@ -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
Ver Arquivo