Дозаливка

This commit is contained in:
2022-12-19 22:22:19 +02:00
parent 73d69cb0ae
commit 2f6517f5b3
22083 changed files with 494007 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/_incl_data/__config.php';
$learning = new Learming();
//set getLearningStatus to 0 and save
if ($_POST['hasLearned'] && $learning->hasLearned()) {
echo 'OK';
}
if ($_POST['getStatus']) {
// boolean
switch ($learning->getLearningStatus()) {
case 0: echo 'should not learn'; break;
case 1: echo 'should learn'; break;
default: echo 'error: no data'; break;
}
}