require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); $APPLICATION->SetTitle('Профиль', true); global $USER; $userId = $USER->GetId(); if(!Service::IsClient()) LocalRedirect('/service/index.php'); global $USER; $client = Service::GetUserInfo($USER->GetID()); if(strtotime(ConvertTimeStamp(time(), "SHORT")) > $client['contract_to_s']) $contract_end = true; else $contract_end = false; ?>