Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/learning.test/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); if (!function_exists("_AttemptExists")) { function _AttemptExists($testID, $attemptID = false) { $arFields = Array( "STUDENT_ID" => intval($GLOBALS["USER"]->GetID()), "TEST_ID" => $testID, "STATUS"=> array("B", "N"), ); if ($attemptID !== false) $arFields["ID"] = $attemptID; CTimeZone::Disable(); $rsAttempt = CTestAttempt::GetList(Array(), $arFields); CTimeZone::Enable(); return ($rsAttempt->GetNext()); } } if (!function_exists("_TimeToStringFormat")) { function _TimeToStringFormat($secTotal) { $strTime = ""; if ($secTotal <= 1) return $strTime; $hours = intval($secTotal/3600); if ($hours>0) { $strTime .= ($hours < 10 ? "0" : "").$hours.":"; $secTotal = $secTotal - $hours*3600; } else $strTime .= "00:"; $minutes = intval($secTotal/60); if ($minutes>0) { $strTime .= ($minutes < 10 ? "0" : "").$minutes.":"; $secTotal = $secTotal - $minutes*60; } else $strTime .= "00:"; $seconds = ($secTotal%60); $strTime .= ($seconds < 10 ? "0" : "").$seconds; return $strTime; } } ?>