WIP: разгрузка User:class от сторонних методов.

This commit is contained in:
2023-04-18 12:21:54 +03:00
parent 2bc67ce543
commit 02c76e76ad
15 changed files with 548 additions and 4100 deletions
+7 -9
View File
@@ -142,7 +142,7 @@ function thisInfRm($id, $tp = null, $json = false)
}
if (isset($_GET['loc'])) {
$training_manager = \DarksLight2\Training\TrainingManager::getInstance();
// $training_manager = \DarksLight2\Training\TrainingManager::getInstance();
$go = mysql_fetch_array(
mysql_query(
@@ -152,11 +152,9 @@ if (isset($_GET['loc'])) {
)
);
if (in_array(
$go['file'],
$training_manager->getRegistered(
)[$training_manager->getCurrentStepName()]->allowedToMove()
) || $u->info['admin'] > 0) {
// if (in_array(
// $go['file'], $training_manager->getRegistered()[$training_manager->getCurrentStepName()]->allowedToMove()
// ) || $u->info['admin'] > 0) {
$tr_pl = mysql_fetch_array(
mysql_query(
@@ -371,9 +369,9 @@ if (isset($_GET['loc'])) {
} else {
$re = 'Проход не существует';
}
} else {
$re = 'Вам запрещено передвигаться до окончания обучения!!!';
}
// } else {
// $re = 'Вам запрещено передвигаться до окончания обучения!!!';
// }
}
if ($u->info['room'] == 209) {