print changes
This commit is contained in:
parent
d6172bdb69
commit
094d8ab88a
9
checkers/php-dbase.php
Normal file
9
checkers/php-dbase.php
Normal 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();
|
||||||
|
|
||||||
@ -8,7 +8,6 @@ $checker = new BaseModule(
|
|||||||
|
|
||||||
$checker->printInfo();
|
$checker->printInfo();
|
||||||
|
|
||||||
|
|
||||||
$redis = new Redis();
|
$redis = new Redis();
|
||||||
$redis->connect('127.0.0.1', 6379);
|
$redis->connect('127.0.0.1', 6379);
|
||||||
$redis->set('foo', 'bar');
|
$redis->set('foo', 'bar');
|
||||||
|
|||||||
26
index.php
26
index.php
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
include("utils.php");
|
||||||
|
|
||||||
//deffine funny things
|
//deffine funny things
|
||||||
$module_list = array (
|
$module_list = array (
|
||||||
@ -16,30 +17,13 @@ $module_list = array (
|
|||||||
"ionCube Loader",
|
"ionCube Loader",
|
||||||
);
|
);
|
||||||
|
|
||||||
$status_code = array (
|
|
||||||
0 => "Unknow",
|
|
||||||
1 => "Ok",
|
|
||||||
2 => "Error",
|
|
||||||
);
|
|
||||||
|
|
||||||
for ($i = 0; $i < count($module_list); $i++) {
|
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] ."";
|
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
|
else
|
||||||
{
|
printModuleInfo($module_list[$i]);
|
||||||
echo '<p style="color:green">'. $module_list[$i] .":";
|
|
||||||
echo '<a href="\checkers\\'. $module_list[$i] .'.php">' . 'Click </a>' . `</p>`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
14
utils.php
Normal file
14
utils.php
Normal 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>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user