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 <?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>";
} }
} }

View File

@ -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>';
}