e107inc/e107

View on GitHub
e107_admin/emoticon.php

Summary

Maintainability
A
45 mins
Test Coverage
F
30%

Avoid deeply nested control flow statements.
Open

                                    if (preg_match("#\<object\s*?mime\=[\"\']image\/.*?\>(.*?)\<\/object\>#si", $match[1][$a], $fmatch))
                                    {
                                        $e_file = $fmatch[1];
//                              echo "xep-0038 file: ".$e_file."<br />";
                                        // Pull out all match strings - need to pick out any language definitions for posterity
Severity: Major
Found in e107_admin/emoticon.php - About 45 mins to fix

    Variable $pref was undeclared, but array fields are being added to it.
    Open

            $pref['smiley_activate'] = (int) $_POST['smiley_activate'];
    Severity: Info
    Found in e107_admin/emoticon.php by phan

    Variable $_emoteconf is undeclared
    Open

                        $tmp = $_emoteconf;        // Use consistent name
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    Argument 1 (text) is null but \e_parse::filter() takes array|string defined at /code/e107_handlers/e_parse_class.php:5119
    Open

    $filtered = e107::getParser()->filter($_POST);
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    When fetching an array index from a value of type '', found an array index of type 'type', but expected the index to be of type int
    Open

                    if ($confFile['type'] == "php")
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    When fetching an array index from a value of type '', found an array index of type 'file', but expected the index to be of type int
    Open

                        include_once(e_IMAGE . "emotes/" . $value . "/" . $confFile['file']);
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    Call to deprecated function \getperms() defined at /code/class2.php:1322
    Open

    if (!getperms("F"))
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    When fetching an array index from a value of type '', found an array index of type 'file', but expected the index to be of type int
    Open

                        $filename = e_IMAGE . "emotes/" . $value . "/" . $confFile['file'];
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    When fetching an array index from a value of type '', found an array index of type 'type', but expected the index to be of type int
    Open

                    if ($confFile['type'] == "xml")
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    When fetching an array index from a value of type '', found an array index of type 'type', but expected the index to be of type int
    Open

                    if ($confFile['type'] == "pak")
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    Variable $pref is undeclared
    Open

        if ($pref['smiley_activate'] != $_POST['smiley_activate'])
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    Argument 2 (vals) is int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
    Open

                    <div class='info-bar' style='padding-bottom:10px'>" . $tp->lanVars(EMOLAN_31, count($eArray)) . "</div>
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    When fetching an array index from a value of type '', found an array index of type 'file', but expected the index to be of type int
    Open

                        $filename = e_IMAGE . "emotes/" . $value . "/" . $confFile['file'];
    Severity: Minor
    Found in e107_admin/emoticon.php by phan

    There are no issues that match your filters.

    Category
    Status