ImpressCMS/impresscms

View on GitHub
htdocs/install/page_siteinit.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable $wizard is undeclared
Open

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

Variable $wizard is undeclared
Open

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

Variable $wizard is undeclared
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

<?php if (!empty( $error ) ) echo '<div class="x2-note error">' . $error . "</div>\n"; ?>

Inline control structures are not allowed
Open

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

Inline control structures are not allowed
Open

                       value="<?php if(isset($vars['adminname'])) echo htmlspecialchars( $vars['adminname'], ENT_QUOTES ); ?>" />

Inline control structures are not allowed
Open

                       value="<?php if(isset($vars['adminmail'])) echo htmlspecialchars( $vars['adminmail'], ENT_QUOTES ); ?>" />

Inline control structures are not allowed
Open

                       value="<?php if(isset($vars['adminlogin_name'])) echo htmlspecialchars( $vars['adminlogin_name'], ENT_QUOTES ); ?>" />

Inline control structures are not allowed
Open

<?php if (!empty( $error ) ) echo '<div class="x2-note error">' . $error . "</div>\n"; ?>

Expected 0 spaces before closing bracket; 1 found
Open

$wizard->setPage( 'siteinit' );

Expected 0 spaces before closing bracket; 1 found
Open

<?php if (!empty( $error ) ) echo '<div class="x2-note error">' . $error . "</div>\n"; ?>

Expected 1 space after IF keyword; 0 found
Open

                       value="<?php if(isset($vars['adminname'])) echo htmlspecialchars( $vars['adminname'], ENT_QUOTES ); ?>" />

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Expected 0 spaces before closing bracket; 1 found
Open

    if (!preg_match( "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i", $vars['adminmail'] )) {

Expected 0 spaces before closing bracket; 1 found
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

                       value="<?php if(isset($vars['adminlogin_name'])) echo htmlspecialchars( $vars['adminlogin_name'], ENT_QUOTES ); ?>" />

Space after opening parenthesis of function call prohibited
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Expected 0 spaces before closing bracket; 1 found
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Space after opening parenthesis of function call prohibited
Open

                       value="<?php if(isset($vars['adminname'])) echo htmlspecialchars( $vars['adminname'], ENT_QUOTES ); ?>" />

Expected 1 space after IF keyword; 0 found
Open

                       value="<?php if(isset($vars['adminlogin_name'])) echo htmlspecialchars( $vars['adminlogin_name'], ENT_QUOTES ); ?>" />

Space after opening parenthesis of function call prohibited
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Space after opening parenthesis of function call prohibited
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Space after opening parenthesis of function call prohibited
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Space after opening parenthesis of function call prohibited
Open

                       value="<?php if(isset($vars['adminmail'])) echo htmlspecialchars( $vars['adminmail'], ENT_QUOTES ); ?>" />

Expected 0 spaces before closing bracket; 1 found
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Space after opening parenthesis of function call prohibited
Open

    if (!preg_match( "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i", $vars['adminmail'] )) {

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

<?php if (!empty( $error ) ) echo '<div class="x2-note error">' . $error . "</div>\n"; ?>

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

$wizard->setPage( 'siteinit' );

Expected 0 spaces before closing bracket; 1 found
Open

    } elseif (@empty( $vars['adminlogin_name'] ) || @empty( $vars['adminname'] )  || @empty( $vars['adminlogin_name'] ) || @empty( $vars['adminpass'] ) || @empty( $vars['adminmail'])) {

Expected 0 spaces before closing bracket; 1 found
Open

                       value="<?php if(isset($vars['adminname'])) echo htmlspecialchars( $vars['adminname'], ENT_QUOTES ); ?>" />

Expected 0 spaces before closing bracket; 1 found
Open

                       value="<?php if(isset($vars['adminlogin_name'])) echo htmlspecialchars( $vars['adminlogin_name'], ENT_QUOTES ); ?>" />

Expected 1 space after IF keyword; 0 found
Open

                       value="<?php if(isset($vars['adminmail'])) echo htmlspecialchars( $vars['adminmail'], ENT_QUOTES ); ?>" />

Expected 0 spaces before closing bracket; 1 found
Open

                       value="<?php if(isset($vars['adminmail'])) echo htmlspecialchars( $vars['adminmail'], ENT_QUOTES ); ?>" />

Unexpected spaces found.
Open

                       id="adminlogin_name" maxlength="25"

Unexpected spaces found.
Open

                       id="adminpass" maxlength="255" value="" /></div>

Unexpected spaces found.
Open

                       value="<?php if(isset($vars['adminname'])) echo htmlspecialchars( $vars['adminname'], ENT_QUOTES ); ?>" />

Unexpected spaces found.
Open

                       value="<?php if(isset($vars['adminmail'])) echo htmlspecialchars( $vars['adminmail'], ENT_QUOTES ); ?>" />

Unexpected spaces found.
Open

                       value="" /></div>

Unexpected spaces found.
Open

                       value="<?php if(isset($vars['adminlogin_name'])) echo htmlspecialchars( $vars['adminlogin_name'], ENT_QUOTES ); ?>" />

There are no issues that match your filters.

Category
Status