function WriteResults($Format, $Results, $WriteText = FALSE, $Module = FALSE)
{
    if ($Module) {
        $CssClass = 'PanelInfo PanelDiscussions';
    } else {
        $CssClass = 'DataList';
    }
    //regular content
    switch (strtolower($Format)) {
        case 'sleek':
            return WriteSleek($Results, $WriteText, $CssClass);
            break;
        case 'table':
            return WriteTable($Results, $WriteText, $CssClass);
            break;
        case 'simple':
            return WriteSimple($Results, $WriteText, $CssClass);
            break;
        case 'classic':
        default:
            return WriteClassic($Results, $WriteText, $CssClass);
            break;
    }
}
Example #2
0
                    //echo "没有找到".$db_action_id.$search[$key]."<br>";
                    $str = $str . "[\"" . $db_action_id . "\",\"" . $search[$key] . "\"," . "\"值在cst_param里不存在\"],";
                }
            }
        }
    }
    //echo $str;
    return $str;
}
//
function writelog($str, $file)
{
    if (file_exists($file . ".txt")) {
        unlink($file . ".txt");
    }
    $str = mb_convert_encoding($str, "utf-8", "auto");
    $open = fopen($file . ".txt", "a");
    fwrite($open, $str);
    fclose($open);
}
if ($_GET["tag"] < 6) {
    WriteTable($result_action, $file);
} else {
    if ($_GET["tag"] == 6) {
        WriteTableTag6($result_action, $file);
    } else {
        if ($_GET["tag"] == 7) {
            WriteTableTag7($result_action, $result_action_cst, $anjuke_cst_params, $broker_cst_params, $file);
        }
    }
}
}
-->
</style>
</head>
<body>

<h4>This script performs basic installation checks for uLogin as well as verifies trivial security settings.<br>
Note that this script does NOT try to detect all possible security misconfigurations, and for maximized security you should consult additional server and uLogin settings.</h4>

<h3>Installation checks</h3>
<?php 
install_checks();
WriteTable();
?>

<h3>Security checks</h3>
<?php 
security_checks();
WriteTable();
?>

<h3>Random strings</h3>
<?php 
generate_keys();
?>



</body>
</html>