print changes

This commit is contained in:
3x0k1d 2025-05-05 07:38:21 +03:00
parent d6172bdb69
commit 094d8ab88a
4 changed files with 29 additions and 23 deletions

9
checkers/php-dbase.php Normal file
View File

@ -0,0 +1,9 @@
<?php
include("baseModule.php");
$checker = new BaseModule(
"dbase",
"The dbase extension allows PHP to interact with dBASE database files, which are commonly used for managing data in flat file formats. This extension provides functions for reading, writing, and manipulating dBASE database files, which are often used in legacy systems.",
"");
$checker->printInfo();

View File

@ -8,7 +8,6 @@ $checker = new BaseModule(
$checker->printInfo();
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$redis->set('foo', 'bar');

View File

@ -1,4 +1,5 @@
<?php
include("utils.php");
//deffine funny things
$module_list = array (
@ -16,30 +17,13 @@ $module_list = array (
"ionCube Loader",
);
$status_code = array (
0 => "Unknow",
1 => "Ok",
2 => "Error",
);
for ($i = 0; $i < count($module_list); $i++) {
if ($module_list[$i] == "") {
if ($module_list[$i] == "")
echo "Error. Module doesn't deffined". $module_list[$i] ."";
}
else {
$module_name = str_replace('php-', '', $module_list[$i]);
if (!extension_loaded($module_name))
{
echo '<p style="color:red">'. $module_list[$i] .":";
echo '<a href="\checkers\\'. $module_list[$i] .'.php">' . 'Click </a>' . `</p>`;
}
else
{
echo '<p style="color:green">'. $module_list[$i] .":";
echo '<a href="\checkers\\'. $module_list[$i] .'.php">' . 'Click </a>' . `</p>`;
}
}
else
printModuleInfo($module_list[$i]);
}
?>

14
utils.php Normal file
View File

@ -0,0 +1,14 @@
<?php
function printModuleInfo($module_name) : void {
$cmodule_name = str_replace('php-', '', $module_name);
if (!extension_loaded($cmodule_name))
{
echo '<p style="color:red">'. $module_name .":";
echo '<a href="\checkers\\'. $module_name .'.php">' . 'Click </a>' . `</p>`;
}
else
{
echo '<p style="color:green">'. $module_name .":";
echo '<a href="\checkers\\'. $module_name .'.php">' . 'Click </a>' . `</p>`;
}
}