e107inc/e107

View on GitHub
e107_handlers/sitelinks_class.php

Summary

Maintainability
D
1 day
Test Coverage
F
55%

Avoid deeply nested control flow statements.
Open

                            if(!empty($sublinkArray))
                            {
                                $this->eLinkList['sub_'.$row['link_id']] = $sublinkArray;
                            }
Severity: Major
Found in e107_handlers/sitelinks_class.php - About 45 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if($style['linkdisplay'] != self::LINK_DISPLAY_OTHER)
            {
    
                foreach($this->eLinkList['head_menu'] as $key => $link)
                {
    Severity: Major
    Found in e107_handlers/sitelinks_class.php - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if(isset($style['sublinkdisplay']) || isset($style['subindent']) || isset($style['sublinkclass']) || isset($style['sublinkstart']) || isset($style['sublinkend']) || isset($style['subpostlink']))
              {
                  foreach($style as $key => $val)
                  {
                      $aSubStyle[$key] = vartrue($style["sub" . $key]) ? $style["sub" . $key] : $style[$key];
      Severity: Major
      Found in e107_handlers/sitelinks_class.php - About 40 mins to fix

        Avoid too many return statements within this method.
        Open

                          return FALSE;
        Severity: Major
        Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return true;
          Severity: Major
          Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return $qry[2] == $lnk[1];
            Severity: Major
            Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return TRUE;
              Severity: Major
              Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return true;        
                Severity: Major
                Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                      return TRUE;
                  Severity: Major
                  Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                  return true;
                    Severity: Major
                    Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $this->restoreKeys($sorted); // we restore the keys with this. 
                      Severity: Major
                      Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return false;
                        Severity: Major
                        Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                             return true;
                          Severity: Major
                          Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return array();    
                            Severity: Major
                            Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return true;
                              Severity: Major
                              Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return FALSE;
                                Severity: Major
                                Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return TRUE;
                                  Severity: Major
                                  Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                  return TRUE;
                                    Severity: Major
                                    Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return true;    
                                      Severity: Major
                                      Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return TRUE;
                                        Severity: Major
                                        Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                          Avoid too many return statements within this method.
                                          Open

                                                      return true;    
                                          Severity: Major
                                          Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                            Avoid too many return statements within this method.
                                            Open

                                                            return true;
                                            Severity: Major
                                            Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                              Avoid too many return statements within this method.
                                              Open

                                                              return true;
                                              Severity: Major
                                              Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                                Avoid too many return statements within this method.
                                                Open

                                                           return FALSE;
                                                Severity: Major
                                                Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                                  Avoid too many return statements within this method.
                                                  Open

                                                                      return TRUE;
                                                  Severity: Major
                                                  Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                                    Avoid too many return statements within this method.
                                                    Open

                                                                return TRUE;
                                                    Severity: Major
                                                    Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                                      Avoid too many return statements within this method.
                                                      Open

                                                                  return FALSE;
                                                      Severity: Major
                                                      Found in e107_handlers/sitelinks_class.php - About 30 mins to fix

                                                        Reference to undeclared constant \LINKSTART_HILITE
                                                        Open

                                                                    $style['linkstart_hilite'] = defined('LINKSTART_HILITE') ? LINKSTART_HILITE : "";
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_NOTIFY
                                                        Open

                                                                        'notify'         => E_32_NOTIFY,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_THEMEMANAGER
                                                        Open

                                                                        'theme_manage'     => E_32_THEMEMANAGER,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Assigning array{} to property but \e_navigation->_md5cache is \md5
                                                        Open

                                                            protected $_md5cache = array();
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PLUGMANAGER
                                                        Open

                                                                     return $this->pluginLinks(E_16_PLUGMANAGER, "standard") ;
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_MANAGE
                                                        Open

                                                                        $array_sub_functions[17][] = array(e_ADMIN.'newspost.php', LAN_MANAGE, ADLAN_3, 'H', 3, E_16_MANAGE, E_32_MANAGE);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_ADMIN
                                                        Open

                                                                    0 => array(e_ADMIN_ABS.'administrator.php', ADLAN_8,    ADLAN_9,    '3', 2, E_16_ADMIN, E_32_ADMIN),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKSEPARATOR
                                                        Open

                                                                    $style['linkseparator'] = defined('LINKSEPARATOR') ? LINKSEPARATOR : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                if((!$link_qry && !e_QUERY) && (empty($link) == FALSE) && (strpos(e_SELF,$link) !== FALSE))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_BANLIST
                                                        Open

                                                                        'banlist'         => E_32_BANLIST,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_DOCS
                                                        Open

                                                                        'docs'             => E_32_DOCS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_PREFS
                                                        Open

                                                                        'prefs'         => E_32_PREFS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_BANLIST
                                                        Open

                                                                    2 => array(e_ADMIN_ABS.'banlist.php',         ADLAN_34,    ADLAN_35,    '4', 2, E_16_BANLIST, E_32_BANLIST),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_META
                                                        Open

                                                                    16 => array(e_ADMIN_ABS.'meta.php',         ADLAN_66,    ADLAN_67,    'T', 1, E_16_META, E_32_META),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_DATAB
                                                        Open

                                                                        'database'         => E_32_DATAB,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_EMOTE
                                                        Open

                                                                        'emoticon'         => E_32_EMOTE,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_USERCLASS
                                                        Open

                                                                        'userclass'     => E_32_USERCLASS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PLUGMANAGER
                                                        Open

                                                                     return $this->pluginLinks(E_16_PLUGMANAGER, "array") ;   
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_ADPASS
                                                        Open

                                                                    1 => array(e_ADMIN_ABS.'updateadmin.php',     ADLAN_10,    ADLAN_11,    false, 2, E_16_ADPASS, E_32_ADPASS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_MENUS
                                                        Open

                                                                    15 => array(e_ADMIN_ABS.'menus.php',         ADLAN_6,    ADLAN_7,    '2', 5, E_16_MENUS, E_32_MENUS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_SEARCH
                                                        Open

                                                                    20 => array(e_ADMIN_ABS.'search.php',         LAN_SEARCH,    ADLAN_143,    'X', 1, E_16_SEARCH, E_32_SEARCH),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_USERCLASS
                                                        Open

                                                                    25 => array(e_ADMIN_ABS.'userclass2.php',     ADLAN_38,    ADLAN_39,    '4', 2, E_16_USERCLASS, E_32_USERCLASS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKDISPLAY
                                                        Open

                                                                    $style['linkdisplay'] = defined('LINKDISPLAY') ? LINKDISPLAY : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \HILITE
                                                        Open

                                                                    if(strpos($link,HILITE))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKDISPLAY
                                                        Open

                                                                if(LINKDISPLAY == self::LINK_DISPLAY_SLIDER)
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \POSTLINK
                                                        Open

                                                                    $style['postlink'] = defined('POSTLINK') ? POSTLINK : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

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

                                                                    if (e_MENU === "debug" && getperms('0'))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKCLASS_HILITE
                                                        Open

                                                                    $style['linkclass_hilite'] = defined('LINKCLASS_HILITE') ? LINKCLASS_HILITE : "";
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_POLLS
                                                        Open

                                                                        'poll'             => E_32_POLLS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_IMAGES
                                                        Open

                                                                        'image'         => E_32_IMAGES,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_USER
                                                        Open

                                                                        'users'         => E_32_USER,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_LINKS
                                                        Open

                                                                        'links'         => E_32_LINKS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_WELCOME
                                                        Open

                                                                        'wmessage'         => E_32_WELCOME 
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Property \e_navigation->_md5cache has undeclared type \md5
                                                        Open

                                                            protected $_md5cache = array();
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                if(($link_slf == e_SELF && !$link_qry) || (e_QUERY && empty($link) == FALSE && strpos(e_SELF."?".e_QUERY,$link)!== FALSE) )
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CACHE
                                                        Open

                                                                        'cache'         => E_32_CACHE,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MANAGE
                                                        Open

                                                                        $array_sub_functions[17][] = array(e_ADMIN.'newspost.php', LAN_MANAGE, ADLAN_3, 'H', 3, E_16_MANAGE, E_32_MANAGE);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CUST
                                                        Open

                                                                        'custom'         => E_32_CUST,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_IMAGES
                                                        Open

                                                                    11 => array(e_ADMIN_ABS.'image.php',         LAN_MEDIAMANAGER, LAN_MEDIAMANAGER, 'A', 5, E_16_IMAGES, E_32_IMAGES),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_SETTINGS
                                                        Open

                                                                        $array_sub_functions[17][] = array(e_ADMIN.'newspost.php?pref', LAN_PREFS, LAN_PREFS, 'H', 3, E_16_SETTINGS, E_32_SETTINGS);    
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_LINKS
                                                        Open

                                                                    12 => array(e_ADMIN_ABS.'links.php',         LAN_NAVIGATION,    ADLAN_139,    'I', 1, E_16_LINKS, E_32_LINKS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_ADPASS
                                                        Open

                                                                    1 => array(e_ADMIN_ABS.'updateadmin.php',     ADLAN_10,    ADLAN_11,    false, 2, E_16_ADPASS, E_32_ADPASS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_UPLOADS
                                                        Open

                                                                    23 => array(e_ADMIN_ABS.'upload.php',         ADLAN_72,    ADLAN_73,    'V', 3, E_16_UPLOADS, E_32_UPLOADS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CACHE
                                                        Open

                                                                    4 => array(e_ADMIN_ABS.'cache.php',         ADLAN_74,    ADLAN_75,    'C', 1, E_16_CACHE, E_32_CACHE),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_FRONT
                                                        Open

                                                                    10 => array(e_ADMIN_ABS.'frontpage.php',     ADLAN_60,    ADLAN_61,    'G', 1, E_16_FRONT, E_32_FRONT),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \SUBLINKEND
                                                        Open

                                                                    $style['sublinkend'] = defined('SUBLINKEND') ? SUBLINKEND : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

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

                                                                if(e_MENU === "debug" && getperms('0'))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_FRONT
                                                        Open

                                                                        'frontpage'     => E_32_FRONT,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_PLUGMANAGER
                                                        Open

                                                                        'plug_manage'     => E_32_PLUGMANAGER,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_ADMINLOG
                                                        Open

                                                                        'syslogs'         => E_32_ADMINLOG,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_SETTINGS
                                                        Open

                                                                        $array_sub_functions[17][] = array(e_ADMIN.'newspost.php?pref', LAN_PREFS, LAN_PREFS, 'H', 3, E_16_SETTINGS, E_32_SETTINGS);    
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_DATAB
                                                        Open

                                                                    6 => array(e_ADMIN_ABS.'db.php',             ADLAN_44,    ADLAN_45,    '0', 4, E_16_DATAB, E_32_DATAB),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKSTART
                                                        Open

                                                                    $style['linkstart'] = defined('LINKSTART') ? LINKSTART : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                        return (strpos(e_SELF, $link_slf) && e_QUERY == $link_qry);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CRON
                                                        Open

                                                                        'cron'            => E_32_CRON,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MAINTAIN
                                                        Open

                                                                        'maintain'         => E_32_MAINTAIN,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_PHP
                                                        Open

                                                                        'phpinfo'         => E_32_PHP,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CREATE
                                                        Open

                                                                        $array_sub_functions[17][] = array(e_ADMIN.'newspost.php?create', LAN_CREATE, ADLAN_2, 'H', 3, E_16_CREATE, E_32_CREATE);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_DATAB
                                                        Open

                                                                    6 => array(e_ADMIN_ABS.'db.php',             ADLAN_44,    ADLAN_45,    '0', 4, E_16_DATAB, E_32_DATAB),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_LINKS
                                                        Open

                                                                    12 => array(e_ADMIN_ABS.'links.php',         LAN_NAVIGATION,    ADLAN_139,    'I', 1, E_16_LINKS, E_32_LINKS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_WELCOME
                                                        Open

                                                                    13 => array(e_ADMIN_ABS.'wmessage.php',     ADLAN_28,    ADLAN_29,    'M', 3, E_16_WELCOME, E_32_WELCOME),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_MAINTAIN
                                                        Open

                                                                    14 => array(e_ADMIN_ABS.'ugflag.php',         ADLAN_40,    ADLAN_41,    '9', 4, E_16_MAINTAIN, E_32_MAINTAIN),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PREFS
                                                        Open

                                                                    19 => array(e_ADMIN_ABS.'prefs.php',         LAN_PREFS,     ADLAN_5,    '1', 1, E_16_PREFS, E_32_PREFS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_COMMENT
                                                        Open

                                                                    38 => array(e_ADMIN_ABS.'comment.php', LAN_COMMENTMAN, LAN_COMMENTMAN, 'B', 5, E_16_COMMENT, E_32_COMMENT),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_FILE
                                                        Open

                                                                        'filemanage'     => E_32_FILE,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_LANGUAGE
                                                        Open

                                                                        'language'         => E_32_LANGUAGE,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MENUS
                                                        Open

                                                                        'menus'         => E_32_MENUS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_NEWSFEED
                                                        Open

                                                                        'newsfeed'         => E_32_NEWSFEED,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_EURL
                                                        Open

                                                                        'eurl'             => E_32_EURL,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CUST
                                                        Open

                                                                    5 => array(e_ADMIN_ABS.'cpage.php',         ADLAN_42,    ADLAN_43,    '5|J', 3, E_16_CUST, E_32_CUST),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MENUS
                                                        Open

                                                                    15 => array(e_ADMIN_ABS.'menus.php',         ADLAN_6,    ADLAN_7,    '2', 5, E_16_MENUS, E_32_MENUS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_META
                                                        Open

                                                                    16 => array(e_ADMIN_ABS.'meta.php',         ADLAN_66,    ADLAN_67,    'T', 1, E_16_META, E_32_META),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_PHP
                                                        Open

                                                                    18 => array(e_ADMIN_ABS.'phpinfo.php',         ADLAN_68,     ADLAN_69,    '0', 20, E_16_PHP, E_32_PHP),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_PREFS
                                                        Open

                                                                    19 => array(e_ADMIN_ABS.'prefs.php',         LAN_PREFS,     ADLAN_5,    '1', 1, E_16_PREFS, E_32_PREFS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_LANGUAGE
                                                        Open

                                                                    26 => array(e_ADMIN_ABS.'language.php',     ADLAN_132,    ADLAN_133,    'L', 1, E_16_LANGUAGE, E_32_LANGUAGE),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_COMMENT
                                                        Open

                                                                        'comment'         => E_32_COMMENT,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CREDITS
                                                        Open

                                                                        'credits'         => E_32_CREDITS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_CUST
                                                        Open

                                                                    5 => array(e_ADMIN_ABS.'cpage.php',         ADLAN_42,    ADLAN_43,    '5|J', 3, E_16_CUST, E_32_CUST),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_WELCOME
                                                        Open

                                                                    13 => array(e_ADMIN_ABS.'wmessage.php',     ADLAN_28,    ADLAN_29,    'M', 3, E_16_WELCOME, E_32_WELCOME),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_ADMINLOG
                                                        Open

                                                                    21 => array(e_ADMIN_ABS.'admin_log.php',     ADLAN_155,    ADLAN_156,    'S', 4, E_16_ADMINLOG, E_32_ADMINLOG),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_NOTIFY
                                                        Open

                                                                    30 => array(e_ADMIN_ABS.'notify.php',         ADLAN_149,    ADLAN_150,    'O', 4, E_16_NOTIFY, E_32_NOTIFY),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

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

                                                                        $aSubStyle[$key] = vartrue($style["sub" . $key]) ? $style["sub" . $key] : $style[$key];
                                                        Severity: Info
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Variable $style is undeclared
                                                        Open

                                                                $sub['link_expand'] = ((isset($pref['sitelinks_expandsub']) && $pref['sitelinks_expandsub']) && empty($style['linkmainonly']) && !defined("LINKSRENDERONLYMAIN") && isset($this->eLinkList[$main_linkid]) && is_array($this->eLinkList[$main_linkid]));
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 2 (enabled) is '' but \sitelinks::hilite() takes bool|false defined at /code/e107_handlers/sitelinks_class.php:482
                                                        Open

                                                                    if ($this->hilite($linkInfo['link_url'], $style['linkstart_hilite'])== TRUE) 
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_ADMIN
                                                        Open

                                                                        'admin'         => E_32_ADMIN,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKCLASS
                                                        Open

                                                                    $style['linkclass'] = defined('LINKCLASS') ? LINKCLASS : "";
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_USER_EXTENDED
                                                        Open

                                                                        'user_extended' => E_32_USER_EXTENDED,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_CACHE
                                                        Open

                                                                    4 => array(e_ADMIN_ABS.'cache.php',         ADLAN_74,    ADLAN_75,    'C', 1, E_16_CACHE, E_32_CACHE),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \SUBLINKSTART
                                                        Open

                                                                    $style['sublinkstart'] = defined('SUBLINKSTART') ? SUBLINKSTART : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MAINTAIN
                                                        Open

                                                                    14 => array(e_ADMIN_ABS.'ugflag.php',         ADLAN_40,    ADLAN_41,    '9', 4, E_16_MAINTAIN, E_32_MAINTAIN),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \SUBLINKCLASS
                                                        Open

                                                                    $style['sublinkclass'] = defined('SUBLINKCLASS') ? SUBLINKCLASS : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_NEWS
                                                        Open

                                                                    17 => array(e_ADMIN_ABS.'newspost.php',     ADLAN_0,    ADLAN_1,    'H|N|7|H0|H1|H2|H3|H4|H5', 3, E_16_NEWS, E_32_NEWS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_INSPECT
                                                        Open

                                                                    29 => array(e_ADMIN_ABS.'fileinspector.php', ADLAN_147, ADLAN_148,    'Y', 4, E_16_INSPECT, E_32_INSPECT),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_EMOTE
                                                        Open

                                                                    8 => array(e_ADMIN_ABS.'emoticon.php',         ADLAN_58,    ADLAN_59,    'F', 1, E_16_EMOTE, E_32_EMOTE),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PHP
                                                        Open

                                                                    18 => array(e_ADMIN_ABS.'phpinfo.php',         ADLAN_68,     ADLAN_69,    '0', 20, E_16_PHP, E_32_PHP),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_SEARCH
                                                        Open

                                                                    20 => array(e_ADMIN_ABS.'search.php',         LAN_SEARCH,    ADLAN_143,    'X', 1, E_16_SEARCH, E_32_SEARCH),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_ADMINLOG
                                                        Open

                                                                    21 => array(e_ADMIN_ABS.'admin_log.php',     ADLAN_155,    ADLAN_156,    'S', 4, E_16_ADMINLOG, E_32_ADMINLOG),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_UPLOADS
                                                        Open

                                                                    23 => array(e_ADMIN_ABS.'upload.php',         ADLAN_72,    ADLAN_73,    'V', 3, E_16_UPLOADS, E_32_UPLOADS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MAIL
                                                        Open

                                                                    27 => array(e_ADMIN_ABS.'mailout.php',         ADLAN_136,    ADLAN_137,    'W', 2, E_16_MAIL, E_32_MAIL),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                if(!preg_match("/all|item|cat|list/", e_QUERY) && (strpos(e_SELF, str_replace("../", "",$link)) !== false))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_ADPASS
                                                        Open

                                                                        'admin_pass'     => E_32_ADPASS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_ADMIN
                                                        Open

                                                                    0 => array(e_ADMIN_ABS.'administrator.php', ADLAN_8,    ADLAN_9,    '3', 2, E_16_ADMIN, E_32_ADMIN),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_BANLIST
                                                        Open

                                                                    2 => array(e_ADMIN_ABS.'banlist.php',         ADLAN_34,    ADLAN_35,    '4', 2, E_16_BANLIST, E_32_BANLIST),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_LANGUAGE
                                                        Open

                                                                    26 => array(e_ADMIN_ABS.'language.php',     ADLAN_132,    ADLAN_133,    'L', 1, E_16_LANGUAGE, E_32_LANGUAGE),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

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

                                                                $sub['link_expand'] = ((isset($pref['sitelinks_expandsub']) && $pref['sitelinks_expandsub']) && empty($style['linkmainonly']) && !defined("LINKSRENDERONLYMAIN") && isset($this->eLinkList[$main_linkid]) && is_array($this->eLinkList[$main_linkid]));
                                                        Severity: Info
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                $link_match = (empty($tmp[0])) ? "": strpos(e_SELF,$tmp[0]);    // e_SELF is the actual displayed page
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_INSPECT
                                                        Open

                                                                        'fileinspector' => E_32_INSPECT,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_SEARCH
                                                        Open

                                                                        'search'         => E_32_SEARCH,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_NEWS
                                                        Open

                                                                    17 => array(e_ADMIN_ABS.'newspost.php',     ADLAN_0,    ADLAN_1,    'H|N|7|H0|H1|H2|H3|H4|H5', 3, E_16_NEWS, E_32_NEWS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_THEMEMANAGER
                                                        Open

                                                                    22 => array(e_ADMIN_ABS.'theme.php',         ADLAN_140,    ADLAN_141,    '1|TMP', 5, E_16_THEMEMANAGER, E_32_THEMEMANAGER),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_USER
                                                        Open

                                                                    24 => array(e_ADMIN_ABS.'users.php',         ADLAN_36,    ADLAN_37,    '4|U0|U1|U2|U3', 2, E_16_USER, E_32_USER),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \LINKEND
                                                        Open

                                                                    $style['linkend'] = defined('LINKEND') ? LINKEND : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \PRELINK
                                                        Open

                                                                    $style['prelink'] = defined('PRELINK') ? PRELINK : '';
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_META
                                                        Open

                                                                        'meta'             => E_32_META,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_NEWS
                                                        Open

                                                                        'news'             => E_32_NEWS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                    if(!preg_match("/all|item|cat|list/", e_QUERY) && (empty($link) == false) && (strpos(e_SELF, str_replace("../", "",$link)) !== false))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_IMAGES
                                                        Open

                                                                    11 => array(e_ADMIN_ABS.'image.php',         LAN_MEDIAMANAGER, LAN_MEDIAMANAGER, 'A', 5, E_16_IMAGES, E_32_IMAGES),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MAIN
                                                        Open

                                                                        'main'             => E_32_MAIN,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Suspicious array access to nullable ?array{link_function:mixed,link_sub:,link_identifier:mixed}|?array{link_identifier:mixed,link_sub:}|?array{link_identifier:string}|?array{link_sub:}|?mixed
                                                        Open

                                                                            $this->compile($inArray, $val['link_sub'], $val['link_id']);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_MAIL
                                                        Open

                                                                        'mail'             => E_32_MAIL,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_UPLOADS
                                                        Open

                                                                        'upload'         => E_32_UPLOADS,
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_CREATE
                                                        Open

                                                                        $array_sub_functions[17][] = array(e_ADMIN.'newspost.php?create', LAN_CREATE, ADLAN_2, 'H', 3, E_16_CREATE, E_32_CREATE);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_EMOTE
                                                        Open

                                                                    8 => array(e_ADMIN_ABS.'emoticon.php',         ADLAN_58,    ADLAN_59,    'F', 1, E_16_EMOTE, E_32_EMOTE),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_FRONT
                                                        Open

                                                                    10 => array(e_ADMIN_ABS.'frontpage.php',     ADLAN_60,    ADLAN_61,    'G', 1, E_16_FRONT, E_32_FRONT),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_THEMEMANAGER
                                                        Open

                                                                    22 => array(e_ADMIN_ABS.'theme.php',         ADLAN_140,    ADLAN_141,    '1|TMP', 5, E_16_THEMEMANAGER, E_32_THEMEMANAGER),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_USER
                                                        Open

                                                                    24 => array(e_ADMIN_ABS.'users.php',         ADLAN_36,    ADLAN_37,    '4|U0|U1|U2|U3', 2, E_16_USER, E_32_USER),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Suspicious array access to nullable ?array{link_function:mixed,link_sub:array|array{}|mixed|string|true,link_identifier:mixed}|?array{link_identifier:mixed,link_sub:array|array{}|mixed|string|true}|?array{link_identifier:string}|?array{link_sub:array|array{}|mixed|string|true}|?mixed
                                                        Open

                                                                            $this->compile($inArray, $val['link_sub'], $val['link_id']);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_USER_EXTENDED
                                                        Open

                                                                    28 => array(e_ADMIN_ABS.'users_extended.php', ADLAN_78, ADLAN_79,    '4', 2, E_16_USER_EXTENDED, E_32_USER_EXTENDED),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_NOTIFY
                                                        Open

                                                                    30 => array(e_ADMIN_ABS.'notify.php',         ADLAN_149,    ADLAN_150,    'O', 4, E_16_NOTIFY, E_32_NOTIFY),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                        Open

                                                                        if(strpos(e_REQUEST_URL, $match) !== false)
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_USERCLASS
                                                        Open

                                                                    25 => array(e_ADMIN_ABS.'userclass2.php',     ADLAN_38,    ADLAN_39,    '4', 2, E_16_USERCLASS, E_32_USERCLASS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_PLUGMANAGER
                                                        Open

                                                                    33 => array(e_ADMIN_ABS.'plugin.php',         ADLAN_98,    ADLAN_99,    'Z', 5 , E_16_PLUGMANAGER, E_32_PLUGMANAGER),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_E107
                                                        Open

                                                                    36 => array(e_ADMIN_ABS.'credits.php', LAN_CREDITS, LAN_CREDITS, false, 20, E_16_E107, E_32_E107),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PLUGMANAGER
                                                        Open

                                                                    $the_icon =  ($iconSize == E_16_PLUGMANAGER) ?  $plug_value['icon'] : $plug_value['icon_32'];
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 3 (subject) is int but \str_replace() takes array|string
                                                        Open

                                                                    $rid = str_replace(array(' ', '_'), '-', $act).($id ? "-{$id}" : '');
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Returning type null but admin() is declared to return string
                                                        Open

                                                                    return $ret;
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Suspicious type array|true of a variable or expression used to build a string. (Expected type to be able to cast to a string)
                                                        Open

                                                                            return '<div class="dropdown-menu">'.$text.'</div>'; // @todo use template?
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_MAIL
                                                        Open

                                                                    27 => array(e_ADMIN_ABS.'mailout.php',         ADLAN_136,    ADLAN_137,    'W', 2, E_16_MAIL, E_32_MAIL),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_INSPECT
                                                        Open

                                                                    29 => array(e_ADMIN_ABS.'fileinspector.php', ADLAN_147, ADLAN_148,    'Y', 4, E_16_INSPECT, E_32_INSPECT),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_DOCS
                                                        Open

                                                                    34 => array(e_ADMIN_ABS.'docs.php',         ADLAN_12,    ADLAN_13,    false,    20, E_16_DOCS, E_32_DOCS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        When fetching an array index from a value of type array|array{icon:mixed|string}|array{key:string}, found an array index of type 6, but expected the index to be of type string
                                                        Open

                                                                        $val['icon_32'] = $val[6];
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_USER_EXTENDED
                                                        Open

                                                                    28 => array(e_ADMIN_ABS.'users_extended.php', ADLAN_78, ADLAN_79,    '4', 2, E_16_USER_EXTENDED, E_32_USER_EXTENDED),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_E107
                                                        Open

                                                                    36 => array(e_ADMIN_ABS.'credits.php', LAN_CREDITS, LAN_CREDITS, false, 20, E_16_E107, E_32_E107),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        When fetching an array index from a value of type array|array{icon:mixed|string}|array{icon_32:mixed|string}|array{key:string}|array{title:mixed|string}, found an array index of type 0, but expected the index to be of type string
                                                        Open

                                                                        $val['link'] = $val[0];
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Suspicious array access to nullable ?array{link_function:mixed,link_sub:,link_identifier:mixed}|?array{link_identifier:mixed,link_sub:}|?array{link_identifier:string}|?array{link_sub:}|?mixed
                                                        Open

                                                                        if( $val['link_id'] != $pid)
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Returning type null but admin() is declared to return string
                                                        Open

                                                                    return null;
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 1 (array_arg) is string but \sort() takes array
                                                        Open

                                                                    sort($uclist, SORT_NUMERIC);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_EURL
                                                        Open

                                                                    32 => array(e_ADMIN_ABS.'eurl.php',         ADLAN_159,    ADLAN_160,    'K', 1, E_16_EURL, E_32_EURL),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_DOCS
                                                        Open

                                                                    34 => array(e_ADMIN_ABS.'docs.php',         ADLAN_12,    ADLAN_13,    false,    20, E_16_DOCS, E_32_DOCS),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_COMMENT
                                                        Open

                                                                    38 => array(e_ADMIN_ABS.'comment.php', LAN_COMMENTMAN, LAN_COMMENTMAN, 'B', 5, E_16_COMMENT, E_32_COMMENT),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_CRON
                                                        Open

                                                                    31 => array(e_ADMIN_ABS.'cron.php',         ADLAN_157,    ADLAN_158,    'U', 4, E_16_CRON, E_32_CRON),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 5 (sub_link) is true but \e_navigation::admin() takes array|false defined at /code/e107_handlers/sitelinks_class.php:1251
                                                        Open

                                                                        $replace['SUB_MENU'] .= $this->admin(false, $active_page, $e107_vars[$act]['sub'], $tmpl, true, (isset($e107_vars[$act]['sort']) ? $e107_vars[$act]['sort'] : $sortlist));
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 1 (id) is null but \e_render::setUniqueId() takes string defined at /code/e107_handlers/e_render_class.php:212
                                                        Open

                                                                $ns->setUniqueId(null);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
                                                        Open

                                                                $dbLink = e_HTTP. e107::getParser()->replaceConstants($data['link_url'], TRUE, TRUE);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        When fetching an array index from a value of type array|array{icon:mixed|string}|array{icon_32:mixed|string}|array{key:string}, found an array index of type 1, but expected the index to be of type string
                                                        Open

                                                                        $val['title'] = $val[1];
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

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

                                                                    if (isset($e107_vars[$act]['perm']) && $e107_vars[$act]['perm'] !== false && !getperms($e107_vars[$act]['perm'])) // check perms first.
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

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

                                                                if (getperms($perms))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PLUGMANAGER
                                                        Open

                                                                $merged = array_merge($array_functions_assoc, $this->pluginLinks(E_16_PLUGMANAGER, "array")); 
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 3 (subject) is int but \str_replace() takes array|string
                                                        Open

                                                                    || (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act))
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Suspicious argument null for an echo/print statement
                                                        Open

                                                                echo $ret;
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
                                                        Open

                                                                $data         = $sql->retrieve($query,true);
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Argument 1 (title) is false but \e_navigation::admin() takes string defined at /code/e107_handlers/sitelinks_class.php:1251
                                                        Open

                                                                        $replace['SUB_MENU'] .= $this->admin(false, $active_page, $e107_vars[$act]['sub'], $tmpl, true, (isset($e107_vars[$act]['sort']) ? $e107_vars[$act]['sort'] : $sortlist));
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Call to undeclared method \e_shortcode::setDepth
                                                        Open

                                                                    $sc->setDepth(0);
                                                        Severity: Critical
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_CRON
                                                        Open

                                                                    31 => array(e_ADMIN_ABS.'cron.php',         ADLAN_157,    ADLAN_158,    'U', 4, E_16_CRON, E_32_CRON),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PLUGMANAGER
                                                        Open

                                                            function pluginLinks($iconSize = E_16_PLUGMANAGER, $linkStyle = 'adminb')
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Default value for array $sub_link can't be false
                                                        Open

                                                            function admin($title, $active_page, $e107_vars, $tmpl = array(), $sub_link = false, $sortlist = false)
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_32_EURL
                                                        Open

                                                                    32 => array(e_ADMIN_ABS.'eurl.php',         ADLAN_159,    ADLAN_160,    'K', 1, E_16_EURL, E_32_EURL),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Reference to undeclared constant \E_16_PLUGMANAGER
                                                        Open

                                                                    33 => array(e_ADMIN_ABS.'plugin.php',         ADLAN_98,    ADLAN_99,    'Z', 5 , E_16_PLUGMANAGER, E_32_PLUGMANAGER),
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        When fetching an array index from a value of type array|array{key:string}, found an array index of type 5, but expected the index to be of type string
                                                        Open

                                                                        $val['icon'] = $val[5];
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        Suspicious array access to nullable ?array{link_function:mixed,link_sub:array|array{}|mixed|string|true,link_identifier:mixed}|?array{link_identifier:mixed,link_sub:array|array{}|mixed|string|true}|?array{link_identifier:string}|?array{link_sub:array|array{}|mixed|string|true}|?mixed
                                                        Open

                                                                        if( $val['link_id'] != $pid)
                                                        Severity: Minor
                                                        Found in e107_handlers/sitelinks_class.php by phan

                                                        There are no issues that match your filters.

                                                        Category
                                                        Status