Issues (1210)

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.

locales/france.php (4 issues)

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
/**
13
 * @copyright   {@link http://xoops.org/ XOOPS Project}
14
 * @license     {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
15
 * @package
16
 * @since
17
 * @author       XOOPS Development Team,
18
 * @author       Antiques Promotion (http://www.antiquespromotion.ca)
19
 */
20
21
if (!function_exists('easter')) {
22
    /**
23
     * @param $y
24
     * @param $holidays
25
     * @return int
0 ignored issues
show
Should the return type not be null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
26
     */
27
    function easter($y, &$holidays)
0 ignored issues
show
The function easter() has been defined more than once; this definition is ignored, only the first definition in locales/canada-fr.php (L26-50) is considered.

This check looks for functions that have already been defined in other files.

Some Codebases, like WordPress, make a practice of defining functions multiple times. This may lead to problems with the detection of function parameters and types. If you really need to do this, you can mark the duplicate definition with the @ignore annotation.

/**
 * @ignore
 */
function getUser() {

}

function getUser($id, $realm) {

}

See also the PhpDoc documentation for @ignore.

Loading history...
The parameter $holidays is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
        $e = 21 + easter_days($y);
30
        if ($e > 31) {
31
            $e  -= 31;
32
            $em = 4;
33
        } else {
34
            $em = 3;
35
        }
36
37
        return strtotime("$y-$em-$e");
38
    }
39
}
40
41
$this->holidays = array();
42
$start          = (int)date('Y') - 10;
43
$end            = $start + 30;
44
45
for ($y = $start; $y < $end; ++$y) {
46
    $e  = easter($y, $this->holidays);
0 ignored issues
show
Are you sure the assignment to $e is correct as easter($y, $this->holidays) (which targets easter()) seems to always return null.

This check looks for function or method calls that always return null and whose return value is assigned to a variable.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
$object = $a->getObject();

The method getObject() can return nothing but null, so it makes no sense to assign that value to a variable.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
47
    $ve = date('Y-n-j', strtotime('-2 days', $e));
48
    $le = date('Y-n-j', strtotime('+1 days', $e));
49
    $a  = date('Y-n-j', strtotime('+39 days', $e));
50
    $p  = date('Y-n-j', strtotime('+49 days', $e));
51
    $lp = date('Y-n-j', strtotime('+50 days', $e));
52
53
    $this->holidays["$y-1-1"]          = 'Nouvel an';
54
    $this->holidays["$y-2-14"]         = 'St-Valentin';
55
    $this->holidays[$ve]               = 'Vendredi Saint';
56
    $this->holidays[date('Y-n-j', $e)] = 'P&acirc;ques';
57
    $this->holidays[$le]               = 'Lundi de P&acirc;ques';
58
    $this->holidays[$a]                = 'Ascension';
59
    $this->holidays[$p]                = 'Pentec&ocirc;te';
60
    $this->holidays[$lp]               = 'Lundi de Pentec&ocirc;te';
61
    $this->holidays["$y-5-1"]          = 'F&ecirc;te du travail';
62
    $this->holidays["$y-5-8"]          = 'Victoire';
63
    $this->holidays["$y-7-14"]         = 'F&ecirc;te Nationale';
64
    $this->holidays["$y-8-15"]         = 'Assomption';
65
    $this->holidays["$y-11-1"]         = 'Toussaint';
66
    $this->holidays["$y-11-11"]        = 'Armistice';
67
    $this->holidays["$y-12-25"]        = 'No&euml;l';
68
}
69