ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/include/update-13.php

Summary

Maintainability
A
2 hrs
Test Coverage

File update-13.php has 284 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * DataBase Update Functions for ImpressCMS 1.3 series
 *
 * @copyright    The ImpressCMS Project http://www.impresscms.org/
Severity: Minor
Found in htdocs/modules/system/include/update-13.php - About 2 hrs to fix

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('ranks');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX conf_mod_cat_id, ADD INDEX mod_cat_order(conf_modid, conf_catid, conf_order)", 'Successfully altered the indexes on table config', '');

    Call to method setData from undeclared class \icms_db_legacy_updater_Table
    Open

                    $table->setData($cat);

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if (!$table->fieldExists("ipf")) {

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX conf_mod_cat_id, ADD INDEX mod_cat_order(conf_modid, conf_catid, conf_order)", 'Successfully altered the indexes on table config', '');

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists('pass')) {

    Call to method alterTable from undeclared class \icms_db_legacy_updater_Table
    Open

        $table->alterTable();

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("background_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE background_color color_background varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method addNewField from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->addNewField("slot", "varchar(12) NOT NULL default ''");

    Call to method setData from undeclared class \icms_db_legacy_updater_Table
    Open

                    $table->setData($item);

    Call to method alterTable from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->alterTable();

    Call to method handler from undeclared class \icms
    Open

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

    Variable $icmsDatabaseUpdater is undeclared
    Open

        if ($table->fieldExists("url_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE url_color color_url varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("modules");

    Call to method setStructure from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->setStructure("`cid` int(11) NOT NULL auto_increment,

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        if ($table->fieldExists("background_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE background_color color_background varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        if ($table->fieldExists("link_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE link_color color_link varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("text_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE text_color color_text varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET conf_formtype = 'textarea' WHERE conf_name = 'footer';";

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method createTable from undeclared class \icms_db_legacy_updater_Table
    Open

            if (!$table->createTable()) {

    Call to method setStructure from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->setStructure("`id` int(11) NOT NULL auto_increment,

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('group_permission');

    Call to method addAlteredField from undeclared class \icms_db_legacy_updater_Table
    Open

        $table->addAlteredField('gperm_modid', "SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0'", 'gperm_modid');

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX itemid, DROP INDEX groupid, DROP INDEX gperm_modid", 'Successfully dropped the indexes on table group_permission', '');

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('modules');

    Call to method addAlteredField from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->addAlteredField('pass', "varchar(255) NOT NULL default ''", 'pass');

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if (!$table->fieldExists("modname")) {

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        if ($table->fieldExists("background_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE background_color color_background varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("content")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE content customtag_content text NOT NULL", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Output_FlashCompat', '_MD_AM_PURIFIER_OUTPUT_FLASHCOMPAT', '0', '_MD_AM_PURIFIER_OUTPUT_FLASHCOMPATDSC', 'yesno', 'int', $p++ );

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $dbVersion is undeclared
    Open

    if ($dbVersion < $newDbVersion) {

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method addData from undeclared class \icms_db_legacy_updater_Table
    Open

                $table->addData();

    Call to method addData from undeclared class \icms_db_legacy_updater_Table
    Open

                $table->addData();

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX email, DROP INDEX uiduname, DROP INDEX unamepass", 'Successfully dropped the indexes on table users', '');

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX to_userid", 'Successfully dropped the indexes on table priv_msgs', '');

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        if ($table->fieldExists("border_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE border_color color_border varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        if ($table->fieldExists("border_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE border_color color_border varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("url_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE url_color color_url varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        if ($table->fieldExists("content")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE content customtag_content text NOT NULL", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET gperm_name = 'view_customtag' WHERE gperm_name = 'view' AND gperm_modid = 1", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newAttributes . "' WHERE conf_name = 'purifier_HTML_AllowedAttributes'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $dbVersion is undeclared
    Open

    if ($dbVersion < $newDbVersion) {

    Call to method alterTable from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->alterTable();

    Call to method addNewField from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->addNewField("modname", "varchar(25) NOT NULL default ''");

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("link_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE link_color color_link varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("link_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE link_color color_link varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("config");

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
    Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

    Variable $dbVersion is undeclared
    Open

    if ($dbVersion < $newDbVersion) {

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newElements . "' WHERE conf_name = 'purifier_HTML_AllowedElements'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to static property config from undeclared class \icms
    Open

        $allowAttributes = icms::$config->getConfigs(icms_buildCriteria(array (

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newAttributes . "' WHERE conf_name = 'purifier_HTML_AllowedAttributes'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Argument 1 (string) is ?40|?41|?42 but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
    Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("config");

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method exists from undeclared class \icms_db_legacy_updater_Table
    Open

        if (!$table->exists()) {

    Call to method exists from undeclared class \icms_db_legacy_updater_Table
    Open

        if (!$table->exists() && !$abortUpdate) {

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX login_name, ADD UNIQUE INDEX login_name (login_name)", 'Successfully added the indexes on table users', '');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX rank_min", 'Successfully dropped the indexes on table ranks', '');

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('system_adsense');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        if ($table->fieldExists("background_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE background_color color_background varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        if ($table->fieldExists("url_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE url_color color_url varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_HTML_SafeIframe', '_MD_AM_PURIFIER_HTML_SAFEIFRAME', 0, '_MD_AM_PURIFIER_HTML_SAFEIFRAMEDSC', 'yesno', 'int', $p);

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newAttributes . "' WHERE conf_name = 'purifier_HTML_AllowedAttributes'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET conf_value = conf_value + 20 WHERE conf_name = 'enc_type' AND conf_value < 20;";

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('autosearch_cat');

    Call to method createTable from undeclared class \icms_db_legacy_updater_Table
    Open

            if (!$table->createTable()) {

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` ADD INDEX name_mod_group (gperm_name(10), gperm_modid, gperm_groupid)", 'Successfully added the indexes on table group_permission', '');

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('priv_msgs');

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('users');

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if (!$table->fieldExists("slot")) {

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("border_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE border_color color_border varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("border_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE border_color color_border varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("background_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE background_color color_background varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

            $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');

    Reference to static property config from undeclared class \icms
    Open

        $configs = icms::$config->getConfigs(icms_buildCriteria(array (

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX hasmain, DROP INDEX hasadmin, DROP INDEX hassearch, DROP INDEX hasnotification, DROP INDEX name, DROP INDEX dirname", 'Successfully dropped the indexes on table modules', '');

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists('sess_ip')) {

    Variable $icmsDatabaseUpdater is undeclared
    Open

        if ($table->fieldExists("link_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE link_color color_link varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("text_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE text_color color_text varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET gperm_name = 'view_customtag' WHERE gperm_name = 'view' AND gperm_modid = 1", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $dbVersion is undeclared
    Open

    if ($dbVersion < 40) include 'update-112-to-122.php';

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('users');

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX login_name, ADD UNIQUE INDEX login_name (login_name)", 'Successfully added the indexes on table users', '');

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        if ($table->fieldExists("border_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE border_color color_border varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET gperm_name = 'view_customtag' WHERE gperm_name = 'view' AND gperm_modid = 1", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to static property config from undeclared class \icms
    Open

            icms::$config->insertConfig($configs[0]);

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_HTML_FlashAllowFullScreen', '_MD_AM_PURIFIER_HTML_FLASHFULLSCRN', '0', '_MD_AM_PURIFIER_HTML_FLASHFULLSCRNDSC', 'yesno', 'int', $p);

    Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
    Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('autosearch_list');

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('config');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX itemid, DROP INDEX groupid, DROP INDEX gperm_modid", 'Successfully dropped the indexes on table group_permission', '');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX hasmain, DROP INDEX hasadmin, DROP INDEX hassearch, DROP INDEX hasnotification, DROP INDEX name, DROP INDEX dirname", 'Successfully dropped the indexes on table modules', '');

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` ADD INDEX dirname (dirname(5)), ADD INDEX active_main_weight (isactive, hasmain, weight)", 'Successfully added the indexes on table modules', '');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX email, DROP INDEX uiduname, DROP INDEX unamepass", 'Successfully dropped the indexes on table users', '');

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_HTML_FlashAllowFullScreen', '_MD_AM_PURIFIER_HTML_FLASHFULLSCRN', '0', '_MD_AM_PURIFIER_HTML_FLASHFULLSCRNDSC', 'yesno', 'int', $p);

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Filter_AllowCustom', '_MD_AM_PURIFIER_FILTER_ALLOWCUSTOM', '0', '_MD_AM_PURIFIER_FILTER_ALLOWCUSTOMDSC', 'yesno', 'int', $p);

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET conf_formtype = 'textsarea' WHERE conf_formtype = 'textarea' AND conf_title LIKE '_MI_PROTECTOR%';";

    Variable $abortUpdate is undeclared
    Open

    if (!$abortUpdate) $newDbVersion = 41;

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` ADD INDEX name_mod_group (gperm_name(10), gperm_modid, gperm_groupid)", 'Successfully added the indexes on table group_permission', '');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` ADD INDEX dirname (dirname(5)), ADD INDEX active_main_weight (isactive, hasmain, weight)", 'Successfully added the indexes on table modules', '');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX to_userid", 'Successfully dropped the indexes on table priv_msgs', '');

    Call to method addAlteredField from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->addAlteredField('sess_ip', "varchar(64) NOT NULL default ''", 'sess_ip');

    Call to method fieldExists from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("url_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE url_color color_url varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("group_permission");

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_URI_SafeIframeRegexp', '_MD_AM_PURIFIER_URI_SAFEIFRAMEREGEXP', 'http://www.youtube.com/|http://player.vimeo.com/video/|http://blip.tv/play/', '_MD_AM_PURIFIER_URI_SAFEIFRAMEREGEXPDSC', 'textsarea', 'text', $p);

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newElements . "' WHERE conf_name = 'purifier_HTML_AllowedElements'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET conf_formtype = 'textarea' WHERE conf_name = 'footadm';";

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX rank_min", 'Successfully dropped the indexes on table ranks', '');

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table('session');

    Variable $icmsDatabaseUpdater is undeclared
    Open

        if ($table->fieldExists("text_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE text_color color_text varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to static property config from undeclared class \icms
    Open

        $configs = icms::$config->getConfigs(icms_buildCriteria(array (

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_URI_SafeIframeRegexp', '_MD_AM_PURIFIER_URI_SAFEIFRAMEREGEXP', 'http://www.youtube.com/|http://player.vimeo.com/video/|http://blip.tv/play/', '_MD_AM_PURIFIER_URI_SAFEIFRAMEREGEXPDSC', 'textsarea', 'text', $p);

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newAttributes . "' WHERE conf_name = 'purifier_HTML_AllowedAttributes'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        if ($table->fieldExists("link_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE link_color color_link varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("modules");

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($table->fieldExists("content")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE content customtag_content text NOT NULL", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method addNewField from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->addNewField("ipf", "tinyint(1) unsigned NOT NULL default '0'");

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        if ($table->fieldExists("content")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE content customtag_content text NOT NULL", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        if ($table->fieldExists("content")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE content customtag_content text NOT NULL", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to static property config from undeclared class \icms
    Open

        $configs = icms::$config->getConfigs(icms_buildCriteria(array (

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        if ($table->fieldExists("url_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE url_color color_url varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Output_FlashCompat', '_MD_AM_PURIFIER_OUTPUT_FLASHCOMPAT', '0', '_MD_AM_PURIFIER_OUTPUT_FLASHCOMPATDSC', 'yesno', 'int', $p++ );

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Filter_AllowCustom', '_MD_AM_PURIFIER_FILTER_ALLOWCUSTOM', '0', '_MD_AM_PURIFIER_FILTER_ALLOWCUSTOMDSC', 'yesno', 'int', $p);

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to static property config from undeclared class \icms
    Open

        $configs = icms::$config->getConfigs(icms_buildCriteria(array (

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        if ($table->fieldExists("text_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE text_color color_text varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("system_customtag");

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Core_NormalizeNewlines', '_MD_AM_PURIFIER_CORE_NORMALNEWLINES', '1', '_MD_AM_PURIFIER_CORE_NORMALNEWLINESDSC', 'yesno', 'int', $p);

    Reference to static property config from undeclared class \icms
    Open

        $configs = icms::$config->getConfigs(icms_buildCriteria(array (

    Reference to static property config from undeclared class \icms
    Open

        $allowElements = icms::$config->getConfigs(icms_buildCriteria(array (

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("config");

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newElements . "' WHERE conf_name = 'purifier_HTML_AllowedElements'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET pass_expired = 1 WHERE pass_expired = 0 AND pass NOT LIKE '$%';";

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("configoption");

    Reference to static property config from undeclared class \icms
    Open

        $configs = icms::$config->getConfigs(icms_buildCriteria(array (

    Variable $icmsDatabaseUpdater is undeclared
    Open

            $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET confop_value = confop_value + 20 WHERE confop_name LIKE '_MD_AM_ENC_%' AND confop_value < 20;";

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET conf_formtype = 'textarea' WHERE conf_name = 'priv_policy';";

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method __construct from undeclared class \icms_db_legacy_updater_Table
    Open

        $table = new icms_db_legacy_updater_Table("users");

    Argument 1 (string) is ?40|?41|?42|?43|?44 but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
    Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

    Call to method addNewFields from undeclared class \icms_db_legacy_updater_Table
    Open

        if ($alter) $table->addNewFields();

    Call to method addNewFields from undeclared class \icms_db_legacy_updater_Table
    Open

            $table->addNewFields();

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        if ($table->fieldExists("text_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE text_color color_text varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET gperm_name = 'view_customtag' WHERE gperm_name = 'view' AND gperm_modid = 1", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 2 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_order = conf_order + 1 WHERE conf_order >= " . $p . " AND conf_catid = " . ICMS_CONF_PURIFIER, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Core_NormalizeNewlines', '_MD_AM_PURIFIER_CORE_NORMALNEWLINES', '1', '_MD_AM_PURIFIER_CORE_NORMALNEWLINESDSC', 'yesno', 'int', $p);

    Argument 1 (string) is ?40|?41 but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
    Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

    Reference to undeclared constant \ICMS_CONF_PURIFIER
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_HTML_SafeIframe', '_MD_AM_PURIFIER_HTML_SAFEIFRAME', 0, '_MD_AM_PURIFIER_HTML_SAFEIFRAMEDSC', 'yesno', 'int', $p);

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $icmsDatabaseUpdater->runQuery($sql = "UPDATE `" . $table->name() . "` SET conf_value ='" . $newElements . "' WHERE conf_name = 'purifier_HTML_AllowedElements'", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "ALTER TABLE `" . $table->name() . "` MODIFY version VARCHAR(20);";

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Call to method name from undeclared class \icms_db_legacy_updater_Table
    Open

        $sql = "UPDATE `" . $table->name() . "` SET conf_formtype = 'textbox' WHERE conf_formtype = 'text' AND conf_title LIKE '_MI_PROTECTOR%';";

    Variable $icmsDatabaseUpdater is undeclared
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $icmsDatabaseUpdater is undeclared
    Open

            $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
    Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Reference to undeclared constant \_DATABASEUPDATER_MSG_QUERY_FAILED
    Open

        $icmsDatabaseUpdater->runQuery($sql, sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Variable $dbVersion is undeclared
    Open

    if ($dbVersion < $newDbVersion) {

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

                icms_loadLanguageFile('system', 'preferences', TRUE);

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

            $alter = TRUE;

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

            $alter = TRUE;

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

            if ($module->getInfo("object_items") !== FALSE) {

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

        $alter = FALSE;

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

                $abortUpdate = TRUE;

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

                $abortUpdate = TRUE;

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

            if ($module->getInfo("modname") !== FALSE) {

    Blank line found at start of control structure
    Open

    if ($dbVersion < $newDbVersion) {

    Blank line found at start of control structure
    Open

    if ($dbVersion < $newDbVersion) {

    Inline control structures are not allowed
    Open

        if ($table->fieldExists("url_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE url_color color_url varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Inline control structures are not allowed
    Open

    if ($dbVersion < 40) include 'update-112-to-122.php';

    Inline control structures are not allowed
    Open

    if (!$abortUpdate) $newDbVersion = 41;

    Inline control structures are not allowed
    Open

        if ($alter) $table->addNewFields();

    Inline control structures are not allowed
    Open

        if ($table->fieldExists("background_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE background_color color_background varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Inline control structures are not allowed
    Open

        if ($table->fieldExists("link_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE link_color color_link varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Inline control structures are not allowed
    Open

        if ($table->fieldExists("content")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE content customtag_content text NOT NULL", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Inline control structures are not allowed
    Open

    if (!$abortUpdate) $newDbVersion = 44;

    Inline control structures are not allowed
    Open

        if ($table->fieldExists("text_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE text_color color_text varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Inline control structures are not allowed
    Open

        if ($table->fieldExists("border_color")) $icmsDatabaseUpdater->runQuery($sql = "ALTER TABLE `" . $table->name() . "` CHANGE border_color color_border varchar(6) NOT NULL default ''", sprintf(_DATABASEUPDATER_MSG_QUERY_SUCCESSFUL, $sql), sprintf(_DATABASEUPDATER_MSG_QUERY_FAILED, $sql));

    Inline control structures are not allowed
    Open

    if (!$abortUpdate) $newDbVersion = 43;

    Inline control structures are not allowed
    Open

    if (!$abortUpdate) $newDbVersion = 42;

    Expected 0 spaces before closing bracket; 1 found
    Open

        $icmsDatabaseUpdater->insertConfig(ICMS_CONF_PURIFIER, 'purifier_Output_FlashCompat', '_MD_AM_PURIFIER_OUTPUT_FLASHCOMPAT', '0', '_MD_AM_PURIFIER_OUTPUT_FLASHCOMPATDSC', 'yesno', 'int', $p++ );

    Unexpected spaces found.
    Open

                     `name` varchar(255) NOT NULL,

    Unexpected spaces found.
    Open

                     `cat_name` varchar(255) NOT NULL,

    Unexpected spaces found.
    Open

                     `img` varchar(255) NOT NULL,

    Unexpected spaces found.
    Open

                     PRIMARY KEY (`id`)");

    Unexpected spaces found.
    Open

                     PRIMARY KEY (`cid`)");

    Unexpected spaces found.
    Open

                     `url` text NOT NULL,

    Unexpected spaces found.
    Open

                     `cat_url` text NOT NULL,

    Unexpected spaces found.
    Open

                     `cat_id` int(11) NOT NULL,

    Unexpected spaces found.
    Open

                     `desc` text NOT NULL,

    There are no issues that match your filters.

    Category
    Status