modules/xoopsinfo/admin/rescue.php
Avoid deeply nested control flow statements. Open
Open
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (false !== ($file = readdir($dh))) {
if ('dir' !== filetype($dir . '/' . $file) && 'index.html' !== $file && 'adminmenu.php' !== $file) {
@unlink($dir . '/' . $file);
Avoid deeply nested control flow statements. Open
Open
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (false !== ($file = readdir($dh))) {
if ('dir' !== filetype($dir . '/' . $file) && 'index.html' !== $file) {
@unlink($dir . '/' . $file);
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 34 and the first side effect is on line 15. Open
Open
<?php declare(strict_types=1);
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
Open
$sql = 'UPDATE ' . $xoopsDB->prefix('config') . ' SET conf_value="default" WHERE conf_name="theme_set" and conf_modid=0';
- Exclude checks
Line exceeds 120 characters; contains 183 characters Open
Open
$sql = 'UPDATE ' . $xoopsDB->prefix('config') . ' SET conf_value="' . $protector . '" WHERE conf_name="global_disabled" AND conf_modid=' . $isProtector->getVar('mid');
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
Open
$sql = 'SELECT count(*) FROM ' . $xoopsDB->prefix('config') . ' WHERE conf_title="_MI_XI_PASSWORD" AND conf_value="' . $passwd . '"';
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
Open
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
Open
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo XOOPS_URL . '/themes/' . $theme_set . '/style.css'; ?>"/>
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
Open
<input type='radio' name='protector_ip' value='0' checked='checked'/><?php echo _MI_XI_NO; ?>
- Exclude checks
Line exceeds 120 characters; contains 150 characters Open
Open
$sql = 'UPDATE ' . $xoopsDB->prefix('config') . ' SET conf_value="' . $debug_mode . '" WHERE conf_name="debug_mode" and conf_modid=0';
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
Open
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo XOOPS_URL . '/modules/xoopsinfo/module.css'; ?>"/>
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
if ('dir' !== filetype($dir . '/' . $file) && 'index.html' !== $file && 'adminmenu.php' !== $file) {
- Exclude checks
Closing brace indented incorrectly; expected 46 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE0; ?></option>
- Exclude checks
Closing brace indented incorrectly; expected 75 spaces, found 28 Open
Open
} ?> /><?php echo _MI_XI_NO; ?>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE0; ?></option>
- Exclude checks
Closing brace indented incorrectly; expected 46 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE3; ?></option>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE1; ?></option>
- Exclude checks
Closing brace indented incorrectly; expected 75 spaces, found 28 Open
Open
} ?> /><?php echo _MI_XI_YES; ?>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE2; ?></option>
- Exclude checks
Closing brace indented incorrectly; expected 46 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE1; ?></option>
- Exclude checks
Closing brace indented incorrectly; expected 46 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE2; ?></option>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 28 Open
Open
} ?>><?php echo _MD_AM_DEBUGMODE3; ?></option>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 28 Open
Open
} ?> /><?php echo _MI_XI_YES; ?>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 28 Open
Open
} ?> /><?php echo _MI_XI_NO; ?>
- Exclude checks