LoginToAccountCpanel($sUserEmail, $sUserPassword, $sUserLogin); if ($oAccount instanceof CAccount) { $oApiIntegratorManager->SetAccountAsLoggedIn($oAccount); CApi::Location('../'); exit(); } } } catch (Exception $oException) { } $sError = ''; if ($oException) { $sError = trim($oException->getMessage()); } $sError = empty($sError) ? ($oApiIntegratorManager ? $oApiIntegratorManager->GetLastErrorMessage() : '') : $sError; echo empty($sError) ? 'Internal Server Error. Please, contact your system administrator in order to report the problem.' : $sError; exit();