diff --git a/.codeclimate.yml b/.codeclimate.yml index 72d1a0307..fe51f29f1 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,5 +1,6 @@ --- -engines: +version: "2" +plugins: csslint: enabled: false duplication: @@ -36,20 +37,25 @@ engines: config: file_extensions: "php" rulesets: "cleancode,unusedcode,codesize" -ratings: - paths: - - "**.css" - - "**.js" - - "**.php" -exclude_paths: -- e107_admin/core_image.php -- e107_plugins/log/js/awesomechart.js -- e107_docs/**/* -- e107_images/**/* -- e107_handlers/hybridauth/**/* -- e107_handlers/jsshrink/**/* -- e107_handlers/phpmailer/**/* -- e107_handlers/phpthumb/**/* -- e107_handlers/xmlrpc/**/* -- e107_web/**/* - +exclude_patterns: +- "config/" +- "db/" +- "dist/" +- "features/" +- "**/node_modules/" +- "script/" +- "**/spec/" +- "**/test/" +- "**/tests/" +- "**/vendor/" +- "**/*.d.ts" +- "e107_admin/core_image.php" +- "e107_plugins/log/js/awesomechart.js" +- "e107_docs/**/*" +- "e107_images/**/*" +- "e107_handlers/hybridauth/**/*" +- "e107_handlers/jsshrink/**/*" +- "e107_handlers/phpmailer/**/*" +- "e107_handlers/phpthumb/**/*" +- "e107_handlers/xmlrpc/**/*" +- "e107_web/**/*" diff --git a/.gitignore b/.gitignore index b9b73c25d..37bc22dc7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ e107_core/override # Ignore Vim swap files *.swp *.swo +e107.htaccess +e107InstallLog.log diff --git a/class2.php b/class2.php index f6b227d73..bbe5494b1 100755 --- a/class2.php +++ b/class2.php @@ -1957,6 +1957,9 @@ function init_session() unset($tz); } +e107::getDebug()->log("Timezone: ".USERTIMEZONE); // remove later on. + + define('USERIP', e107::getIPHandler()->getIP(FALSE)); define('POST_REFERER', md5($user->getToken())); diff --git a/comment.php b/comment.php index d38a5b0f9..d17577a5a 100644 --- a/comment.php +++ b/comment.php @@ -140,7 +140,12 @@ if(e_AJAX_REQUEST) // TODO improve security $width = ($pid) ? 1 : 0; $ret['html'] = "\n\n