add deffines and abstract class

This commit is contained in:
3x0k1d 2025-05-05 05:17:59 +03:00
parent 5c89548ae8
commit e3474f4eba
3 changed files with 53 additions and 1 deletions

20
checkers/baceChecker.php Normal file
View File

@ -0,0 +1,20 @@
<?php
abstract class Checker
{
public $name, $description, $status;
public function __construct($name, $description, $status){
$this->name = $name;
$this->description = $description;
$this->status = $status;
}
public function returnCheckStatus():int {
return 0;
}
public function selfCheck(): void {
}
}

View File

@ -1,3 +1,33 @@
<?php
echo "test git";
//deffine funny things
$module_list = array (
"php-igbinary",
"php-redis",
"php-dbase",
"php-imagick",
"php-ssh2",
"php-xmlrpc",
"php-xdebug",
"php-gnupg",
"php-apcu",
"php-imap",
"php-pspell",
"php-ioncube-loader",
);
$status_code = array (
0 => "Unknow",
1 => "Ok",
2 => "Error",
);
for ($i = 0; $i < count($module_list); $i++) {
if ($module_list[$i] == "") {
echo " Error. Modules doesn't deffined". $module_list[$i] ."";
}
else {
echo "". $module_list[$i] ."";
}
}

2
phpinfo.php Normal file
View File

@ -0,0 +1,2 @@
<?php
phpinfo();