This commit is contained in:
3x0k1d 2025-05-05 07:51:51 +03:00
parent 1f90c9099d
commit fbeefadb5c
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<?php
include("baseModule.php");
include("utils.php");
$checker = new BaseModule(
"dbase",
@ -19,9 +20,9 @@ $def = array(
);
if (!file_exists($dbPath)){
echo "файл создаётся";
printTextLine("Файл создаётся");
if (!dbase_create($dbPath, $def)) {
echo "Error! Unable to create database\n";
echo "<p>Error! Unable to create database<p>";
}
}

View File

@ -11,4 +11,8 @@ function printModuleInfo($module_name) : void {
echo '<p style="color:green">'. $module_name .":";
echo '<a href="\checkers\\'. $module_name .'.php">' . 'Click </a>' . `</p>`;
}
}
function printTextLine($text,$color ='black') : void {
echo '<p style="color:' . $color . '">' . $text .'</p>';
}