ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/images/browser.php

Summary

Maintainability
F
1 wk
Test Coverage

imanager_addfile accesses the super-global variable $_POST.
Open

function imanager_addfile() {
    /* because we are using a function, the GET/POST variables are not in scope */
    global $imgcat_id, $image_display, $image_weight, $image_nicename;

    if (!icms::$security->check()) {

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

imanager_addfile accesses the super-global variable $_POST.
Open

function imanager_addfile() {
    /* because we are using a function, the GET/POST variables are not in scope */
    global $imgcat_id, $image_display, $image_weight, $image_nicename;

    if (!icms::$security->check()) {

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

File browser.php has 802 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Images Manager - Image Browser
 *
 * Used to create an instance of the image manager in a popup window to use with the dhmtl textarea object
Severity: Major
Found in htdocs/modules/system/admin/images/browser.php - About 1 day to fix

    Method imanager_listimg has 185 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function imanager_listimg($imgcat_id, $start = 0) {
        global $icmsTpl, $target, $type, $query, $limit;
    
        if (!is_object(icms::$user)) {
            $groups = array(ICMS_GROUP_ANONYMOUS);
    Severity: Major
    Found in htdocs/modules/system/admin/images/browser.php - About 7 hrs to fix

      Method imanager_index has 169 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function imanager_index($imgcat_id = NULL) {
          global $icmsTpl, $icmsConfig, $target, $type, $limit;
      
          if (!is_object(icms::$user)) {
              $groups = array(ICMS_GROUP_ANONYMOUS);
      Severity: Major
      Found in htdocs/modules/system/admin/images/browser.php - About 6 hrs to fix

        Function imanager_listimg has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
        Open

        function imanager_listimg($imgcat_id, $start = 0) {
            global $icmsTpl, $target, $type, $query, $limit;
        
            if (!is_object(icms::$user)) {
                $groups = array(ICMS_GROUP_ANONYMOUS);
        Severity: Minor
        Found in htdocs/modules/system/admin/images/browser.php - About 5 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function imanager_updateimage has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
        Open

        function imanager_updateimage() {
            /* because we are using a function, the GET/POST variables are not in scope */
            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
        
            if (!icms::$security->check()) {
        Severity: Minor
        Found in htdocs/modules/system/admin/images/browser.php - About 4 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function imanager_index has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
        Open

        function imanager_index($imgcat_id = NULL) {
            global $icmsTpl, $icmsConfig, $target, $type, $limit;
        
            if (!is_object(icms::$user)) {
                $groups = array(ICMS_GROUP_ANONYMOUS);
        Severity: Minor
        Found in htdocs/modules/system/admin/images/browser.php - About 3 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function imanager_addfile has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
        Open

        function imanager_addfile() {
            /* because we are using a function, the GET/POST variables are not in scope */
            global $imgcat_id, $image_display, $image_weight, $image_nicename;
        
            if (!icms::$security->check()) {
        Severity: Minor
        Found in htdocs/modules/system/admin/images/browser.php - About 3 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function adminNav has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
        Open

        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
            global $target, $type;
        
            $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
            if ($id === FALSE) {
        Severity: Minor
        Found in htdocs/modules/system/admin/images/browser.php - About 2 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method imanager_addcat has 64 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function imanager_addcat() {
            /* because we're using a function, the GET/POST variables are not in scope */
            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;
        Severity: Major
        Found in htdocs/modules/system/admin/images/browser.php - About 2 hrs to fix

          Method imanager_addfile has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function imanager_addfile() {
              /* because we are using a function, the GET/POST variables are not in scope */
              global $imgcat_id, $image_display, $image_weight, $image_nicename;
          
              if (!icms::$security->check()) {
          Severity: Major
          Found in htdocs/modules/system/admin/images/browser.php - About 2 hrs to fix

            Method imanager_updateimage has 56 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function imanager_updateimage() {
                /* because we are using a function, the GET/POST variables are not in scope */
                global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
            
                if (!icms::$security->check()) {
            Severity: Major
            Found in htdocs/modules/system/admin/images/browser.php - About 2 hrs to fix

              Method imanager_clone has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function imanager_clone() {
                  global $target, $type;
              
                  if (!icms::$security->check()) {
                      redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
              Severity: Minor
              Found in htdocs/modules/system/admin/images/browser.php - About 1 hr to fix

                Function imanager_addcat has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                function imanager_addcat() {
                    /* because we're using a function, the GET/POST variables are not in scope */
                    global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                    global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                    global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;
                Severity: Minor
                Found in htdocs/modules/system/admin/images/browser.php - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function imanager_clone has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                Open

                function imanager_clone() {
                    global $target, $type;
                
                    if (!icms::$security->check()) {
                        redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                Severity: Minor
                Found in htdocs/modules/system/admin/images/browser.php - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method imanager_delfileok has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function imanager_delfileok($image_id, $redir = NULL) {
                    global $target, $type;
                    if (!icms::$security->check()) {
                        redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                    }
                Severity: Minor
                Found in htdocs/modules/system/admin/images/browser.php - About 1 hr to fix

                  Method icmsPopupHeader has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function icmsPopupHeader() {
                      //TODO: make the image manager header use a template instead of hardcoded HTML
                      global $icmsConfig;
                      if (!headers_sent()) {
                          header('Content-Type:text/html; charset=' . _CHARSET);
                  Severity: Minor
                  Found in htdocs/modules/system/admin/images/browser.php - About 1 hr to fix

                    Method adminNav has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
                        global $target, $type;
                    
                        $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
                        if ($id === FALSE) {
                    Severity: Minor
                    Found in htdocs/modules/system/admin/images/browser.php - About 1 hr to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if (!copy($src, $dest)) {
                                              $error[] = sprintf(_FAILSAVEIMG, $image_id[$i]);
                                          }
                      Severity: Major
                      Found in htdocs/modules/system/admin/images/browser.php - About 45 mins to fix

                        Function imanager_delfileok has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }
                        Severity: Minor
                        Found in htdocs/modules/system/admin/images/browser.php - About 25 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        The function imanager_index() has an NPath complexity of 88128. The configured NPath complexity threshold is 200.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        NPathComplexity

                        Since: 0.1

                        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                        Example

                        class Foo {
                            function bar() {
                                // lots of complicated code
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#npathcomplexity

                        The function imanager_addcat() has an NPath complexity of 3072. The configured NPath complexity threshold is 200.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        NPathComplexity

                        Since: 0.1

                        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                        Example

                        class Foo {
                            function bar() {
                                // lots of complicated code
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#npathcomplexity

                        The function imanager_listimg() has an NPath complexity of 423936. The configured NPath complexity threshold is 200.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        NPathComplexity

                        Since: 0.1

                        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                        Example

                        class Foo {
                            function bar() {
                                // lots of complicated code
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#npathcomplexity

                        The function imanager_addfile() has an NPath complexity of 352. The configured NPath complexity threshold is 200.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        NPathComplexity

                        Since: 0.1

                        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                        Example

                        class Foo {
                            function bar() {
                                // lots of complicated code
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#npathcomplexity

                        The function imanager_listimg() has 211 lines of code. Current threshold is set to 100. Avoid really long methods.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        The function imanager_index() has 184 lines of code. Current threshold is set to 100. Avoid really long methods.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        The function imanager_updateimage() has an NPath complexity of 524. The configured NPath complexity threshold is 200.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        NPathComplexity

                        Since: 0.1

                        The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                        Example

                        class Foo {
                            function bar() {
                                // lots of complicated code
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#npathcomplexity

                        The function imanager_listimg() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CyclomaticComplexity

                        Since: 0.1

                        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                        Example

                        // Cyclomatic Complexity = 11
                        class Foo {
                        1   public function example() {
                        2       if ($a == $b) {
                        3           if ($a1 == $b1) {
                                        fiddle();
                        4           } elseif ($a2 == $b2) {
                                        fiddle();
                                    } else {
                                        fiddle();
                                    }
                        5       } elseif ($c == $d) {
                        6           while ($c == $d) {
                                        fiddle();
                                    }
                        7        } elseif ($e == $f) {
                        8           for ($n = 0; $n < $h; $n++) {
                                        fiddle();
                                    }
                                } else {
                                    switch ($z) {
                        9               case 1:
                                            fiddle();
                                            break;
                        10              case 2:
                                            fiddle();
                                            break;
                        11              case 3:
                                            fiddle();
                                            break;
                                        default:
                                            fiddle();
                                            break;
                                    }
                                }
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                        The function imanager_addcat() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CyclomaticComplexity

                        Since: 0.1

                        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                        Example

                        // Cyclomatic Complexity = 11
                        class Foo {
                        1   public function example() {
                        2       if ($a == $b) {
                        3           if ($a1 == $b1) {
                                        fiddle();
                        4           } elseif ($a2 == $b2) {
                                        fiddle();
                                    } else {
                                        fiddle();
                                    }
                        5       } elseif ($c == $d) {
                        6           while ($c == $d) {
                                        fiddle();
                                    }
                        7        } elseif ($e == $f) {
                        8           for ($n = 0; $n < $h; $n++) {
                                        fiddle();
                                    }
                                } else {
                                    switch ($z) {
                        9               case 1:
                                            fiddle();
                                            break;
                        10              case 2:
                                            fiddle();
                                            break;
                        11              case 3:
                                            fiddle();
                                            break;
                                        default:
                                            fiddle();
                                            break;
                                    }
                                }
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                        The function imanager_updateimage() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CyclomaticComplexity

                        Since: 0.1

                        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                        Example

                        // Cyclomatic Complexity = 11
                        class Foo {
                        1   public function example() {
                        2       if ($a == $b) {
                        3           if ($a1 == $b1) {
                                        fiddle();
                        4           } elseif ($a2 == $b2) {
                                        fiddle();
                                    } else {
                                        fiddle();
                                    }
                        5       } elseif ($c == $d) {
                        6           while ($c == $d) {
                                        fiddle();
                                    }
                        7        } elseif ($e == $f) {
                        8           for ($n = 0; $n < $h; $n++) {
                                        fiddle();
                                    }
                                } else {
                                    switch ($z) {
                        9               case 1:
                                            fiddle();
                                            break;
                        10              case 2:
                                            fiddle();
                                            break;
                        11              case 3:
                                            fiddle();
                                            break;
                                        default:
                                            fiddle();
                                            break;
                                    }
                                }
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                        The function imanager_index() has a Cyclomatic Complexity of 23. The configured cyclomatic complexity threshold is 10.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CyclomaticComplexity

                        Since: 0.1

                        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                        Example

                        // Cyclomatic Complexity = 11
                        class Foo {
                        1   public function example() {
                        2       if ($a == $b) {
                        3           if ($a1 == $b1) {
                                        fiddle();
                        4           } elseif ($a2 == $b2) {
                                        fiddle();
                                    } else {
                                        fiddle();
                                    }
                        5       } elseif ($c == $d) {
                        6           while ($c == $d) {
                                        fiddle();
                                    }
                        7        } elseif ($e == $f) {
                        8           for ($n = 0; $n < $h; $n++) {
                                        fiddle();
                                    }
                                } else {
                                    switch ($z) {
                        9               case 1:
                                            fiddle();
                                            break;
                        10              case 2:
                                            fiddle();
                                            break;
                        11              case 3:
                                            fiddle();
                                            break;
                                        default:
                                            fiddle();
                                            break;
                                    }
                                }
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                        The function imanager_addfile() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CyclomaticComplexity

                        Since: 0.1

                        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                        Example

                        // Cyclomatic Complexity = 11
                        class Foo {
                        1   public function example() {
                        2       if ($a == $b) {
                        3           if ($a1 == $b1) {
                                        fiddle();
                        4           } elseif ($a2 == $b2) {
                                        fiddle();
                                    } else {
                                        fiddle();
                                    }
                        5       } elseif ($c == $d) {
                        6           while ($c == $d) {
                                        fiddle();
                                    }
                        7        } elseif ($e == $f) {
                        8           for ($n = 0; $n < $h; $n++) {
                                        fiddle();
                                    }
                                } else {
                                    switch ($z) {
                        9               case 1:
                                            fiddle();
                                            break;
                        10              case 2:
                                            fiddle();
                                            break;
                        11              case 3:
                                            fiddle();
                                            break;
                                        default:
                                            fiddle();
                                            break;
                                    }
                                }
                            }
                        }

                        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                    redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $redir . '&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                            redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 2, _ICMS_DBUPDATED);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $imgcat_id . '&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                            redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 2, _ICMS_DBUPDATED);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $redir . '&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                    redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$target' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Avoid using undefined variables such as '$type' which will lead to PHP notices.
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $imgcat_id . '&target=' . $target . '&type=' . $type;

                        UndefinedVariable

                        Since: 2.8.0

                        Detects when a variable is used that has not been defined before.

                        Example

                        class Foo
                        {
                            private function bar()
                            {
                                // $message is undefined
                                echo $message;
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                        Missing class import via use statement (line '176', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '190', column '26').
                        Open

                            $criteriaWrite->add(new icms_db_criteria_Item('imgcat_pid', $id));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '232', column '45').
                        Open

                                $count[$i] = $image_handler->getCount(new icms_db_criteria_Item('imgcat_id', $imagecategorys[$i]->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '249', column '23').
                        Open

                                $criteriaRead = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '179', column '25').
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_display', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '264', column '40').
                        Open

                                    $sc += $image_handler->getCount(new icms_db_criteria_Item('imgcat_id', $va->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '309', column '19').
                        Open

                            $storetype = new icms_form_elements_Radio(_MD_IMGCATSTRTYPE, 'imgcat_storetype', 'file');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '319', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('type', $type));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '187', column '27').
                        Open

                                $criteriaWrite->add(new icms_db_criteria_Item('gperm_modid', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '296', column '13').
                        Open

                            $sup = new icms_form_elements_Select(_MD_IMGCATPARENT, 'imgcat_pid', $id);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '401', column '25').
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategory->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '412', column '27').
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '408', column '22').
                        Open

                            $criteriaRead = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '416', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '410', column '23').
                        Open

                                $criteriaTray = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '537', column '15').
                        Open

                                    $nav = new icms_view_PageNav($imgcount, 15, $start, 'start', 'op=listimg&amp;imgcat_id=' . $imgcat_id . '&type=' . $type . '&target=' . $target);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 687.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '281', column '25').
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '287', column '25').
                        Open

                                $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '317', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('op', 'addcat'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '318', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('target', $target));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '177', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '181', column '25').
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $id));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '237', column '28').
                        Open

                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '285', column '25').
                        Open

                                $form->addElement(new icms_form_elements_Hidden('type', $type));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '301', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATNAME, 'imgcat_name', 50, 255), TRUE);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '244', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategorys[$i]->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '314', column '15').
                        Open

                            $fname = new icms_form_elements_Text(_MD_IMGCATFOLDERNAME, 'imgcat_foldername', 50, 255, '');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '399', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '253', column '28').
                        Open

                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '256', column '27').
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '302', column '24').
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATRGRP, 'readgroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '233', column '23').
                        Open

                                $criteriaRead = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 684.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '260', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategorys[$k]->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '294', column '14').
                        Open

                            $form = new icms_form_Theme(_MD_ADDIMGCAT, 'imagecat_form', 'browser.php', 'post', TRUE);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '391', column '22').
                        Open

                            $criteriaRead = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '322', column '13').
                        Open

                            $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '395', column '27').
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '235', column '24').
                        Open

                                    $criteriaTray = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 854.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '241', column '27').
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '398', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '251', column '24').
                        Open

                                    $criteriaTray = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '305', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXWIDTH, 'imgcat_maxwidth', 3, 4, 120));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 484.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '274', column '15').
                        Open

                                $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '277', column '17').
                        Open

                                $select = new icms_form_elements_Select(_IMAGECAT, 'imgcat_id');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '284', column '25').
                        Open

                                $form->addElement(new icms_form_elements_Hidden('target', $target));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '307', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATWEIGHT, 'imgcat_weight', 3, 4, 0));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '321', column '25').
                        Open

                            $tray1->addElement(new icms_form_elements_Button('', 'imgcat_button', _SUBMIT, 'submit'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '453', column '22').
                        Open

                                $criteria->add(new icms_db_criteria_Item('image_nicename', $query . '%', 'LIKE'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 852.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '303', column '24').
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATWGRP, 'writegroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '169', column '22').
                        Open

                            $criteriaRead = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '186', column '27').
                        Open

                                $criteriaWrite->add(new icms_db_criteria_Item('gperm_name', 'imgcat_write'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '276', column '25').
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '283', column '25').
                        Open

                                $form->addElement(new icms_form_elements_Hidden('op', 'addfile'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '288', column '14').
                        Open

                                $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 803.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '240', column '27').
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '286', column '15').
                        Open

                                $tray = new icms_form_elements_Tray('', '');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '304', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXSIZE, 'imgcat_maxsize', 10, 10, 50000));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '320', column '15').
                        Open

                            $tray1 = new icms_form_elements_Tray('', '');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '419', column '25').
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategory->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '423', column '39').
                        Open

                                $sc += $image_handler->getCount(new icms_db_criteria_Item('imgcat_id', $va->getVar('imgcat_id')));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '189', column '26').
                        Open

                            $criteriaWrite->add(new icms_db_criteria_Item('imgcat_display', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '282', column '25').
                        Open

                                $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 685.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '171', column '23').
                        Open

                                $criteriaTray = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '183', column '23').
                        Open

                            $criteriaWrite = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '257', column '27').
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '415', column '26').
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 683.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '308', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_MD_IMGCATDISPLAY, 'imgcat_display', 1, _YES, _NO));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 850.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '393', column '23').
                        Open

                                $criteriaTray = new icms_db_criteria_Compo();

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '943', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('target', $target));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '451', column '18').
                        Open

                            $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('imgcat_id', $imgcat_id));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '451', column '45').
                        Open

                            $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('imgcat_id', $imgcat_id));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '173', column '27').
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '280', column '25').
                        Open

                                $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '306', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXHEIGHT, 'imgcat_maxheight', 3, 4, 120));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 856.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '663', column '18').
                        Open

                            $uploader = new icms_file_MediaUploadHandler($updir, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png', 'image/bmp'), $imagecategory->getVar('imgcat_maxsize'), $imagecategory->getVar('imgcat_maxwidth'), $imagecategory->getVar('imgcat_maxheight'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Remove error control operator '@' on line 851.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        ErrorControlOperator

                        Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                        Example

                        function foo($filePath) {
                            $file = @fopen($filPath); // hides exceptions
                            $key = @$array[$notExistingKey]; // assigns null to $key
                        }

                        Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                        Missing class import via use statement (line '944', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('type', $type));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '935', column '16').
                        Open

                            $select = new icms_form_elements_Select(_IMAGECAT, 'imgcat_id', (int) $imgcat_id);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '947', column '13').
                        Open

                            $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '939', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '946', column '24').
                        Open

                            $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '932', column '14').
                        Open

                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '934', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '940', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '942', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('op', 'addfile'));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        The method adminNav has a boolean flag argument $list, which is a certain sign of a Single Responsibility Principle violation.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {

                        BooleanArgumentFlag

                        Since: 1.4.0

                        A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                        Example

                        class Foo {
                            public function bar($flag = true) {
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                        Missing class import via use statement (line '938', column '24').
                        Open

                            $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '941', column '24').
                        Open

                            $form->addElement(new icms_form_elements_Hidden('imgcat_id', $imgcat_id));

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '945', column '14').
                        Open

                            $tray = new icms_form_elements_Tray('', '');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        The method imanager_listimg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                } else {
                                    $arrimg[$i]['hasextra_link'] = 0;
                                }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_listimg'.
                        Open

                            $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_listimg'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class '\WideImage\WideImage' in method 'imanager_listimg'.
                        Open

                                    $img_info = WideImage::load(ICMS_IMANAGER_FOLDER_PATH . '/' . $images[$i]->getVar('image_name'));

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class '\WideImage\WideImage' in method 'imanager_listimg'.
                        Open

                                    $img_info = WideImage::load($path . $images[$i]->getVar('image_name'));

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_listimg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                } else {
                                    $icmsTpl->assign('pag', '');
                                }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_updateimage uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $redir = '?op=list&target=' . $target . '&type=' . $type;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_index uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $groups = &icms::$user->getGroups();
                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_index'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_listimg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $icmsTpl->assign('pag', '');
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_listimg'.
                        Open

                            $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_addcat'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_delfileok'.
                        Open

                            $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms_core_Message' in method 'imanager_delfileok'.
                        Open

                                icms_core_Message::error(sprintf(_MD_FAILDEL, $image->getVar('image_id')));

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_addfile'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_addfile uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                    } else {
                                        $image_handler = icms::handler('icms_image');
                                        $image = &$image_handler->create();
                                        $image->setVar('image_name', $uploader->getSavedFileName());
                                        $image->setVar('image_nicename', $image_nicename);

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_addcat'.
                        Open

                            $imagecategoryperm_handler = icms::handler('icms_member_groupperm');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_delfileok'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_delfileok uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $redir = '?op=list&target=' . $target . '&type=' . $type;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_listimg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                } else {
                                    $url = (substr($categ_url, -1) != '/') ? $categ_url . '/' : $categ_url;
                                    $path = (substr($categ_path, -1) != '/') ? $categ_path . '/' : $categ_path;
                                    $src = $url . $images[$i]->getVar('image_name');
                                    $arrimg[$i]['size'] = icms_convert_size(filesize($path . $images[$i]->getVar('image_name')));

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_addfile uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $updir = $categ_path;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_updateimage'.
                        Open

                                        $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms_core_DataFilter' in method 'imanager_listimg'.
                        Open

                                $arrimg[$i]['display_nicename'] = icms_core_DataFilter::icms_substr($images[$i]->getVar('image_nicename'), 0, 20);

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_listimg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                    } else {
                                        $arrimg[$i]['editor_link'] = '';
                                    }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms_core_Filesystem' in method 'imanager_addcat'.
                        Open

                                if (!icms_core_Filesystem::mkdir($categ_path)) {

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms_core_Message' in method 'imanager_addfile'.
                        Open

                                icms_core_Message::error($err);

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_index'.
                        Open

                            $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms_core_Message' in method 'imanager_index'.
                        Open

                                icms_core_Message::warning(sprintf(_WARNINNOTWRITEABLE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH)));

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms_core_Message' in method 'imanager_index'.
                        Open

                                icms_core_Message::warning(sprintf(_WARNINNOTWRITEABLE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH)));

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'imanager_addfile'.
                        Open

                                        $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_listimg uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $groups = &icms::$user->getGroups();
                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_clone uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $redir = '?op=list&target=' . $target . '&type=' . $type;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_addfile uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $redir = '?op=list&target=' . $target . '&type=' . $type;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid assigning values to variables in if clauses and the like (line '834', column '7').
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        IfStatementAssignment

                        Since: 2.7.0

                        Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($foo = 'bar') { // possible typo
                                    // ...
                                }
                                if ($baz = 0) { // always false
                                    // ...
                                }
                            }
                        }

                        Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                        The method imanager_clone uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                if (!@copy($categ_path . '/' . $image->getVar('image_name'), $categ_path . '/' . $imgname)) {
                                    $msg = sprintf(_FAILSAVEIMG, $image->getVar('image_nicename'));
                                }
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_updateimage'.
                        Open

                                $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_updateimage uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                    } else {
                                        $changedCat = FALSE;
                                    }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_clone'.
                        Open

                            $image_handler = icms::handler('icms_image');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method imanager_addfile uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                } else {
                                    $err[] = sprintf(_FAILFETCHIMG, $i);
                                    $err = array_merge($err, $uploader->getErrors(FALSE));
                                }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'imanager_clone'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method adminNav uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                        } else {
                                            $ret = "<a href='" . $admin_url . "&imgcat_id=" . $imagecategory->getVar('imgcat_id') . "'>" . $imagecategory->getVar('imgcat_name') . "</a>";
                                        }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method adminNav uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                if ($id > 0) {
                                    $id = (int) $id;
                                    $imgcat_handler = icms::handler('icms_image_category');
                                    $imagecategory = &$imgcat_handler->get($id);

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method imanager_clone uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                $msg = _ICMS_DBUPDATED;
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid using static access to class 'icms' in method 'showAddImgForm'.
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        Avoid using static access to class 'icms' in method 'adminNav'.
                        Open

                                    $imgcat_handler = icms::handler('icms_image_category');

                        StaticAccess

                        Since: 1.4.0

                        Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                        Example

                        class Foo
                        {
                            public function bar()
                            {
                                Bar::baz();
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#staticaccess

                        The method adminNav uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                                } else {
                                    return FALSE;
                                }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        The method icmsPopupHeader uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                        Open

                            } else {
                                echo '<link rel="stylesheet" type="text/css" media="all" href="' . ICMS_MODULES_URL . '/system/style.css" />';
                            }

                        ElseExpression

                        Since: 1.4.0

                        An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                        Example

                        class Foo
                        {
                            public function bar($flag)
                            {
                                if ($flag) {
                                    // one branch
                                } else {
                                    // another branch
                                }
                            }
                        }

                        Source https://phpmd.org/rules/cleancode.html#elseexpression

                        Avoid unused local variables such as '$limit'.
                        Open

                            global $icmsTpl, $icmsConfig, $target, $type, $limit;

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        The function imanager_delfileok() contains an exit expression.
                        Open

                                exit();

                        ExitExpression

                        Since: 0.2

                        An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

                        Example

                        class Foo {
                            public function bar($param)  {
                                if ($param === 42) {
                                    exit(23);
                                }
                            }
                        }

                        Source https://phpmd.org/rules/design.html#exitexpression

                        Avoid unused local variables such as '$v'.
                        Open

                            foreach ($subs as $k => $v) {

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        Avoid unused local variables such as '$img'.
                        Open

                                    $img = WideImage::load($images[$i]->getVar('image_body'))->saveToFile(ICMS_IMANAGER_FOLDER_PATH . '/' . $images[$i]->getVar('image_name'));

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        Avoid unused local variables such as '$icmsConfig'.
                        Open

                            global $icmsTpl, $icmsConfig, $target, $type, $limit;

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        Avoid unused local variables such as '$admin'.
                        Open

                                $admin = FALSE;

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        The function imanager_updateimage() contains an exit expression.
                        Open

                                    exit();

                        ExitExpression

                        Since: 0.2

                        An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

                        Example

                        class Foo {
                            public function bar($param)  {
                                if ($param === 42) {
                                    exit(23);
                                }
                            }
                        }

                        Source https://phpmd.org/rules/design.html#exitexpression

                        The function imanager_addfile() contains an exit expression.
                        Open

                                exit();

                        ExitExpression

                        Since: 0.2

                        An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

                        Example

                        class Foo {
                            public function bar($param)  {
                                if ($param === 42) {
                                    exit(23);
                                }
                            }
                        }

                        Source https://phpmd.org/rules/design.html#exitexpression

                        Avoid unused parameters such as '$style'.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {

                        UnusedFormalParameter

                        Since: 0.2

                        Avoid passing parameters to methods or constructors and then not using those parameters.

                        Example

                        class Foo
                        {
                            private function bar($howdy)
                            {
                                // $howdy is not used
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                        Avoid unused local variables such as '$src'.
                        Open

                                $src = ICMS_MODULES_URL . "/system/admin/images/preview.php?file=" . $image->getVar('image_name') . '&resize=0';

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        Avoid unused local variables such as '$img'.
                        Open

                                $img = WideImage::load($image->getVar('image_body'))->saveToFile(ICMS_IMANAGER_FOLDER_PATH . '/' . $image->getVar('image_name'));

                        UnusedLocalVariable

                        Since: 0.2

                        Detects when a local variable is declared and/or assigned, but not used.

                        Example

                        class Foo {
                            public function doSomething()
                            {
                                $i = 5; // Unused
                            }
                        }

                        Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                        TODO found
                        Open

                            //TODO: make the image manager footer use a a template instead of hardcoded HTML

                        TODO found
                        Open

                            // TODO: make the list of accepted image filetypes configurable

                        TODO found
                        Open

                            //TODO: make the image manager header use a template instead of hardcoded HTML

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteriaWrite->add(new icms_db_criteria_Item('imgcat_pid', $id));

                        Call to method handler from undeclared class \icms
                        Open

                            $image_handler = icms::handler('icms_image');

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaWrite->add(new icms_db_criteria_Item('gperm_name', 'imgcat_write'));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaWrite->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaTray = new icms_db_criteria_Compo();

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategorys[$k]->getVar('imgcat_id')));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaTray = new icms_db_criteria_Compo();

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaWrite->add(new icms_db_criteria_Item('imgcat_display', 1));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead = new icms_db_criteria_Compo();

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_MD_IMGCATDISPLAY, 'imgcat_display', 1, _YES, _NO));

                        Call to method setDescription from undeclared class \icms_form_elements_Text
                        Open

                            $fname->setDescription('<span style="color:#ff0000;">' . _MD_IMGCATFOLDERNAME_DESC . '<br />' . _MD_STRTYOPENG . '</span>');

                        Reference to undeclared constant \_DELETE
                        Open

                            $icmsTpl->assign('lang_imanager_cat_del', _DELETE);

                        Call to method __construct from undeclared class \icms_form_elements_Tray
                        Open

                            $tray1 = new icms_form_elements_Tray('', '');

                        Call to method __construct from undeclared class \icms_form_elements_Button
                        Open

                            $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategorys[$k]->getVar('imgcat_id')));

                        Reference to static property user from undeclared class \icms
                        Open

                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method __construct from undeclared class \icms_form_elements_Button
                        Open

                                $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead = new icms_db_criteria_Compo();

                        Call to method handler from undeclared class \icms
                        Open

                            $image_handler = icms::handler('icms_image');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement($tray);

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXWIDTH, 'imgcat_maxwidth', 3, 4, 120));

                        Call to method setDescription from undeclared class \icms_form_elements_Radio
                        Open

                            $storetype->setDescription('<span style="color:#ff0000;">' . _MD_STRTYOPENG . '</span>');

                        Call to method __construct from undeclared class \icms_view_Tpl
                        Open

                        $icmsTpl = new icms_view_Tpl();

                        Reference to undeclared constant \_IMGMANAGER
                        Open

                            $icmsTpl->assign('lang_imanager_title', _IMGMANAGER);

                        Reference to undeclared constant \_WARNINNOTWRITEABLE
                        Open

                                icms_core_Message::warning(sprintf(_WARNINNOTWRITEABLE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH)));

                        Reference to undeclared constant \_ADDIMAGE
                        Open

                            $icmsTpl->assign('lang_imanager_cat_addimg', _ADDIMAGE);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaWrite->add(new icms_db_criteria_Item('imgcat_pid', $id));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategory->getVar('imgcat_id')));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaRead->add($criteriaTray);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategory->getVar('imgcat_id')));

                        Reference to undeclared constant \_ADDIMAGE
                        Open

                                $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('imgcat_id', $imgcat_id));

                        Call to method render from undeclared class \icms_form_Theme
                        Open

                                $icmsTpl->assign('addimgform', $form->render());

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATWGRP, 'writegroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXHEIGHT, 'imgcat_maxheight', 3, 4, 120));

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATWEIGHT, 'imgcat_weight', 3, 4, 0));

                        Reference to static property user from undeclared class \icms
                        Open

                                $groups = &icms::$user->getGroups();

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategory->getVar('imgcat_id')));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Reference to undeclared constant \_IMAGEMIME
                        Open

                            $icmsTpl->assign('lang_image_mimetype', _IMAGEMIME);

                        Reference to undeclared constant \_IMGWEIGHT
                        Open

                            $icmsTpl->assign('lang_image_weight', _IMGWEIGHT);

                        Reference to undeclared constant \_SUBMIT
                        Open

                            $icmsTpl->assign('lang_submit', _SUBMIT);

                        Call to method __construct from undeclared class \icms_view_PageNav
                        Open

                                    $nav = new icms_view_PageNav($imgcount, 15, $start, 'start', 'op=listimg&amp;imgcat_id=' . $imgcat_id . '&type=' . $type . '&target=' . $target);

                        Call to method handler from undeclared class \icms
                        Open

                                $image_handler = icms::handler('icms_image');

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaRead->add($criteriaTray);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaTray = new icms_db_criteria_Compo();

                        Call to method setExtra from undeclared class \icms_form_Theme
                        Open

                                $form->setExtra('enctype="multipart/form-data"');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        Reference to undeclared constant \_NO
                        Open

                                $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Call to method addOptionArray from undeclared class \icms_form_elements_Select
                        Open

                            $sup->addOptionArray($list);

                        Call to method setExtra from undeclared class \icms_form_elements_Button
                        Open

                            $btn->setExtra('onclick="document.getElementById(\'addcatform\').style.display = \'none\'; return false;"');

                        Reference to undeclared constant \_PREVIEW
                        Open

                            $icmsTpl->assign('lang_imanager_img_preview', _PREVIEW);

                        Variable $type is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add($criteriaTray);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_display', 1));

                        Reference to undeclared constant \_LIST
                        Open

                            $icmsTpl->assign('lang_imanager_cat_listimg', _LIST);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method __construct from undeclared class \icms_form_elements_File
                        Open

                                $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_Hidden('op', 'addfile'));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_Hidden('type', $type));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXSIZE, 'imgcat_maxsize', 10, 10, 50000));

                        Call to method __construct from undeclared class \icms_form_elements_Radio
                        Open

                            $storetype = new icms_form_elements_Radio(_MD_IMGCATSTRTYPE, 'imgcat_storetype', 'file');

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('type', $type));

                        Call to method render from undeclared class \icms_form_Theme
                        Open

                            $icmsTpl->assign('addcatform', $form->render());

                        Reference to undeclared constant \_BACK
                        Open

                            $icmsTpl->assign('lang_imanager_cat_back', _BACK);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method setOrder from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteria->setOrder('DESC');

                        Call to method checkVarArray from undeclared class \icms_core_DataFilter
                        Open

                            $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaWrite = new icms_db_criteria_Compo();

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaWrite->add(new icms_db_criteria_Item('gperm_name', 'imgcat_write'));

                        Reference to static property security from undeclared class \icms
                        Open

                            $icmsTpl->assign('token', icms::$security->getTokenHTML());

                        Call to method __construct from undeclared class \icms_form_elements_Select
                        Open

                                $select = new icms_form_elements_Select(_IMAGECAT, 'imgcat_id');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        Reference to undeclared constant \_IMGMAXWIDTH
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXWIDTH, 'imgcat_maxwidth', 3, 4, 120));

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Call to method warning from undeclared class \icms_core_Message
                        Open

                                icms_core_Message::warning(sprintf(_WARNINNOTWRITEABLE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH)));

                        Reference to undeclared constant \_LIST
                        Open

                            $icmsTpl->assign('lang_imanager_cat_listimg', _LIST);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Variable $target is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_display', 1));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead = new icms_db_criteria_Compo();

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement($select, TRUE);

                        Reference to undeclared constant \_IMAGEFILE
                        Open

                                $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        Reference to undeclared constant \_IMGWEIGHT
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        Reference to undeclared constant \_IMGMAXHEIGHT
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXHEIGHT, 'imgcat_maxheight', 3, 4, 120));

                        Reference to undeclared constant \_NO
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_MD_IMGCATDISPLAY, 'imgcat_display', 1, _YES, _NO));

                        Call to method addElement from undeclared class \icms_form_elements_Tray
                        Open

                            $tray1->addElement(new icms_form_elements_Button('', 'imgcat_button', _SUBMIT, 'submit'));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategory->getVar('imgcat_id')));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('imgcat_id', $imgcat_id));

                        Reference to static property user from undeclared class \icms
                        Open

                        if (!icms::$user) {

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $id));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaWrite->add($criteriaTray);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $sc += $image_handler->getCount(new icms_db_criteria_Item('imgcat_id', $va->getVar('imgcat_id')));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                                $form->addElement(new icms_form_elements_Hidden('type', $type));

                        Call to method addElement from undeclared class \icms_form_elements_Tray
                        Open

                                $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        Reference to undeclared constant \_SUBMIT
                        Open

                                $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATNAME, 'imgcat_name', 50, 255), TRUE);

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXHEIGHT, 'imgcat_maxheight', 3, 4, 120));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('op', 'addcat'));

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaTray = new icms_db_criteria_Compo();

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteria->add(new icms_db_criteria_Item('image_nicename', $query . '%', 'LIKE'));

                        Reference to undeclared constant \_NOPERM
                        Open

                            redirect_header(ICMS_URL . '/', 6, _NOPERM);

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead = new icms_db_criteria_Compo();

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $count[$i] = $image_handler->getCount(new icms_db_criteria_Item('imgcat_id', $imagecategorys[$i]->getVar('imgcat_id')));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method confirm from undeclared class \icms_core_Message
                        Open

                                icms_core_Message::confirm(array('op' => 'delfileok', 'image_id' => $image_id, 'imgcat_id' => $imgcat_id, 'target' => $target, 'type' => $type), 'browser.php', _MD_RUDELIMG);

                        Reference to undeclared constant \_IMAGENAME
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                            $criteriaWrite->add(new icms_db_criteria_Item('imgcat_display', 1));

                        Call to method __construct from undeclared class \icms_form_elements_Radioyn
                        Open

                                $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Reference to undeclared constant \_IMGMANAGER
                        Open

                            $icmsTpl->assign('lang_imanager_title', _IMGMANAGER);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategorys[$i]->getVar('imgcat_id')));

                        Reference to undeclared constant \_IMGDISPLAY
                        Open

                                $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXSIZE, 'imgcat_maxsize', 10, 10, 50000));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        Call to method addOptionArray from undeclared class \icms_form_elements_Select
                        Open

                                $select->addOptionArray($imgcat_handler->getCategList($groups, 'imgcat_write'));

                        Call to method __construct from undeclared class \icms_form_elements_Radioyn
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_MD_IMGCATDISPLAY, 'imgcat_display', 1, _YES, _NO));

                        Call to method __construct from undeclared class \icms_form_elements_select_Group
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATWGRP, 'writegroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        Call to method addOptionArray from undeclared class \icms_form_elements_Radio
                        Open

                            $storetype->addOptionArray(array('file' => sprintf(_MD_ASFILE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH) . '/foldername'), 'db' => _MD_INDB));

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $fname = new icms_form_elements_Text(_MD_IMGCATFOLDERNAME, 'imgcat_foldername', 50, 255, '');

                        Call to method setExtra from undeclared class \icms_form_elements_Radio
                        Open

                            $storetype->setExtra('onchange="actField(this.value, \'imgcat_foldername\');"');

                        Call to method addElement from undeclared class \icms_form_elements_Tray
                        Open

                            $tray1->addElement($btn);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method handler from undeclared class \icms
                        Open

                            $image_handler = icms::handler('icms_image');

                        Reference to undeclared constant \_DELETE
                        Open

                            $icmsTpl->assign('lang_imanager_cat_del', _DELETE);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $sc += $image_handler->getCount(new icms_db_criteria_Item('imgcat_id', $va->getVar('imgcat_id')));

                        Reference to undeclared constant \_CANCEL
                        Open

                            $icmsTpl->assign('lang_cancel', _CANCEL);

                        Reference to undeclared constant \_IMAGENAME
                        Open

                            $icmsTpl->assign('lang_image_name', _IMAGENAME);

                        Reference to undeclared constant \_YES
                        Open

                            $icmsTpl->assign('lang_yes', _YES);

                        Call to method getSavedDestination from undeclared class \icms_file_MediaUploadHandler
                        Open

                                            $fbinary = @fread($fp, filesize($uploader->getSavedDestination()));

                        Call to method icms_substr from undeclared class \icms_core_DataFilter
                        Open

                                $arrimg[$i]['display_nicename'] = icms_core_DataFilter::icms_substr($images[$i]->getVar('image_nicename'), 0, 20);

                        Call to method handler from undeclared class \icms
                        Open

                                $imgcat_handler = icms::handler('icms_image_category');

                        Call to method __construct from undeclared class \icms_form_Theme
                        Open

                                $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        Call to method __construct from undeclared class \icms_form_elements_Tray
                        Open

                                $tray = new icms_form_elements_Tray('', '');

                        Call to method __construct from undeclared class \icms_form_elements_select_Group
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATRGRP, 'readgroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        Reference to undeclared constant \_YES
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_MD_IMGCATDISPLAY, 'imgcat_display', 1, _YES, _NO));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('op', 'addcat'));

                        Reference to undeclared constant \_EDIT
                        Open

                            $icmsTpl->assign('lang_imanager_cat_edit', _EDIT);

                        Reference to static property security from undeclared class \icms
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Reference to static property user from undeclared class \icms
                        Open

                                $groups = &icms::$user->getGroups();

                        Reference to static property user from undeclared class \icms
                        Open

                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;

                        Call to method warning from undeclared class \icms_core_Message
                        Open

                                icms_core_Message::warning(sprintf(_WARNINNOTWRITEABLE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH)));

                        Reference to undeclared constant \_WARNINNOTWRITEABLE
                        Open

                                icms_core_Message::warning(sprintf(_WARNINNOTWRITEABLE, str_ireplace(ICMS_ROOT_PATH, "", ICMS_IMANAGER_FOLDER_PATH)));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaWrite->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Reference to undeclared constant \_EDIT
                        Open

                            $icmsTpl->assign('lang_imanager_cat_edit', _EDIT);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_Hidden('target', $target));

                        Reference to undeclared constant \_SUBMIT
                        Open

                            $tray1->addElement(new icms_form_elements_Button('', 'imgcat_button', _SUBMIT, 'submit'));

                        Reference to undeclared constant \_IMGDISPLAY
                        Open

                            $icmsTpl->assign('lang_image_disp', _IMGDISPLAY);

                        Reference to undeclared constant \_SELECT
                        Open

                            $icmsTpl->assign('lang_select', _SELECT);

                        Call to method setLimit from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteria->setLimit($limit);

                        Reference to static property user from undeclared class \icms
                        Open

                            if (!is_object(icms::$user)) {

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $imagecategorys[$i]->getVar('imgcat_id')));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Reference to undeclared constant \_CANCEL
                        Open

                                $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        Reference to undeclared constant \_IMGMAXSIZE
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXSIZE, 'imgcat_maxsize', 10, 10, 50000));

                        Call to method __construct from undeclared class \icms_form_elements_Button
                        Open

                            $tray1->addElement(new icms_form_elements_Button('', 'imgcat_button', _SUBMIT, 'submit'));

                        Reference to undeclared constant \_CANCEL
                        Open

                            $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        Reference to static property user from undeclared class \icms
                        Open

                            if (!is_object(icms::$user)) {

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead = new icms_db_criteria_Compo();

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Reference to undeclared constant \_SEARCH
                        Open

                            $icmsTpl->assign('lang_search', _SEARCH);

                        Call to method setSort from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteria->setSort('image_weight');

                        Call to method checkVarArray from undeclared class \icms_core_DataFilter
                        Open

                            $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteriaRead->add(new icms_db_criteria_Item('imgcat_pid', $id));

                        Reference to undeclared constant \_SUBMIT
                        Open

                            $icmsTpl->assign('lang_imanager_cat_submit', _SUBMIT);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Reference to undeclared constant \_IMAGECAT
                        Open

                                $select = new icms_form_elements_Select(_IMAGECAT, 'imgcat_id');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                                $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                                $form->addElement(new icms_form_elements_Hidden('op', 'addfile'));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                                $form->addElement(new icms_form_elements_Hidden('target', $target));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATWEIGHT, 'imgcat_weight', 3, 4, 0));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('target', $target));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_modid', 1));

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add($criteriaTray);

                        Reference to undeclared constant \_IMAGECAT
                        Open

                            $icmsTpl->assign('lang_image_cat', _IMAGECAT);

                        Reference to undeclared constant \_QSEARCH
                        Open

                            $icmsTpl->assign('lang_search_title', _QSEARCH);

                        Reference to undeclared constant \_ICMS_DBUPDATED
                        Open

                            redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 2, _ICMS_DBUPDATED);

                        Call to method setExtra from undeclared class \icms_form_elements_Button
                        Open

                                $btn->setExtra('onclick="document.getElementById(\'addimgform\').style.display = \'none\'; return FALSE;"');

                        Call to method addElement from undeclared class \icms_form_elements_Tray
                        Open

                                $tray->addElement($btn);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATRGRP, 'readgroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement($storetype);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement($fname, TRUE);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('type', $type));

                        Reference to undeclared constant \_CLONE
                        Open

                            $icmsTpl->assign('lang_imanager_cat_clone', _CLONE);

                        Reference to undeclared constant \_SUBMIT
                        Open

                            $icmsTpl->assign('lang_imanager_cat_submit', _SUBMIT);

                        Call to method __construct from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaTray = new icms_db_criteria_Compo();

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteria->add(new icms_db_criteria_Item('image_nicename', $query . '%', 'LIKE'));

                        Call to method setStart from undeclared class \icms_db_criteria_Compo
                        Open

                            $criteria->setStart($start);

                        Reference to undeclared constant \_PREVIEW
                        Open

                                $preview_url = '<a href="' . $src_lightbox . '" rel="lightbox[categ' . $images[$i]->getVar('imgcat_id') . ']" title="' . $images[$i]->getVar('image_nicename') . '"><img src="' . ICMS_IMAGES_SET_URL . '/actions/viewmag.png" alt="' . _PREVIEW . '" title="' . _PREVIEW . '" /></a>';

                        Saw unextractable annotation for comment '* @return'
                        Open

                         * @return

                        Reference to static property security from undeclared class \icms
                        Open

                            if (!icms::$security->check()) {

                        Variable $target is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        Reference to undeclared constant \_FAILFETCHIMG
                        Open

                                    $err[] = sprintf(_FAILFETCHIMG, $i);

                        Reference to static property security from undeclared class \icms
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Reference to static property preload from undeclared class \icms
                        Open

                            icms::$preload->triggerEvent('adminHeader');

                        Call to method render from undeclared class \icms_form_Theme
                        Open

                            return $form->render();

                        Call to method load from undeclared class \WideImage\WideImage
                        Open

                                    $img = WideImage::load($images[$i]->getVar('image_body'))->saveToFile(ICMS_IMANAGER_FOLDER_PATH . '/' . $images[$i]->getVar('image_name'));

                        Variable $target is undeclared
                        Open

                            redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 2, _ICMS_DBUPDATED);

                        Reference to static property security from undeclared class \icms
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Variable $target is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1);

                        Reference to static property security from undeclared class \icms
                        Open

                            if (!icms::$security->check()) {

                        Reference to static property security from undeclared class \icms
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Reference to undeclared constant \_FAILSAVEIMG
                        Open

                                                $error[] = sprintf(_FAILSAVEIMG, $image_id[$i]);

                        Call to method load from undeclared class \WideImage\WideImage
                        Open

                                $img = WideImage::load($image->getVar('image_body'))->saveToFile(ICMS_IMANAGER_FOLDER_PATH . '/' . $image->getVar('image_name'));

                        Reference to undeclared constant \_ICMS_DBUPDATED
                        Open

                                $msg = _ICMS_DBUPDATED;

                        Reference to undeclared constant \_IMAGENAME
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        Reference to undeclared constant \_IMGMANAGER
                        Open

                            <title>' . htmlspecialchars($icmsConfig['sitename'], ENT_QUOTES) . ' - ' . _IMGMANAGER . '</title>

                        Reference to undeclared constant \_NO
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Reference to static property preload from undeclared class \icms
                        Open

                            icms::$preload->triggerEvent('adminBeforeFooter');

                        Call to method __construct from undeclared class \icms_form_elements_Tray
                        Open

                            $tray = new icms_form_elements_Tray('', '');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        Call to method __construct from undeclared class \icms_form_elements_Button
                        Open

                            $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        Call to method setExtra from undeclared class \icms_form_elements_Button
                        Open

                            $btn->setExtra('onclick="document.getElementById(\'addimgform\').style.display = \'none\'; return FALSE;"');

                        Saw unextractable annotation for comment '* @param'
                        Open

                         * @param

                        Variable $type is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Reference to static property security from undeclared class \icms
                        Open

                            if (!icms::$security->check()) {

                        Variable $type is undeclared
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $imgcat_id . '&target=' . $target . '&type=' . $type;

                        Reference to undeclared constant \_ICMS_DBUPDATED
                        Open

                            redirect_header('browser.php' . $redir, 2, _ICMS_DBUPDATED);

                        Variable $type is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Reference to static property security from undeclared class \icms
                        Open

                            if (!icms::$security->check()) {

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Call to method setExtra from undeclared class \icms_form_Theme
                        Open

                            $form->setExtra('enctype="multipart/form-data"');

                        Reference to undeclared constant \_IMGWEIGHT
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        Variable $target is undeclared
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        Variable $target is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Call to method handler from undeclared class \icms
                        Open

                                    $imgcat_handler = icms::handler('icms_image_category');

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        Call to method __construct from undeclared class \icms_form_elements_Select
                        Open

                            $select = new icms_form_elements_Select(_IMAGECAT, 'imgcat_id', (int) $imgcat_id);

                        Variable $type is undeclared
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        Reference to undeclared constant \_ICMS_DBUPDATED
                        Open

                            redirect_header('browser.php' . $redir, 2, _ICMS_DBUPDATED);

                        Reference to undeclared constant \_ICMS_DBUPDATED
                        Open

                            redirect_header('browser.php' . $redir, 2, _ICMS_DBUPDATED);

                        Reference to static property security from undeclared class \icms
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Call to method __construct from undeclared class \icms_form_elements_File
                        Open

                            $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('imgcat_id', $imgcat_id));

                        Returning type false but adminNav() is declared to return string
                        Open

                                    return FALSE;

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        Reference to undeclared constant \_YES
                        Open

                                $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Call to method __construct from undeclared class \icms_form_elements_Button
                        Open

                                $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        Call to method __construct from undeclared class \icms_form_Theme
                        Open

                            $form = new icms_form_Theme(_MD_ADDIMGCAT, 'imagecat_form', 'browser.php', 'post', TRUE);

                        Call to method __construct from undeclared class \icms_form_elements_Select
                        Open

                            $sup = new icms_form_elements_Select(_MD_IMGCATPARENT, 'imgcat_pid', $id);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement($sup);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATNAME, 'imgcat_name', 50, 255), TRUE);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGMAXWIDTH, 'imgcat_maxwidth', 3, 4, 120));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('target', $target));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement($tray1);

                        Call to method add from undeclared class \icms_db_criteria_Compo
                        Open

                                $criteriaRead->add($criteriaTray);

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                $criteriaRead->add(new icms_db_criteria_Item('gperm_name', 'imgcat_read'));

                        Call to method __construct from undeclared class \icms_db_criteria_Item
                        Open

                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');

                        Reference to undeclared constant \_NO
                        Open

                            $icmsTpl->assign('lang_no', _NO);

                        Argument 1 (filename) is null but \file_exists() takes string
                        Open

                            if (!file_exists($categ_path)) {

                        Call to method getErrors from undeclared class \icms_file_MediaUploadHandler
                        Open

                                        $err[] = $uploader->getErrors();

                        Variable $type is undeclared
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        Call to method handler from undeclared class \icms
                        Open

                            $image_handler = icms::handler('icms_image');

                        Call to method __construct from undeclared class \icms_form_Theme
                        Open

                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        Call to method addElement from undeclared class \icms_form_elements_Tray
                        Open

                            $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        Reference to undeclared constant \_SUBMIT
                        Open

                            $tray->addElement(new icms_form_elements_Button('', 'img_button', _SUBMIT, 'submit'));

                        Variable $type is undeclared
                        Open

                                    redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        Call to method getSavedDestination from undeclared class \icms_file_MediaUploadHandler
                        Open

                                            $fp = @fopen($uploader->getSavedDestination(), 'rb');

                        Call to method handler from undeclared class \icms
                        Open

                            $image_handler = icms::handler('icms_image');

                        Reference to undeclared constant \_FAILSAVEIMG
                        Open

                                $msg = sprintf(_FAILSAVEIMG, $newimg->getVar('image_nicename'));

                        Reference to undeclared constant \_IMAGECAT
                        Open

                            $select = new icms_form_elements_Select(_IMAGECAT, 'imgcat_id', (int) $imgcat_id);

                        Call to method __construct from undeclared class \icms_form_elements_Radioyn
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Returning type false but adminNav() is declared to return string
                        Open

                                return FALSE;

                        Call to method mkdir from undeclared class \icms_core_Filesystem
                        Open

                                if (!icms_core_Filesystem::mkdir($categ_path)) {

                        Reference to static property security from undeclared class \icms
                        Open

                                $arrimg[$i]['clone_token'] = icms::$security->getTokenHTML();

                        Variable $target is undeclared
                        Open

                                    redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1, _MD_FAILADDCAT);

                        Variable $type is undeclared
                        Open

                            redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 2, _ICMS_DBUPDATED);

                        Call to method getSavedFileName from undeclared class \icms_file_MediaUploadHandler
                        Open

                                        $image->setVar('image_name', $uploader->getSavedFileName());

                        Call to method error from undeclared class \icms_core_Message
                        Open

                                icms_core_Message::error(sprintf(_MD_FAILDEL, $image->getVar('image_id')));

                        Variable $target is undeclared
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $imgcat_id . '&target=' . $target . '&type=' . $type;

                        Reference to undeclared constant \_CHARSET
                        Open

                            <meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />

                        Reference to undeclared constant \_ADDIMAGE
                        Open

                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement($select, TRUE);

                        Reference to undeclared constant \_FAILGETIMG
                        Open

                                        $error[] = sprintf(_FAILGETIMG, $image_id[$i]);

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('type', $type));

                        Reference to undeclared constant \_FAILSAVEIMG
                        Open

                                        $error[] = sprintf(_FAILSAVEIMG, $image_id[$i]);

                        Reference to static property security from undeclared class \icms
                        Open

                                $arrimg[$i]['ed_token'] = icms::$security->getTokenHTML();

                        Variable $type is undeclared
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $redir . '&target=' . $target . '&type=' . $type;

                        Call to method handler from undeclared class \icms
                        Open

                            $imagecategoryperm_handler = icms::handler('icms_member_groupperm');

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        Variable $target is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('target', $target));

                        Reference to undeclared constant \_FAILSAVEIMG
                        Open

                                            $err[] = sprintf(_FAILSAVEIMG, $image->getVar('image_nicename'));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('type', $type));

                        Reference to undeclared constant \_FAILSAVEIMG
                        Open

                                    $msg = sprintf(_FAILSAVEIMG, $image->getVar('image_nicename'));

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('imgcat_id', $imgcat_id));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('target', $target));

                        Call to method handler from undeclared class \icms
                        Open

                                        $image_handler = icms::handler('icms_image');

                        Reference to undeclared constant \_LANGCODE
                        Open

                            <meta http-equiv="content-language" content="' . _LANGCODE . '" />

                        Reference to undeclared constant \_CLOSE
                        Open

                            echo '<div style="float: right; padding:11px;"><input type="button" id="cancel" name="cancel" value="' . _CLOSE . '" onclick="window.close();" /></div><br style="clear:both;" />';

                        Call to method load from undeclared class \WideImage\WideImage
                        Open

                                    $img_info = WideImage::load(ICMS_IMANAGER_FOLDER_PATH . '/' . $images[$i]->getVar('image_name'));

                        Call to method load from undeclared class \WideImage\WideImage
                        Open

                                    $img_info = WideImage::load($path . $images[$i]->getVar('image_name'));

                        Call to method fetchMedia from undeclared class \icms_file_MediaUploadHandler
                        Open

                                if ($uploader->fetchMedia($_POST['xoops_upload_file'][$i])) {

                        Call to method getErrors from undeclared class \icms_file_MediaUploadHandler
                        Open

                                    $err = array_merge($err, $uploader->getErrors(FALSE));

                        Call to method handler from undeclared class \icms
                        Open

                                $image_handler = icms::handler('icms_image');

                        Reference to undeclared constant \_CHARSET
                        Open

                                header('Content-Type:text/html; charset=' . _CHARSET);

                        Reference to undeclared constant \_LANGCODE
                        Open

                            echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _LANGCODE . '" lang="' . _LANGCODE . '">

                        Call to method addOptionArray from undeclared class \icms_form_elements_Select
                        Open

                            $select->addOptionArray($imgcat_handler->getCategList());

                        Reference to undeclared constant \_IMAGEFILE
                        Open

                            $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        Reference to undeclared constant \_IMGDISPLAY
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Reference to undeclared constant \_YES
                        Open

                            $form->addElement(new icms_form_elements_Radioyn(_IMGDISPLAY, 'image_display', 1, _YES, _NO));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement($tray);

                        Call to method renderNav from undeclared class \icms_view_PageNav
                        Open

                                    $icmsTpl->assign('pag', '<div class="img_list_info_panel" align="center">' . $nav->renderNav() . '</div>');

                        Call to method handler from undeclared class \icms
                        Open

                            $imgcat_handler = icms::handler('icms_image_category');

                        Variable $type is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 1);

                        Call to method setPrefix from undeclared class \icms_file_MediaUploadHandler
                        Open

                            $uploader->setPrefix('img');

                        Call to method getMediaType from undeclared class \icms_file_MediaUploadHandler
                        Open

                                        $image->setVar('image_mimetype', $uploader->getMediaType());

                        Call to method getSavedDestination from undeclared class \icms_file_MediaUploadHandler
                        Open

                                            @unlink($uploader->getSavedDestination());

                        Call to method error from undeclared class \icms_core_Message
                        Open

                                icms_core_Message::error($err);

                        Variable $type is undeclared
                        Open

                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        Call to method __construct from undeclared class \icms_form_elements_Hidden
                        Open

                            $form->addElement(new icms_form_elements_Hidden('op', 'addfile'));

                        Call to method addElement from undeclared class \icms_form_elements_Tray
                        Open

                            $tray->addElement($btn);

                        Call to method handler from undeclared class \icms
                        Open

                                        $imgcat_handler = icms::handler('icms_image_category');

                        Variable $target is undeclared
                        Open

                                $redir = '?op=list&target=' . $target . '&type=' . $type;

                        Reference to static property security from undeclared class \icms
                        Open

                            if (!icms::$security->check()) {

                        Call to method __construct from undeclared class \icms_form_elements_Text
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMGWEIGHT, 'image_weight', 3, 4, 0));

                        Call to method __construct from undeclared class \icms_file_MediaUploadHandler
                        Open

                            $uploader = new icms_file_MediaUploadHandler($updir, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png', 'image/bmp'), $imagecategory->getVar('imgcat_maxsize'), $imagecategory->getVar('imgcat_maxwidth'), $imagecategory->getVar('imgcat_maxheight'));

                        Call to method upload from undeclared class \icms_file_MediaUploadHandler
                        Open

                                    if (!$uploader->upload()) {

                        Variable $target is undeclared
                        Open

                                $redir = '?op=listimg&imgcat_id=' . $redir . '&target=' . $target . '&type=' . $type;

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_File(_IMAGEFILE, 'image_file', 5000000));

                        Call to method addElement from undeclared class \icms_form_Theme
                        Open

                            $form->addElement(new icms_form_elements_Hidden('op', 'addfile'));

                        Call to method __construct from undeclared class \icms_form_elements_Button
                        Open

                            $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        Reference to undeclared constant \_CANCEL
                        Open

                            $btn = new icms_form_elements_Button('', 'reset', _CANCEL, 'button');

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                            for ($i = 0; $i < $ucount; $i++ ) {
                                if ($uploader->fetchMedia($_POST['xoops_upload_file'][$i])) {
                                    if (!$uploader->upload()) {
                                        $err[] = $uploader->getErrors();
                                    } else {
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 1 other location - About 1 day to fix
                        htdocs/modules/system/admin/images/main.php on lines 881..911

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 398.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                            if ($imagecategory->getVar('imgcat_storetype') == 'db') {
                                $src = ICMS_MODULES_URL . "/system/admin/images/preview.php?file=" . $image->getVar('image_name') . '&resize=0';
                                $img = WideImage::load($image->getVar('image_body'))->saveToFile(ICMS_IMANAGER_FOLDER_PATH . '/' . $image->getVar('image_name'));
                                $fp = @fopen(ICMS_IMANAGER_FOLDER_PATH . '/' . $image->getVar('image_name'), 'rb');
                                $fbinary = @fread($fp, filesize(ICMS_IMANAGER_FOLDER_PATH . '/' . $image->getVar('image_name')));
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 1 other location - About 1 day to fix
                        htdocs/modules/system/admin/images/main.php on lines 1092..1104

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 294.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                            if ($id === FALSE) {
                                return FALSE;
                            } else {
                                if ($id > 0) {
                                    $id = (int) $id;
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 1 other location - About 1 day to fix
                        htdocs/modules/system/admin/images/main.php on lines 1131..1153

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 248.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 10 locations. Consider refactoring.
                        Open

                            if (is_array($groups) && !empty($groups)) {
                                $criteriaTray = new icms_db_criteria_Compo();
                                foreach ($groups as $gid) {
                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');
                                }
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 9 other locations - About 1 hr to fix
                        htdocs/modules/system/admin/images/browser.php on lines 170..178
                        htdocs/modules/system/admin/images/browser.php on lines 234..242
                        htdocs/modules/system/admin/images/browser.php on lines 250..258
                        htdocs/modules/system/admin/images/browser.php on lines 409..417
                        htdocs/modules/system/admin/images/main.php on lines 190..198
                        htdocs/modules/system/admin/images/main.php on lines 255..263
                        htdocs/modules/system/admin/images/main.php on lines 272..280
                        htdocs/modules/system/admin/images/main.php on lines 420..428
                        htdocs/modules/system/admin/images/main.php on lines 437..445

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 106.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 10 locations. Consider refactoring.
                        Open

                                if (is_array($groups) && !empty($groups)) {
                                    $criteriaTray = new icms_db_criteria_Compo();
                                    foreach ($groups as $gid) {
                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');
                                    }
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 9 other locations - About 1 hr to fix
                        htdocs/modules/system/admin/images/browser.php on lines 170..178
                        htdocs/modules/system/admin/images/browser.php on lines 234..242
                        htdocs/modules/system/admin/images/browser.php on lines 392..400
                        htdocs/modules/system/admin/images/browser.php on lines 409..417
                        htdocs/modules/system/admin/images/main.php on lines 190..198
                        htdocs/modules/system/admin/images/main.php on lines 255..263
                        htdocs/modules/system/admin/images/main.php on lines 272..280
                        htdocs/modules/system/admin/images/main.php on lines 420..428
                        htdocs/modules/system/admin/images/main.php on lines 437..445

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 106.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 10 locations. Consider refactoring.
                        Open

                            if (is_array($groups) && !empty($groups)) {
                                $criteriaTray = new icms_db_criteria_Compo();
                                foreach ($groups as $gid) {
                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');
                                }
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 9 other locations - About 1 hr to fix
                        htdocs/modules/system/admin/images/browser.php on lines 170..178
                        htdocs/modules/system/admin/images/browser.php on lines 234..242
                        htdocs/modules/system/admin/images/browser.php on lines 250..258
                        htdocs/modules/system/admin/images/browser.php on lines 392..400
                        htdocs/modules/system/admin/images/main.php on lines 190..198
                        htdocs/modules/system/admin/images/main.php on lines 255..263
                        htdocs/modules/system/admin/images/main.php on lines 272..280
                        htdocs/modules/system/admin/images/main.php on lines 420..428
                        htdocs/modules/system/admin/images/main.php on lines 437..445

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 106.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 10 locations. Consider refactoring.
                        Open

                            if (is_array($groups) && !empty($groups)) {
                                $criteriaTray = new icms_db_criteria_Compo();
                                foreach ($groups as $gid) {
                                    $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');
                                }
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 9 other locations - About 1 hr to fix
                        htdocs/modules/system/admin/images/browser.php on lines 234..242
                        htdocs/modules/system/admin/images/browser.php on lines 250..258
                        htdocs/modules/system/admin/images/browser.php on lines 392..400
                        htdocs/modules/system/admin/images/browser.php on lines 409..417
                        htdocs/modules/system/admin/images/main.php on lines 190..198
                        htdocs/modules/system/admin/images/main.php on lines 255..263
                        htdocs/modules/system/admin/images/main.php on lines 272..280
                        htdocs/modules/system/admin/images/main.php on lines 420..428
                        htdocs/modules/system/admin/images/main.php on lines 437..445

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 106.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Identical blocks of code found in 10 locations. Consider refactoring.
                        Open

                                if (is_array($groups) && !empty($groups)) {
                                    $criteriaTray = new icms_db_criteria_Compo();
                                    foreach ($groups as $gid) {
                                        $criteriaTray->add(new icms_db_criteria_Item('gperm_groupid', $gid), 'OR');
                                    }
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php and 9 other locations - About 1 hr to fix
                        htdocs/modules/system/admin/images/browser.php on lines 170..178
                        htdocs/modules/system/admin/images/browser.php on lines 250..258
                        htdocs/modules/system/admin/images/browser.php on lines 392..400
                        htdocs/modules/system/admin/images/browser.php on lines 409..417
                        htdocs/modules/system/admin/images/main.php on lines 190..198
                        htdocs/modules/system/admin/images/main.php on lines 255..263
                        htdocs/modules/system/admin/images/main.php on lines 272..280
                        htdocs/modules/system/admin/images/main.php on lines 420..428
                        htdocs/modules/system/admin/images/main.php on lines 437..445

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 106.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Avoid excessively long variable names like $imagecategoryperm_handler. Keep variable name length under 20.
                        Open

                            $imagecategoryperm_handler = icms::handler('icms_member_groupperm');

                        LongVariable

                        Since: 0.2

                        Detects when a field, formal or local variable is declared with a long name.

                        Example

                        class Something {
                            protected $reallyLongIntName = -3; // VIOLATION - Field
                            public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                $otherReallyLongName = -5; // VIOLATION - Local
                                for ($interestingIntIndex = 0; // VIOLATION - For
                                     $interestingIntIndex < 10;
                                     $interestingIntIndex++ ) {
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#longvariable

                        Avoid variables with short names like $id. Configured minimum length is 3.
                        Open

                            $id = (!is_null($imgcat_id) ? $imgcat_id : 0);

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        Avoid variables with short names like $sc. Configured minimum length is 3.
                        Open

                            $sc = 0;

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        Avoid variables with short names like $fp. Configured minimum length is 3.
                        Open

                                            $fp = @fopen($uploader->getSavedDestination(), 'rb');

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        Avoid variables with short names like $sc. Configured minimum length is 3.
                        Open

                                $sc = 0;

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        The parameter $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseParameterName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name parameters.

                        Example

                        class ClassName {
                            public function doSomething($user_name) {
                            }
                        }

                        Source

                        The parameter $image_id is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseParameterName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name parameters.

                        Example

                        class ClassName {
                            public function doSomething($user_name) {
                            }
                        }

                        Source

                        The parameter $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseParameterName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name parameters.

                        Example

                        class ClassName {
                            public function doSomething($user_name) {
                            }
                        }

                        Source

                        Avoid variables with short names like $id. Configured minimum length is 3.
                        Open

                            $id = (!is_null($imgcat_id) ? $imgcat_id : 0);

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        The parameter $imgcat_id is not named in camelCase.
                        Open

                        function showAddImgForm($imgcat_id) {
                            global $target, $type;
                            $imgcat_handler = icms::handler('icms_image_category');
                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);
                            $form->setExtra('enctype="multipart/form-data"');

                        CamelCaseParameterName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name parameters.

                        Example

                        class ClassName {
                            public function doSomething($user_name) {
                            }
                        }

                        Source

                        Avoid variables with short names like $id. Configured minimum length is 3.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        The parameter $imgcat_id is not named in camelCase.
                        Open

                        function redir($imgcat_id, $msg = NULL) {
                            global $target, $type;
                        
                            redirect_header('browser.php?op=listimg&imgcat_id=' . (int) $imgcat_id . '&target=' . $target . '&type=' . $type, 2, $msg);
                        }

                        CamelCaseParameterName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name parameters.

                        Example

                        class ClassName {
                            public function doSomething($user_name) {
                            }
                        }

                        Source

                        Avoid variables with short names like $fp. Configured minimum length is 3.
                        Open

                                $fp = @fopen(ICMS_IMANAGER_FOLDER_PATH . '/' . $image->getVar('image_name'), 'rb');

                        ShortVariable

                        Since: 0.2

                        Detects when a field, local, or parameter has a very short name.

                        Example

                        class Something {
                            private $q = 15; // VIOLATION - Field
                            public static function main( array $as ) { // VIOLATION - Formal
                                $r = 20 + $this->q; // VIOLATION - Local
                                for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                    $r += $this->q;
                                }
                            }
                        }

                        Source https://phpmd.org/rules/naming.html#shortvariable

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATRGRP, 'readgroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                                $list = $imgcat_handler->getList(array(), NULL, NULL, $imagecategory->getVar('imgcat_storetype'));

                        Space found before closing bracket of FOR loop
                        Open

                            for ($i = 0; $i < $ucount; $i++ ) {

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                        function imanager_index($imgcat_id = NULL) {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                        $changedCat = TRUE;

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                        icms_loadLanguageFile('system', 'images', TRUE);

                        Space found before closing bracket of FOR loop
                        Open

                            for ($i = 0; $i < $catcount; $i++ ) {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement($select, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATWGRP, 'writegroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                $admin = FALSE;

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                $admin = FALSE;

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATWGRP, 'writegroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                                $list = $imgcat_handler->getList(array(), NULL, NULL, $imagecategory->getVar('imgcat_storetype'));

                        Blank line found at start of control structure
                        Open

                            if (defined('_ADM_USE_RTL') && _ADM_USE_RTL) {

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                            $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                            $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement(new icms_form_elements_select_Group(_MD_IMGCATRGRP, 'readgroup', TRUE, ICMS_GROUP_ADMIN, 5, TRUE));

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;

                        Space found before closing bracket of FOR loop
                        Open

                                for ($i = 0; $i < $count; $i++ ) {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement($fname, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                        $changedCat = FALSE;

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                return FALSE;

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $images = &$image_handler->getObjects($criteria, TRUE, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                            $image->setVar('image_body', $fbinary, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                $form->addElement($select, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;

                        Expected 0 spaces before closing bracket; 1 found
                        Open

                                for ($i = 0; $i < $count; $i++ ) {

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {

                        Expected 0 spaces before closing bracket; 1 found
                        Open

                            for ($i = 0; $i < $catcount; $i++ ) {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $images = &$image_handler->getObjects($criteria, TRUE, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                $form->addElement(new icms_form_elements_Text(_IMAGENAME, 'image_nicename', 50, 255), TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                            if (($ext = strrpos($image->getVar('image_name'), '.')) !== FALSE) {

                        Expected 1 blank line at end of file; 2 found
                        Open

                        }

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                            if ($id === FALSE) {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                $admin = (!icms::$user->isAdmin(1)) ? FALSE : TRUE;

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form->addElement(new icms_form_elements_Text(_MD_IMGCATNAME, 'imgcat_name', 50, 255), TRUE);

                        Expected 0 spaces before closing bracket; 1 found
                        Open

                            for ($i = 0; $i < $ucount; $i++ ) {

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                $newimg->setVar('image_body', $fbinary, TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                                $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                header("Cache-Control: post-check=0, pre-check=0", FALSE);

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                    return FALSE;

                        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                        Open

                            $form = new icms_form_Theme(_MD_ADDIMGCAT, 'imagecat_form', 'browser.php', 'post', TRUE);

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                            $query = !empty($query) ? $query : NULL;

                        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                        Open

                                    $err = array_merge($err, $uploader->getErrors(FALSE));

                        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                        Open

                        function redir($imgcat_id, $msg = NULL) {

                        Inline control structures are not allowed
                        Open

                            if (isset($_GET['filter_post'])) unset($_GET['filter_post']);

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $extra_perm is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_nicename is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_url is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imagecategoryperm_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $extra_perm is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_storetype is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imagecategoryperm_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_weight is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_url is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_weight is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_pid is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $img_info is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_maxwidth is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_name is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_url is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_storetype is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $src_categ_path is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_storetype is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_maxheight is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_nicename is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_weight is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_nicename is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_maxsize is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_maxwidth is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_display is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imagecategoryperm_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_maxheight is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_foldername is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $img_info is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $img_info is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $src_lightbox is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_display is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $img_info is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $preview_url is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_foldername is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_maxsize is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $img_info is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $img_info is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_display is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_display is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imagecategoryperm_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_nicename is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $dest_categ_path is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_url is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imagecategoryperm_handler is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_weight is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $dest_categ_path is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_delfileok($image_id, $redir = NULL) {
                            global $target, $type;
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));
                            }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_index($imgcat_id = NULL) {
                            global $icmsTpl, $icmsConfig, $target, $type, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $preview_url is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $src_lightbox is not named in camelCase.
                        Open

                        function imanager_listimg($imgcat_id, $start = 0) {
                            global $icmsTpl, $target, $type, $query, $limit;
                        
                            if (!is_object(icms::$user)) {
                                $groups = array(ICMS_GROUP_ANONYMOUS);

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_pid is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_name is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_weight is not named in camelCase.
                        Open

                        function imanager_addcat() {
                            /* because we're using a function, the GET/POST variables are not in scope */
                            global $imgcat_pid, $imgcat_name, $imgcat_maxsize;
                            global $imgcat_maxwidth, $imgcat_maxheight, $imgcat_display;
                            global $imgcat_weight, $imgcat_storetype, $imgcat_foldername;

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_nicename is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_addfile() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $imgcat_id, $image_display, $image_weight, $image_nicename;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_weight is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $src_categ_path is not named in camelCase.
                        Open

                        function imanager_updateimage() {
                            /* because we are using a function, the GET/POST variables are not in scope */
                            global $image_id, $image_display, $image_weight, $image_nicename, $imgcat_id;
                        
                            if (!icms::$security->check()) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_weight is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function showAddImgForm($imgcat_id) {
                            global $target, $type;
                            $imgcat_handler = icms::handler('icms_image_category');
                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);
                            $form->setExtra('enctype="multipart/form-data"');

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function showAddImgForm($imgcat_id) {
                            global $target, $type;
                            $imgcat_handler = icms::handler('icms_image_category');
                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);
                            $form->setExtra('enctype="multipart/form-data"');

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $admin_url is not named in camelCase.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
                            global $target, $type;
                        
                            $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
                            if ($id === FALSE) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function showAddImgForm($imgcat_id) {
                            global $target, $type;
                            $imgcat_handler = icms::handler('icms_image_category');
                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);
                            $form->setExtra('enctype="multipart/form-data"');

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
                            global $target, $type;
                        
                            $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
                            if ($id === FALSE) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function showAddImgForm($imgcat_id) {
                            global $target, $type;
                            $imgcat_handler = icms::handler('icms_image_category');
                            $form = new icms_form_Theme(_ADDIMAGE, 'image_form', 'browser.php', 'post', TRUE);
                            $form->setExtra('enctype="multipart/form-data"');

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_weight is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $admin_url is not named in camelCase.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
                            global $target, $type;
                        
                            $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
                            if ($id === FALSE) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_handler is not named in camelCase.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
                            global $target, $type;
                        
                            $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
                            if ($id === FALSE) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $categ_path is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $admin_url is not named in camelCase.
                        Open

                        function adminNav($id = NULL, $separador = "/", $list = FALSE, $style = "style='font-weight:bold'") {
                            global $target, $type;
                        
                            $admin_url = 'browser.php?target=' . $target . '&type=' . $type;
                            if ($id === FALSE) {

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_handler is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_nicename is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $image_display is not named in camelCase.
                        Open

                        function imanager_clone() {
                            global $target, $type;
                        
                            if (!icms::$security->check()) {
                                redirect_header('browser.php?op=list&target=' . $target . '&type=' . $type, 3, implode('<br />', icms::$security->getErrors()));

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        The variable $imgcat_id is not named in camelCase.
                        Open

                        function redir($imgcat_id, $msg = NULL) {
                            global $target, $type;
                        
                            redirect_header('browser.php?op=listimg&imgcat_id=' . (int) $imgcat_id . '&target=' . $target . '&type=' . $type, 2, $msg);
                        }

                        CamelCaseVariableName

                        Since: 0.2

                        It is considered best practice to use the camelCase notation to name variables.

                        Example

                        class ClassName {
                            public function doSomething() {
                                $data_module = new DataModule();
                            }
                        }

                        Source

                        There are no issues that match your filters.

                        Category
                        Status