ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/preferences/main.php

Summary

Maintainability
F
1 wk
Test Coverage

File main.php has 559 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// $Id: main.php 12455 2014-06-24 09:30:49Z sato-san $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
Severity: Major
Found in htdocs/modules/system/admin/preferences/main.php - About 1 day to fix

    Avoid deeply nested control flow statements.
    Open

                        if (!$lang_updated && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'language') {
                            $icmsConfig['language'] = ${$config->getVar('conf_name')};
                            $lang_updated = TRUE;
                        }
    Severity: Major
    Found in htdocs/modules/system/admin/preferences/main.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if (!$theme_updated && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'theme_set') {
                              $member_handler = icms::handler('icms_member');
                              $member_handler->updateUsersByField('theme', ${$config->getVar('conf_name')});
                              $theme_updated = TRUE;
                          }
      Severity: Major
      Found in htdocs/modules/system/admin/preferences/main.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if (!$encryption_updated && $config->getVar('conf_catid') == ICMS_CONF_USER && $config->getVar('conf_name') == 'enc_type') {
                                if ($icmsConfig['closesite'] !== 1) {
                                    $member_handler = icms::handler('icms_member');
                                    $member_handler->updateUsersByField('pass_expired', 1);
                                    $encryption_updated = TRUE;
        Severity: Major
        Found in htdocs/modules/system/admin/preferences/main.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if (!$purifier_style_updated
                                  && $config->getVar('conf_catid') == ICMS_CONF_PURIFIER
                                  && $config->getVar('conf_name') == 'purifier_Filter_ExtractStyleBlocks'
                                  ) {
                                  if ($config->getVar('purifier_Filter_ExtractStyleBlocks') == 1) {
          Severity: Major
          Found in htdocs/modules/system/admin/preferences/main.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if (! $startmod_updated && $new_value != '--' && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'startpage') {
                                    $moduleperm_handler = icms::handler('icms_member_groupperm');
                                    $module_handler = icms::handler('icms_module');
            
                                    foreach ($new_value as $k => $v) {
            Severity: Major
            Found in htdocs/modules/system/admin/preferences/main.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if (! $tpl_updated && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'template_set') {
                                      // clear cached/compiled files and regenerate them if default theme has been changed
                                      if ($icmsConfig['template_set'] != ${$config->getVar('conf_name')}) {
                                          $newtplset = ${$config->getVar('conf_name')};
                                          // clear all compiled and cachedfiles
              Severity: Major
              Found in htdocs/modules/system/admin/preferences/main.php - About 45 mins to fix

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($dirlist);

                Call to method addElement from undeclared class \icms_form_elements_Tray
                Open

                                        $ele->addElement($f);

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Reference to undeclared constant \_SECONDS
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                    $ele->addOptionArray($content_handler->getContentList());

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                            $form->addElement(new icms_form_elements_Hidden('redirect', ICMS_MODULES_URL . '/' . $module->getVar('dirname') . '/' . $module->getInfo('adminindex')));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                        $ele = new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), 5, 50);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $options = & $config_handler->getConfigOptions(new icms_db_criteria_Item('conf_id', $config[$i]->getVar('conf_id')));

                Reference to undeclared constant \_GO
                Open

                        $form->addElement(new icms_form_elements_Button('', 'button', _GO, 'submit'));

                Reference to undeclared constant \_PREFERENCES
                Open

                            echo '<div class="CPbigTitle" style="background-image: url(' . ICMS_MODULES_URL . '/system/admin/preferences/images/preferences_big.png);">' . $modlink . ' &raquo; ' . _PREFERENCES . '</div>';

                Reference to static property preload from undeclared class \icms
                Open

                                icms::$preload->triggerEvent('savingSystemAdminPreferencesItem', array((int) $config->getVar('conf_catid'), $config->getVar('conf_name'), $config->getVar('conf_value')));

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                                    $icmsAdminTpl->template_touch($found[0]->getVar('tpl_id'));

                Variable $session_name is undeclared
                Open

                        if (! empty($use_mysession) && $icmsConfig['use_mysession'] == 0 && $session_name != '') {

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'),  $config[$i]->getConfValueForOutput());

                Call to method addOption from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOption($optval, $optkey);

                Reference to undeclared constant \_DAY
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Reference to undeclared constant \_HOUR
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Reference to static property user from undeclared class \icms
                Open

                if (! is_object(icms::$user)

                Call to method __construct from undeclared class \icms_form_elements_Password
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));

                Variable $icmsModule is undeclared
                Open

                    || ! is_object($icmsModule)

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Hidden($config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Variable $icmsModule is undeclared
                Open

                    || ! icms::$user->isAdmin($icmsModule->getVar('mid'))

                Call to method handler from undeclared class \icms
                Open

                        $config_handler = icms::handler('icms_config');

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                            ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50)

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                        $ele = new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                                    $form->addElement(new icms_form_elements_Hidden('_old_theme', $config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                        : new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                Call to method getListByType from undeclared class \icms_plugins_EditorHandler
                Open

                                    $dirlist = icms_plugins_EditorHandler::getListByType($type);

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($dirlist);

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                            $hidden = new icms_form_elements_Hidden('conf_ids[]', $config[$i]->getVar('conf_id'));

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($dirlist);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                            $form->addElement(new icms_form_elements_Hidden('redirect', ICMS_MODULES_URL . '/' . $module->getVar('dirname') . '/' . $module->getInfo('adminindex')));

                Call to method addOption from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOption($optval, $optkey);

                Call to method getDirList from undeclared class \icms_core_Filesystem
                Open

                                    $dirlist = icms_core_Filesystem::getDirList(ICMS_PLUGINS_PATH . '/textsanitizer/');

                Call to method addOption from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOption($key, $name);

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Text($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($dirlist);

                Call to method __construct from undeclared class \icms_db_criteria_Compo
                Open

                                    $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_status', 1));

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

                            echo '<div class="CPbigTitle" style="background-image: url(' . ICMS_MODULES_URL . '/' . $module->getVar('dirname') . '/' . $iconbig . ')">' . $modlink . ' &raquo; ' . _PREFERENCES . '</div>';

                Call to method __construct from undeclared class \icms_form_elements_select_Group
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                Reference to static property security from undeclared class \icms
                Open

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

                Call to method handler from undeclared class \icms
                Open

                                    $module_handler = icms::handler('icms_module');

                Reference to undeclared constant \_MINUTE
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Reference to undeclared class \icms_view_Tpl in callable \icms_view_Tpl::clear_all_cache
                Open

                        register_shutdown_function(array(&$xoopsTpl, 'clear_all_cache'));

                Reference to undeclared constant \_SECONDS
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                                    $ele = new icms_form_elements_Hidden($config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Hidden($config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Reference to undeclared constant \_NOCACHE
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Colorpicker($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                        $ele =($config[$i]->getVar('conf_value') != '') ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);

                Call to method __construct from undeclared class \icms_form_elements_Text
                Open

                                    $ele = new icms_form_elements_Text($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Colorpicker($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $options = & $config_handler->getConfigOptions(new icms_db_criteria_Item('conf_id', $config[$i]->getVar('conf_id')));

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                                    $ele = new icms_form_elements_Hidden($config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_Password
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Reference to undeclared constant \ICMS_CONF
                Open

                                    if (! $tpl_updated && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'template_set') {

                Variable $conf_ids is undeclared
                Open

                        $count = count($conf_ids);

                Call to method handler from undeclared class \icms
                Open

                            $config_handler = icms::handler('icms_config');

                Call to method __construct from undeclared class \icms_view_Tpl
                Open

                $icmsAdminTpl = new icms_view_Tpl();

                Call to method handler from undeclared class \icms
                Open

                        $confcat_handler = icms::handler('icms_config_category');

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                        $ele = new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method addOption from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOption($option, $option);

                Call to method addOption from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOption($optval, $optkey);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 8, TRUE);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                            $selform = new icms_form_elements_Select($modules[$mid]->getVar('name'), $config[$i]->getVar('conf_name') . "[$mid]", $c_val);

                Call to method __construct from undeclared class \icms_form_elements_Password
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                                    $ele = new icms_form_elements_Hidden($config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                        $config = $config_handler->getConfigs(new icms_db_criteria_Item('conf_modid', $mod));

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                        $ele =($config[$i]->getVar('conf_value') != '') ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);

                Reference to undeclared constant \_YES
                Open

                                    $ele = new icms_form_elements_Radioyn($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);

                Call to method __construct from undeclared class \icms_form_elements_Colorpicker
                Open

                                    $ele = new icms_form_elements_Colorpicker($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method template_touch from undeclared class \icms_view_Tpl
                Open

                                                    $icmsAdminTpl->template_touch($dtemplates[$i]->getVar('tpl_id'));

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                            : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                                    $form->addElement(new icms_form_elements_Hidden('_old_theme', $config[$i]->getConfValueForOutput()));

                Reference to undeclared constant \_MINUTES
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                        $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($arr);

                Call to method __construct from undeclared class \icms_form_elements_Radioyn
                Open

                                    $ele = new icms_form_elements_Radioyn($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);

                Call to method __construct from undeclared class \icms_form_elements_Button
                Open

                        $form->addElement(new icms_form_elements_Button('', 'button', _GO, 'submit'));

                Call to method display from undeclared class \icms_form_Theme
                Open

                        $form->display();

                Reference to undeclared constant \ICMS_CONF
                Open

                                    if (!$theme_updated && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'theme_set') {

                Call to method handler from undeclared class \icms
                Open

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

                Call to method __construct from undeclared class \icms_db_criteria_Compo
                Open

                        $criteria = new icms_db_criteria_Compo();

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                            ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50)

                Call to method getThemesList from undeclared class \icms_view_theme_Factory
                Open

                                        ? icms_view_theme_Factory::getThemesList()

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($dirlist);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method handler from undeclared class \icms
                Open

                                    $tplset_handler = icms::handler('icms_view_template_set');

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('hasmain', 1));

                Call to method __construct from undeclared class \icms_form_elements_select_User
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                Reference to undeclared constant \_HOUR
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Call to method getFileList from undeclared class \icms_core_Filesystem
                Open

                                    $dirlist = str_replace('.php', '', icms_core_Filesystem::getFileList(ICMS_LIBRARIES_PATH . '/geshi/geshi/', '', array('php')));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Text($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method addElement from undeclared class \icms_form_Theme
                Open

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

                Call to method handler from undeclared class \icms
                Open

                                        $member_handler = icms::handler('icms_member');

                Call to method handler from undeclared class \icms
                Open

                                            $member_handler = icms::handler('icms_member');

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                            ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50)

                Call to method getAdminThemesList from undeclared class \icms_view_theme_Factory
                Open

                                        : icms_view_theme_Factory::getAdminThemesList();

                Call to method __construct from undeclared class \icms_form_elements_Dhtmltextarea
                Open

                                        $ele = new icms_form_elements_Dhtmltextarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method handler from undeclared class \icms
                Open

                                    $module_handler = icms::handler('icms_module');

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                        $ele = new icms_form_elements_Dhtmltextarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_select_User
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                Reference to undeclared constant \_HOURS
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Reference to undeclared constant \_NO
                Open

                                    $ele = new icms_form_elements_Radioyn($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);

                Call to method __construct from undeclared class \icms_form_elements_select_Image
                Open

                                    $ele = new icms_form_elements_select_Image($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                                    $form->addElement(new icms_form_elements_Hidden('_old_theme', $config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_elements_Button
                Open

                        $form->addElement(new icms_form_elements_Button('', 'button', _GO, 'submit'));

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $criteria->add(new icms_db_criteria_Item('isactive', 1));

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                        $form->addElement(new icms_form_elements_Button('', 'button', _GO, 'submit'));

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $criteria->add(new icms_db_criteria_Item('page_url', '%*', 'NOT LIKE'));

                Call to method __construct from undeclared class \icms_form_elements_Tray
                Open

                                    $ele = new icms_form_elements_Tray($title, '<br />');

                Reference to undeclared constant \_GO
                Open

                        $form->addElement(new icms_form_elements_Button('', 'button', _GO, 'submit'));

                Call to method addElement from undeclared class \icms_form_elements_Tray
                Open

                                            $ele->addElement($selform);

                Reference to undeclared constant \_NO
                Open

                                    $ele = new icms_form_elements_Radioyn($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);

                Reference to undeclared constant \_MINUTE
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method display from undeclared class \icms_form_Theme
                Open

                        $form->display();

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method handler from undeclared class \icms
                Open

                        $module_handler = icms::handler('icms_module');

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

                            $hidden = new icms_form_elements_Hidden('conf_ids[]', $config[$i]->getVar('conf_id'));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                        $ele = new icms_form_elements_Dhtmltextarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), 5, 50);

                Call to method getListByType from undeclared class \icms_plugins_EditorHandler
                Open

                                    $dirlist = icms_plugins_EditorHandler::getListByType();

                Reference to undeclared constant \ICMS_CONF_PURIFIER
                Open

                                        && $config->getVar('conf_catid') == ICMS_CONF_PURIFIER

                Call to method __construct from undeclared class \icms_form_elements_select_User
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                Reference to undeclared constant \ICMS_CONF
                Open

                                    if (!$lang_updated && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'language') {

                Call to method handler from undeclared class \icms
                Open

                                            $tplfile_handler = icms::handler('icms_view_template_file');

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_status', 1));

                Reference to undeclared constant \_MD_AM_DBUPDATED
                Open

                            redirect_header($redirect, 2, _MD_AM_DBUPDATED);

                Reference to undeclared constant \_MD_AM_DBUPDATED
                Open

                            redirect_header('admin.php?fct=preferences', 2, _MD_AM_DBUPDATED);

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $modules = $module_handler->getObjects(new icms_db_criteria_Item('hasmain', 1), TRUE);

                Call to method __construct from undeclared class \icms_form_elements_Label
                Open

                                        $ele = new icms_form_elements_Label($title, _MD_AM_NOMODULE);

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                        $ele = new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), 5, 50);

                Call to method __construct from undeclared class \icms_form_elements_Dhtmltextarea
                Open

                                        $ele = new icms_form_elements_Dhtmltextarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), 5, 50);

                Reference to undeclared constant \ICMS_CONF_USER
                Open

                                    if (!$encryption_updated && $config->getVar('conf_catid') == ICMS_CONF_USER && $config->getVar('conf_name') == 'enc_type') {

                Reference to static property preload from undeclared class \icms
                Open

                        icms::$preload->triggerEvent('afterSaveSystemAdminPreferencesItems', $saved_config_items);

                Reference to static property user from undeclared class \icms
                Open

                    || ! icms::$user->isAdmin($icmsModule->getVar('mid'))

                Call to method __construct from undeclared class \icms_form_elements_Textarea
                Open

                                            : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                                    $form->addElement(new icms_form_elements_Hidden('_old_theme', $config[$i]->getConfValueForOutput()));

                Call to method handler from undeclared class \icms
                Open

                                    $member_handler = icms::handler('icms_member');

                Call to method __construct from undeclared class \icms_form_elements_select_Group
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                Reference to undeclared constant \_WEEK
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Call to method __construct from undeclared class \icms_form_elements_Colorpicker
                Open

                                    $ele = new icms_form_elements_Colorpicker($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

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

                                        asort($dirlist);

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                            $form->addElement($hidden);

                Call to method handler from undeclared class \icms
                Open

                        $config_handler = icms::handler('icms_config');

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                        $ele =($config[$i]->getVar('conf_value') != '') ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                        $ele =($config[$i]->getVar('conf_value') != '') ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);

                Call to method __construct from undeclared class \icms_form_elements_select_Group
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                Call to method __construct from undeclared class \icms_form_elements_select_User
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                        $criteria->add(new icms_db_criteria_Item('conf_modid', 0));

                Call to method add from undeclared class \icms_db_criteria_Compo
                Open

                        $criteria->add(new icms_db_criteria_Item('conf_catid', $confcat_id));

                Call to method __construct from undeclared class \icms_form_elements_Radioyn
                Open

                                    $ele = new icms_form_elements_Radioyn($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);

                Reference to undeclared constant \_YES
                Open

                                    $ele = new icms_form_elements_Radioyn($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), _YES, _NO);

                Call to method __construct from undeclared class \icms_form_elements_select_Timezone
                Open

                                    $ele = new icms_form_elements_select_Timezone($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                        $f = new icms_form_elements_Select('<b>' . $v . ':</b>', $config[$i]->getVar('conf_name') . '[' . $k . ']', $value[$k]);

                Reference to undeclared constant \_HOURS
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Reference to undeclared constant \_PREFERENCES
                Open

                            echo '<div class="CPbigTitle" style="background-image: url(' . ICMS_MODULES_URL . '/' . $module->getVar('dirname') . '/' . $iconbig . ')">' . $modlink . ' &raquo; ' . _PREFERENCES . '</div>';

                Call to method handler from undeclared class \icms
                Open

                                        $module_handler = icms::handler('icms_module');

                Variable $session_expire is undeclared
                Open

                            icms_setCookieVar($session_name, session_id(), time() +(60 *(int) $session_expire));

                Call to method add from undeclared class \icms_db_criteria_Compo
                Open

                                    $criteria->add(new icms_db_criteria_Item('page_url', '%*', 'NOT LIKE'));

                Reference to undeclared constant \_NOCACHE
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOptionArray($dirlist);

                Call to method __construct from undeclared class \icms_view_Tpl
                Open

                        $xoopsTpl = new icms_view_Tpl();

                Reference to undeclared constant \ICMS_CONF
                Open

                                    if (! $startmod_updated && $new_value != '--' && $config->getVar('conf_catid') == ICMS_CONF && $config->getVar('conf_name') == 'startpage') {

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

                            $column[] = constant($confcat->getVar('confcat_name'));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                            ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50)

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $options = $config_handler->getConfigOptions(new icms_db_criteria_Item('conf_id', $config[$i]->getVar('conf_id')));

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                        ? new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput())

                Call to method add from undeclared class \icms_db_criteria_Compo
                Open

                                    $criteria->add(new icms_db_criteria_Item('isactive', 1));

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                        $f->addOptionArray($list);

                Reference to undeclared constant \_DAYS
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Reference to undeclared constant \_DAY
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Reference to undeclared constant \_DAYS
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method addElement from undeclared class \icms_form_Theme
                Open

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

                Call to method __construct from undeclared class \icms_form_Theme
                Open

                        $form = new icms_form_Theme(_MD_AM_MODCONFIG, 'pref_form', 'admin.php?fct=preferences', 'post', TRUE);

                Call to method __construct from undeclared class \icms_form_elements_Text
                Open

                                    $ele = new icms_form_elements_Text($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method __construct from undeclared class \icms_form_Theme
                Open

                        $form = new icms_form_Theme(constant($confcat->getVar('confcat_name')), 'pref_form', 'admin.php?fct=preferences', 'post', TRUE);

                Call to method add from undeclared class \icms_db_criteria_Compo
                Open

                        $criteria->add(new icms_db_criteria_Item('conf_modid', 0));

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

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

                Call to method __construct from undeclared class \icms_form_elements_Select
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 1, FALSE);

                Call to method clear_compiled_tpl from undeclared class \icms_view_Tpl
                Open

                                            $xoopsTpl->clear_compiled_tpl();

                Call to method handler from undeclared class \icms
                Open

                                    $page_handler = icms::handler('icms_data_page');

                Call to method __construct from undeclared class \icms_form_elements_Tray
                Open

                                        $ele = new icms_form_elements_Tray($title, '<br />');

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                            $selform->addOptionArray($cache_options);

                Reference to undeclared constant \_WEEK
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                            $form->addElement($ele);

                Call to method addOption from undeclared class \icms_form_elements_Select
                Open

                                        $ele->addOption($optval, $optkey);

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Hidden($config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                            $form->addElement($ele);

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                            $form->addElement($hidden);

                Variable $session_name is undeclared
                Open

                            icms_setCookieVar($session_name, session_id(), time() +(60 *(int) $session_expire));

                Reference to undeclared constant \_EDIT
                Open

                            echo '<li><a href="admin.php?fct=preferences&amp;op=show&amp;confcat_id=' . $confcat['id'] . '" title="' . _EDIT . ' ' . $confcat['name'] . '">' . $confcat['name'] . '</a></li>';

                Call to method handler from undeclared class \icms
                Open

                        $confcat_handler = icms::handler('icms_config_category');

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                        $criteria->add(new icms_db_criteria_Item('conf_catid', $confcat_id));

                Call to method __construct from undeclared class \icms_db_criteria_Item
                Open

                                    $options = $config_handler->getConfigOptions(new icms_db_criteria_Item('conf_id', $config[$i]->getVar('conf_id')));

                Call to method getFileList from undeclared class \icms_core_Filesystem
                Open

                                    $dirlist = icms_core_Filesystem::getFileList(ICMS_LIBRARIES_PATH . '/icms/form/elements/captcha/fonts/', '', array('ttf'));

                Call to method __construct from undeclared class \icms_form_elements_select_Lang
                Open

                                    $ele = new icms_form_elements_select_Lang($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());

                Call to method __construct from undeclared class \icms_db_criteria_Compo
                Open

                                    $criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('hasmain', 1));

                Reference to undeclared constant \_MINUTES
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));

                Call to method __construct from undeclared class \icms_form_elements_Colorpicker
                Open

                                    $ele = new icms_form_elements_Colorpicker($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
                Open

                                    $ele = new icms_form_elements_Colorpicker($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()));

                Variable $styles is undeclared
                Open

                                        $st = & $styles;

                Call to method __construct from undeclared class \icms_form_elements_Hidden
                Open

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

                Call to method __construct from undeclared class \icms_form_elements_select_Group
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                Call to method addOptionArray from undeclared class \icms_form_elements_Select
                Open

                                    $ele->addOptionArray($content_handler->getContentList());

                Call to method addElement from undeclared class \icms_form_Theme
                Open

                        $form->addElement(new icms_form_elements_Button('', 'button', _GO, 'submit'));

                Reference to static property security from undeclared class \icms
                Open

                            redirect_header('admin.php?fct=preferences', 3, implode('<br />', icms::$security->getErrors()));

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                case 'textsarea' :
                                    if ($config[$i]->getVar('conf_valuetype') == 'array') {
                                        // this is exceptional.. only when value type is arrayneed a smarter way for this
                                        $ele =($config[$i]->getVar('conf_value') != '') ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);
                                    } else {
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 5 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 455..462

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 186.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                case 'textarea' :
                                    if ($config[$i]->getVar('conf_valuetype') == 'array') {
                                        // this is exceptional.. only when value type is array need a smarter way for this
                                        $ele =($config[$i]->getVar('conf_value') != '') ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50) : new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), '', 5, 50);
                                    } else {
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 5 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 446..453

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 186.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                case 'textarea' :
                                    if ($config[$i]->getVar('conf_valuetype') == 'array') {
                                        // this is exceptional.. only when value type is array, need a smarter way for this
                                        $ele =($config[$i]->getVar('conf_value') != '')
                                            ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50)
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 4 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 117..126

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 180.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                case 'textsarea' :
                                    if ($config[$i]->getVar('conf_valuetype') == 'array') {
                                        // this is exceptional.. only when value type is array, need a smarter way for this
                                        $ele =($config[$i]->getVar('conf_value') != '')
                                            ? new icms_form_elements_Textarea($title, $config[$i]->getVar('conf_name'), icms_core_DataFilter::htmlSpecialChars(implode('|', $config[$i]->getConfValueForOutput())), 5, 50)
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 4 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 128..137

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 180.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                            $title =(! defined($config[$i]->getVar('conf_desc')) || constant($config[$i]->getVar('conf_desc')) == '') ? constant($config[$i]->getVar('conf_title')) : constant($config[$i]->getVar('conf_title')) . '<img class="helptip" src="'. ICMS_IMAGES_SET_URL . '/actions/acp_help.png" alt="' . _MD_AM_HELP_TIP . '" title="' . _MD_AM_HELP_TIP . '" /><span class="helptext">' . constant($config[$i]->getVar('conf_desc')) . '</span>';
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 3 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 115..115

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 153.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                            $title =(! defined($config[$i]->getVar('conf_desc')) || constant($config[$i]->getVar('conf_desc')) == '') ? constant($config[$i]->getVar('conf_title')) : constant($config[$i]->getVar('conf_title')) . '<img class="helptip" src="'. ICMS_IMAGES_SET_URL . '/actions/acp_help.png" alt="' . _MD_AM_HELP_TIP . '" title="' . _MD_AM_HELP_TIP . '" /><span class="helptext">' . constant($config[$i]->getVar('conf_desc')) . '</span>';
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 3 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 444..444

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 153.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 4 locations. Consider refactoring.
                Open

                                    for ($j = 0; $j < $opcount; $j++) {
                                        $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
                                        $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
                                        $ele->addOption($optval, $optkey);
                                    }
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 3 other locations - About 3 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 164..172
                htdocs/modules/system/admin/preferences/main.php on lines 469..473
                htdocs/modules/system/admin/preferences/main.php on lines 480..484

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 144.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 4 locations. Consider refactoring.
                Open

                                    for ($j = 0; $j < $opcount; $j++) {
                                        $optval = defined($options[$j]->getVar('confop_value'))
                                            ? constant($options[$j]->getVar('confop_value'))
                                            : $options[$j]->getVar('confop_value');
                                        $optkey = defined($options[$j]->getVar('confop_name'))
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 3 other locations - About 3 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 153..157
                htdocs/modules/system/admin/preferences/main.php on lines 469..473
                htdocs/modules/system/admin/preferences/main.php on lines 480..484

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 144.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 4 locations. Consider refactoring.
                Open

                                    for ($j = 0; $j < $opcount; $j++) {
                                        $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
                                        $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
                                        $ele->addOption($optval, $optkey);
                                    }
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 3 other locations - About 3 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 153..157
                htdocs/modules/system/admin/preferences/main.php on lines 164..172
                htdocs/modules/system/admin/preferences/main.php on lines 469..473

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 144.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 4 locations. Consider refactoring.
                Open

                                    for ($j = 0; $j < $opcount; $j++) {
                                        $optval = defined($options[$j]->getVar('confop_value')) ? constant($options[$j]->getVar('confop_value')) : $options[$j]->getVar('confop_value');
                                        $optkey = defined($options[$j]->getVar('confop_name')) ? constant($options[$j]->getVar('confop_name')) : $options[$j]->getVar('confop_name');
                                        $ele->addOption($optval, $optkey);
                                    }
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 3 other locations - About 3 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 153..157
                htdocs/modules/system/admin/preferences/main.php on lines 164..172
                htdocs/modules/system/admin/preferences/main.php on lines 480..484

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 144.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                                    $cache_options = array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK);
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 2 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 336..336

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 132.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 2 locations. Consider refactoring.
                Open

                                    $ele->addOptionArray(array('0' => _NOCACHE, '30' => sprintf(_SECONDS, 30), '60' => _MINUTE, '300' => sprintf(_MINUTES, 5), '1800' => sprintf(_MINUTES, 30), '3600' => _HOUR, '18000' => sprintf(_HOURS, 5), '86400' => _DAY, '259200' => sprintf(_DAYS, 3), '604800' => _WEEK));
                Severity: Major
                Found in htdocs/modules/system/admin/preferences/main.php and 1 other location - About 2 hrs to fix
                htdocs/modules/system/admin/preferences/main.php on lines 319..319

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 132.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                There must be no space before the colon in a CASE statement
                Open

                                case 'module_cache' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));

                There must be no space before the colon in a CASE statement
                Open

                                case 'yesno' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                            $purifier_style_updated = TRUE;

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'user_multi' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'color' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'textbox' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'user_multi' :

                There must be no space before the colon in a DEFAULT statement
                Open

                                default :

                There must be no space before the colon in a CASE statement
                Open

                                case 'editor_source' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'group_multi' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $modules = $module_handler->getObjects(new icms_db_criteria_Item('hasmain', 1), TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'password' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_pages' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_paginati' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'password' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'textsarea' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'select' :

                There must be no space before the colon in a DEFAULT statement
                Open

                                default :

                There must be no space before the colon in a CASE statement
                Open

                                case 'color' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'textarea' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 1, FALSE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'select' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'hidden' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                        $form = new icms_form_Theme(constant($confcat->getVar('confcat_name')), 'pref_form', 'admin.php?fct=preferences', 'post', TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'theme_multi' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                Open

                                            $c_val = isset($currrent_val[$mid]) ?(int) $currrent_val[$mid] : NULL;

                There must be no space before the colon in a CASE statement
                Open

                                case 'password' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'group' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
                Open

                                                $found = & $tplfile_handler->find($newtplset, 'block', $dtemplates[$i]->getVar('tpl_refid'), NULL);

                There must be no space before the colon in a CASE statement
                Open

                                case 'startpage' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_geshi' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'textbox' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        if (isset($iconbig) && $iconbig == FALSE) {

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                            $encryption_updated = TRUE;

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_multi' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                Blank line found at end of control structure
                Open

                
                

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_plugin' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 8, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'color' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'hidden' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                Expected 1 space after comma in function call; 2 found
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'),  $config[$i]->getConfValueForOutput());

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $moduleslist = $module_handler->getList($criteria, TRUE);

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'timezone' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                        $form = new icms_form_Theme(_MD_AM_MODCONFIG, 'pref_form', 'admin.php?fct=preferences', 'post', TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'theme' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_font' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'group_multi' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'site_cache' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                        if ($module->getInfo('hasAdmin') == TRUE) {

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_image' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        $encryption_updated = FALSE;

                There must be no space before the colon in a CASE statement
                Open

                                case 'user' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                        if (isset($iconbig) && $iconbig == TRUE) {

                There must be no space before the colon in a CASE statement
                Open

                                case 'tplset' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_Password($title, $config[$i]->getVar('conf_name'), 50, 255, icms_core_DataFilter::htmlSpecialChars($config[$i]->getConfValueForOutput()), FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));

                There must be no space before the colon in a CASE statement
                Open

                                case 'textarea' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_pages' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                        $lang_updated = TRUE;

                There must be no space before the colon in a CASE statement
                Open

                                case 'theme_admin' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                        : new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'editor' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'editor_multi' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_Select($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'language' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 1, FALSE);

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $options = &$handler->getSystemHandlersList(TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'yesno' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'textsarea' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                        $theme_updated = TRUE;

                There must be no space before the colon in a CASE statement
                Open

                                case 'group' :

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                    $ele = new icms_form_elements_select_Group($title, $config[$i]->getVar('conf_name'), TRUE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'user' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                                    $ele = new icms_form_elements_select_User($title, $config[$i]->getVar('conf_name'), FALSE, $config[$i]->getConfValueForOutput(), 5, TRUE);

                There must be no space before the colon in a CASE statement
                Open

                                case 'hidden' :

                There must be no space before the colon in a CASE statement
                Open

                                case 'select_multi' :

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        $purifier_style_updated = FALSE;

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                        $startmod_updated = TRUE;

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        $lang_updated = FALSE;

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        $tpl_updated = FALSE;

                Blank line found at end of control structure
                Open

                
                

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        $theme_updated = FALSE;

                TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
                Open

                        $startmod_updated = FALSE;

                TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
                Open

                                        $tpl_updated = TRUE;

                Inline control structures are not allowed
                Open

                    if (is_array($post_vars)) extract($post_vars);

                Inline control structures are not allowed
                Open

                                    if ($type == 'editor') $type = '';

                There are no issues that match your filters.

                Category
                Status