check
This commit is contained in:
parent
1f90c9099d
commit
fbeefadb5c
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
include("baseModule.php");
|
include("baseModule.php");
|
||||||
|
include("utils.php");
|
||||||
|
|
||||||
$checker = new BaseModule(
|
$checker = new BaseModule(
|
||||||
"dbase",
|
"dbase",
|
||||||
@ -19,9 +20,9 @@ $def = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!file_exists($dbPath)){
|
if (!file_exists($dbPath)){
|
||||||
echo "файл создаётся";
|
printTextLine("Файл создаётся");
|
||||||
if (!dbase_create($dbPath, $def)) {
|
if (!dbase_create($dbPath, $def)) {
|
||||||
echo "Error! Unable to create database\n";
|
echo "<p>Error! Unable to create database<p>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,3 +12,7 @@ function printModuleInfo($module_name) : void {
|
|||||||
echo '<a href="\checkers\\'. $module_name .'.php">' . 'Click </a>' . `</p>`;
|
echo '<a href="\checkers\\'. $module_name .'.php">' . 'Click </a>' . `</p>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function printTextLine($text,$color ='black') : void {
|
||||||
|
echo '<p style="color:' . $color . '">' . $text .'</p>';
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user