add deffines and abstract class
This commit is contained in:
parent
5c89548ae8
commit
e3474f4eba
20
checkers/baceChecker.php
Normal file
20
checkers/baceChecker.php
Normal 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 {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
32
index.php
32
index.php
@ -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
2
phpinfo.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
phpinfo();
|
||||
Loading…
x
Reference in New Issue
Block a user