ImpressCMS/impresscms

View on GitHub
htdocs/install/page_modulesinstall.php

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

        //TODO: Insert Protector installation - leads to blank page as it is now.

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= '<div id="modinstall" name="install_mods[]">';

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= '</div>';

Call to method getAvailable from undeclared class \icms_module_Handler
Open

    $langarr = icms_module_Handler::getAvailable();
Severity: Critical
Found in htdocs/install/page_modulesinstall.php by phan

Variable $wizard is undeclared
Open

    $wizard->redirectToPage( '-3' );
Severity: Minor
Found in htdocs/install/page_modulesinstall.php by phan

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

            $content .= _INSTALL_NO_PLUS_MOD;

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $content .= "<div style='height:auto;max-height:400px;overflow:auto;'>".$dbm->report()."</div>";

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= '<div>'. _INSTALL_SELECT_MODS_INTRO .'</div>';

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= '<div class="dbconn_line">';

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $content .= "<div class=\"langselect\" style=\"text-decoration: none;\"><a href=\"javascript:void(0);\" style=\"text-decoration: none;\"><img src=\"../modules/$lang/images/icon_small.png\" alt=\"$lang\" /><br />$lang <br /><input type=\"checkbox\" checked=\"checked\" name=\"install_mods[]\" value=\"$lang\" /></a></div>";

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

                $content .= xoops_module_install($install_mods[$i]);

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= '<input type="hidden" name="mod" value="1" />';

Variable $wizard is undeclared
Open

        $wizard->redirectToPage( '+1' );
Severity: Minor
Found in htdocs/install/page_modulesinstall.php by phan

Variable $wizard is undeclared
Open

$wizard->setPage( 'modulesinstall' );
Severity: Minor
Found in htdocs/install/page_modulesinstall.php by phan

Variable $wizard is undeclared
Open

        $wizard->redirectToPage( '+1' );
Severity: Minor
Found in htdocs/install/page_modulesinstall.php by phan

Call to method handler from undeclared class \icms
Open

        $module_handler = icms::handler('icms_module');
Severity: Critical
Found in htdocs/install/page_modulesinstall.php by phan

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

                $content .= xoops_module_install('protector');

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= '<h3>'. _INSTALL_SELECT_MODULES.'</h3>';

Variable $content was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $content .= "</div><div class='clear'>&nbsp;</div>";

Blank line found at start of control structure
Open

} else {

Expected 0 spaces before closing bracket; 1 found
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Inline control structures are not allowed
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Expected 1 newline at end of file; 0 found
Open

include 'install_tpl.php';

Space after opening parenthesis of function call prohibited
Open

        $wizard->redirectToPage( '+1' );

Expected 0 spaces before closing bracket; 1 found
Open

$wizard->setPage( 'modulesinstall' );

Space after opening parenthesis of function call prohibited
Open

$wizard->setPage( 'modulesinstall' );

Line indented incorrectly; expected 2 tabs, found 3
Open

            if (file_exists(ICMS_ROOT_PATH . '/modules/protector/icms_version.php')) {

Expected 1 space after second semicolon of FOR loop; 0 found
Open

            for ($i = 0; $i <= count($install_mods)-1;$i++) {

Space after opening parenthesis of function call prohibited
Open

    if (empty( $process )) {

Expected 0 spaces before closing bracket; 1 found
Open

        $wizard->redirectToPage( '+1' );

Space after opening parenthesis of function call prohibited
Open

        $wizard->redirectToPage( '+1' );

Space after opening parenthesis of function call prohibited
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Expected 0 spaces before closing bracket; 1 found
Open

    $wizard->redirectToPage( '-3' );

Space after opening parenthesis of function call prohibited
Open

    $wizard->redirectToPage( '-3' );

Expected 0 spaces before closing bracket; 1 found
Open

        $wizard->redirectToPage( '+1' );

Line indented incorrectly; expected 2 tabs, found 3
Open

            }

Expected 0 spaces before closing bracket; 1 found
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Expected 0 spaces before closing bracket; 1 found
Open

    if (empty( $process )) {

There are no issues that match your filters.

Category
Status