game/modules_data/steps/step.php

17 lines
353 B
PHP
Raw Normal View History

<?php
/**
* @var string $short_name
*/
$user = User::start();
use DarksLight2\Training\TrainingManager;
$manager = TrainingManager::getInstance();
$step = $manager->$short_name;
$button_text = 'Продолжить';
$time = time();
$token = password_hash($manager->getDatabaseRecords()->api_token . $time . $user->info['id'], PASSWORD_DEFAULT);