Issues (304)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

language/english/modinfo.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
/**
12
 *  userlog module
13
 *
14
 * @copyright       XOOPS Project (https://xoops.org)
15
 * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
 * @package         userlog language
17
 * @since           1
18
 * @author          irmtfan ([email protected])
19
 * @author          XOOPS Project <www.xoops.org> <www.xoops.ir>
20
 */
21
// The name of this module
22
define('_MI_USERLOG_NAME', 'Userlog');
23
// A brief description of this module
24
define('_MI_USERLOG_DSC', 'Log user/visitor activities and navigations');
25
// configs
26
// config status
27
define('_MI_USERLOG_STATUS', 'Log status:');
28
define('_MI_USERLOG_STATUS_DSC', 'Active: Module will do its job. Idle: The module will not log anything');
29
define('_MI_USERLOG_ACTIVE', 'Active');
30
define('_MI_USERLOG_IDLE', 'Idle');
31
define('_MI_USERLOG_POSTLOG', 'Log any POST method?');
32
define('_MI_USERLOG_POSTLOG_DSC', 'In some weird situations (e.g.: send a pm, custom forms, hacks, ported modules like mediawiki, ...), there is no redirect message after submit. If you want to log any POST method regardless of redirect message set it to yes.');
33
// config categories
34
define('_MI_USERLOG_CONFCAT_LOGFILE', 'Log file settings');
35
define('_MI_USERLOG_CONFCAT_LOGFILE_DSC', 'Log file (Set it if you need to store logs in a file, otherwise ignore it)');
36
define('_MI_USERLOG_CONFCAT_FORMAT', 'Format');
37
define('_MI_USERLOG_CONFCAT_FORMAT_DSC', 'Format settings');
38
define('_MI_USERLOG_CONFCAT_PAGENAV', 'Page navigation');
39
define('_MI_USERLOG_CONFCAT_PAGENAV_DSC', 'Page navigation settings');
40
define('_MI_USERLOG_CONFCAT_LOGDB', 'Log database settings');
41
define('_MI_USERLOG_CONFCAT_LOGDB_DSC', 'Log database (Set it if you need to store logs in database, otherwise ignore it)');
42
define('_MI_USERLOG_CONFCAT_PROB', 'Probability settings');
43
define('_MI_USERLOG_CONFCAT_PROB_DSC', 'Probability to work on database (These default numbers are recommended for a high traffic website, e.g.: more than 30,000 hits per day).');
44
45
// config logfile
46
define('_MI_USERLOG_MAXLOGFILESIZE', 'Maximum file size for current working Log file (in bytes)');
47
define('_MI_USERLOG_MAXLOGFILESIZE_DSC', 'Advise: Set it below 1MB because some servers set limitations for viewing large files in CPanel.');
48
define('_MI_USERLOG_LOGFILEPATH', 'Log file full path');
49
define('_MI_USERLOG_LOGFILEPATH_DSC', 'Advise: a path outside wwwroot is safe from browsing by everybody');
50
define('_MI_USERLOG_LOGFILENAME', 'Current working Log file name');
51
define('_MI_USERLOG_LOGFILENAME_DSC', "Older Log files will be stored with this prefix: Log_file_name_date('Y-m-d_H-i-s').log");
52
// config format
53
define('_MI_USERLOG_DATEFORMAT', 'Date format');
54
define('_MI_USERLOG_DATEFORMAT_DSC', 'If you leave it empty, this module will use Core default');
55
define('_MI_USERLOG_DATEFORMAT_HISTORY', 'Date format for historical times, e.g.: 1 day ago');
56
// config pagenav
57
define('_MI_USERLOG_SETS_PERPAGE', 'Number of settings per page');
58
define('_MI_USERLOG_SETS_PERPAGE_DSC', 'The default value for viewing settings');
59
define('_MI_USERLOG_LOGS_PERPAGE', 'Number of logs per page');
60
define('_MI_USERLOG_LOGS_PERPAGE_DSC', 'The default value for viewing logs');
61
define('_MI_USERLOG_ENGINE', 'Select the default engine for browsing logs');
62
define('_MI_USERLOG_ENGINE_DSC', 'This will be the default engine in logs browsing.');
63
define('_MI_USERLOG_FILE', 'Select the default files for browsing logs');
64
define('_MI_USERLOG_FILE_DSC', 'This will be the default files in logs browsing.');
65
// config logdb
66
define('_MI_USERLOG_MAXLOGS', 'Maximum logs stored in database');
67
define('_MI_USERLOG_MAXLOGS_DSC', 'Logs will be deleted from database after reaching this number');
68
define('_MI_USERLOG_MAXLOGSPERIOD', 'Maximum time that logs are stored in the database. 0 = store forever');
69
define('_MI_USERLOG_MAXLOGSPERIOD_DSC', 'Logs older than this period will be deleted from database. Positive for days and negative for hours. Advise: use a large number');
70
// config probability
71
define('_MI_USERLOG_PROBSET', 'Probability to check database for a match setting');
72
define('_MI_USERLOG_PROBSET_DSC', 'Probability percentage to check database ONLY if it didnt find any setting in cache files for the current visitor/user. 20 means in one of each 5 hits it will check.');
73
define('_MI_USERLOG_PROBSTATS', 'Probability to update statistics in database when the visitor is logged.');
74
define('_MI_USERLOG_PROBSTATS_DSC', 'Probability percentage to update database logs. 10 means in 1 of each 10 visits of a visitor who have a match setting, it will update statistics. 0 means no update so you should manually update by visiting userlog > admin > home.');
75
define('_MI_USERLOG_PROBSTATSALLHIT', 'Probability to update statistics in database in each hit.');
76
define('_MI_USERLOG_PROBSTATSALLHIT_DSC', 'Probability percentage to update database logs. 1 means in 1 of each 100 hits it will update statistics.0 means no update so you should manually update by visiting userlog > admin > home. Advise: set a low percentage based on your website traffic.');
77
// blocks
78
define('_MI_USERLOG_BLOCK_VIEWS', 'All views in site');
79
define('_MI_USERLOG_BLOCK_VIEWS_DSC', 'Show views in the whole site');
80
// webmaster permission
81
define('_MI_USERLOG_WEBMASTER_NOPERM', "You are one of the webmasters but don't have permission to access this area. Please contact webmasters with %1\$s UID or webmasters belong to %2\$s admin groups for more information.");
82
83
//1.17
84
//Help
85
define('_MI_USERLOG_DIRNAME', basename(dirname(dirname(__DIR__))));
86
define('_MI_USERLOG_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
87
define('_MI_USERLOG_BACK_2_ADMIN', 'Back to Administration of ');
88
define('_MI_USERLOG_OVERVIEW', 'Overview');
89
90
//define('_MI_USERLOG_HELP_DIR', __DIR__);
0 ignored issues
show
Unused Code Comprehensibility introduced by
75% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
91
92
//help multi-page
93
define('_MI_USERLOG_DISCLAIMER', 'Disclaimer');
94
define('_MI_USERLOG_LICENSE', 'License');
95
define('_MI_USERLOG_SUPPORT', 'Support');
96