little changes

This commit is contained in:
3x0k1d 2025-05-05 07:08:12 +03:00
parent 7a858a6f80
commit cb59dd8b06
2 changed files with 6 additions and 6 deletions

View File

@ -15,4 +15,4 @@ This PHP script check a basic feauteres of the phpredis extension:
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$redis->set('foo', 'bar');
echo $redis->get('foo');
echo ("Output:" . $redis->get('foo'));

View File

@ -24,19 +24,19 @@ $status_code = array (
for ($i = 0; $i < count($module_list); $i++) {
if ($module_list[$i] == "") {
echo " Error. Modules doesn't deffined". $module_list[$i] ."";
echo "Error. Module doesn't deffined". $module_list[$i] ."";
}
else {
echo '<p>'. $module_list[$i] .":";
echo '<a href="\checkers\\'. $module_list[$i] .'.php">' . 'Click </a>' . `</p>`;
$module_name = str_replace('php-', '', $module_list[$i]);
if (!extension_loaded($module_name))
{
echo '<div style="color:red">Module: <b>'. $module_list[$i] . '</b> not loaded</div>';
echo '<p style="color:green">'. $module_list[$i] .":";
echo '<a href="\checkers\\'. $module_list[$i] .'.php">' . 'Click </a>' . `</p>`;
}
else
{
echo '<div style="color:green">Module: <b>' . $module_list[$i] . '</b> is loaded</div>';
echo '<p style="color:red">'. $module_list[$i] .":";
echo '<a href="\checkers\\'. $module_list[$i] .'.php">' . 'Click </a>' . `</p>`;
}
}
}