namespace Ctweb\SMSAuth;
$GLOBALS['____1550779159']= array(definestrrevstrtouppersprintfsprintfsubstrstrrevbase64_decodesubstrstrlenstrlenchrordordmktimeintvalintvalintvalksortsubstrimplodedefinedbase64_decodeconstantstrrevsprintfstrlenstrlenchrordordmktimeintvalintvalintvalsubstrsubstrtimemktimemktimedatedatedefinedefinefile_existsfile_existsfile_existsis_dirdirnamemkdirdirnametouchfileexplodeintvalin_arrayin_arrayfile_put_contentssprintfdatestrtrfile_existsunlinkarray_mergeis_stringjson_decodejson_last_erroris_arraykeykeykeystrlenfile_existsclass_existsis_arrayjson_encodefile_existsrenamemkdircopydefinedstrlen);
if(!function_exists(__NAMESPACE__.'\\___1148705457')){
function ___1148705457($_603103128){
static $_136252489= false;
if($_136252489 == false) $_136252489=array('ZXhwaXJlX21lc3NfY3VzdG9tMg==','Y3R3ZWJfc21zYXV0aF8=','b21lZA==','WQ==','ZHJtX3N0ZXJnb2tj','JTAxMHMK','ZWJfc21z','Y3R3ZWIuc21zYXV0aA==','JXMlcw==','fmJz','ZXRhZF9wbw==','YWRtaW4=','bW9kdWxlcw==','dXNlcl9kYXRlX2JzbS5waHA=','Y3R3ZWIuc21zYXV0aA==','Yml0cml4','UkhlYl9zbXM=','NjBhYTFmOGMwNTFoeXRvcw==','','NDJh','ZTZlZTc0YWI5ODA5ZmE0ZjEx','ZjU5YmU1Mg==','aHR0cDovL2JpdHJpeHNvZnQuY29tL2JpdHJpeC9icy5waHA=','Y3R3','YXV0aF9PTERTSVRFRVhQSVJFREFURVM=','RE9DVU1FTlRfUk9PVA==','Lw==','Lw==','Y3R3ZWJfc21zYXV0aF9URU1QT1JBUllfQ0FDSEU=','Y3R3ZWJfc21zYXV0aF9URU1QT1JBUllfQ0FDSEU=','','ZmJmYjY=','JXMlcw==','NjhhZDRhMjk2YTg5MGRlNzA4Njg=','Y3R3','YXV0aF9TSVRFRVhQSVJFREFURU1BUEVS','bQ==','ZA==','WQ==','U2l0ZUV4cGlyZURhdGVfY3R3ZWJfc21zYXV0aA==','Y3R3ZWIuc21zYXV0aA==','XEN0d2ViXFNNU0F1dGhcTWFuYWdlcg==','bGliL21hbmFnZXIucGhw','XEN0d2ViXFNNU0F1dGhcUHJvdmlkZXJCYXNl','bGliL3Byb3ZpZGVyLmJhc2UucGhw','XEN0d2ViXFNNU0F1dGhcQ0FkbWluRm9ybQ==','bGliL2NhZG1pbmZvcm0ucGhw','L3ZlbmRvci9hdXRvbG9hZC5waHA=','UEhPTkVfTlVNQkVS','Q1dfUkVHX0ZJRUxEX1BIT05FX05VTUJFUg==','UEVSU09OQUxfUEhPTkU=','RklFTERfUEVSU09OQUxfUEhPTkU=','UEVSU09OQUxfRkFY','RklFTERfUEVSU09OQUxfRkFY','UEVSU09OQUxfTU9CSUxF','RklFTERfUEVSU09OQUxfTU9CSUxF','UEVSU09OQUxfUEFHRVI=','RklFTERfUEVSU09OQUxfUEFHRVI=','V09SS19QSE9ORQ==','RklFTERfV09SS19QSE9ORQ==','V09SS19GQVg=','RklFTERfV09SS19GQVg=','V09SS19QQUdFUg==','RklFTERfV09SS19QQUdFUg==','T25HZXRQaG9uZUZpZWxkTGlzdA==','c29ydA==','YXNj','TElE','L2xvY2FsL3RlbXBsYXRlcy8=','VEVNUExBVEU=','RE9DVU1FTlRfUk9PVA==','RE9DVU1FTlRfUk9PVA==','RE9DVU1FTlRfUk9PVA==','L2xvY2FsL3RlbXBsYXRlcy8uZGVmYXVsdA==','RE9DVU1FTlRfUk9PVA==','L2xvY2FsL3RlbXBsYXRlcy8uZGVmYXVsdA==','L2xvY2FsL3RlbXBsYXRlcy8uZGVmYXVsdA==','L2JpdHJpeC90ZW1wbGF0ZXMv','VEVNUExBVEU=','RE9DVU1FTlRfUk9PVA==','RE9DVU1FTlRfUk9PVA==','RE9DVU1FTlRfUk9PVA==','L2JpdHJpeC90ZW1wbGF0ZXMvLmRlZmF1bHQ=','L2JpdHJpeC90ZW1wbGF0ZXMvLmRlZmF1bHQ=','IHwg','VElNRVNUQU1Q','VFlQRQ==','VEVYVA==','RVJST1I=','TUVTU0FHRQ==','JXMgfCAlcyB8ICVzCg==','ZC5tLlkgSDppOnM=','Cg==','XG4=','DQ==','XHI=','bWFpbg==','bmV3X3VzZXJfZW1haWxfcmVxdWlyZWQ=','WQ==','Tg==','RU1QVFk=','U1dTQV9ORVdfRU1BSUxfQVNfRU1QVFk=','T25HZXRQcm92aWRlckxpc3Q=','UEFUSA==','UEFUSA==','Q0xBU1M=','Q0xBU1M=','RVJST1JfQ0xBU1NfTk9UX0ZPVU5E','I0NMQVNTIw==','Q0xBU1M=','RVJST1JfUEFUSF9OT1RfRk9VTkQ=','I1BBVEgj','UGF0aA==','UEhPTkVfRklFTEQ=','Tk9fUEhPTkVfRVJST1JT','UFJPVklERVI=','T25HZXRVc2VyUmVnaXN0ZXJGaWVsZHM=','dGVtcGxhdGUucGhw','VFBMX1NJVEU=','UkVOQU1F','VFBMX1NJVEU=','dGVtcGxhdGUucGhwLmN0d2ViYXV0aC5iYWs=','TUtESVI=','VFBMX1NJVEU=','RE9DVU1FTlRfUk9PVA==','L2JpdHJpeC9tb2R1bGVzL2N0d2ViLnNtc2F1dGgvaW5zdGFsbC9zeXN0ZW0uYXV0aC90ZW1wbGF0ZS5waHA=','T1BUSU9OX1NFVA==','UkVXUklURV9TWVNURU1fQVVUSF9QQVRI','T1BUSU9OX1NFVA==','UkVXUklURV9TWVNURU1fQVVUSF9QQVRI','Y3R3ZWJfc21zYXV0aF9PTERTSVRFRVhQSVJFREFURQ==','ZXhwaXJlX21lc3NfY3VzdG9tMg==');
return ;
}
};
$_1722544160= GetMessage(___1148705457(0));
$_1418667087=(994-2*497);
@$GLOBALS['____1550779159'][0](___1148705457(1).$GLOBALS['____1550779159'][1]($GLOBALS['____1550779159'][2](___1148705457(2))), ___1148705457(3));
$_671568636= round(0+0.25+0.25+0.25+0.25);
$_216932321= ___1148705457(4);
unset($_1720396689);
$_1039664473= $GLOBALS['____1550779159'][3](___1148705457(5), ___1148705457(6));
$_1720396689= \COption::GetOptionString(___1148705457(7), $GLOBALS['____1550779159'][4](___1148705457(8),___1148705457(9),$GLOBALS['____1550779159'][5]($_216932321, round(0+0.5+0.5+0.5+0.5), round(0+2+2))).$GLOBALS['____1550779159'][6](___1148705457(10)));
$_896986250= array(round(0+4.25+4.25+4.25+4.25) => ___1148705457(11), round(0+1.4+1.4+1.4+1.4+1.4) => ___1148705457(12), round(0+7.3333333333333+7.3333333333333+7.3333333333333) => ___1148705457(13), round(0+12) => ___1148705457(14), round(0+1+1+1) => ___1148705457(15));
$_39471116= ___1148705457(16);
while($_1720396689){
$_1750899563= ___1148705457(17);
$_1592541900= $GLOBALS['____1550779159'][7]($_1720396689);
$_1228246372= ___1148705457(18);
$_1750899563= $GLOBALS['____1550779159'][8](___1148705457(19).$_1750899563, min(154,0,51.333333333333),-round(0+1+1+1+1+1)).___1148705457(20);
$_2054238448= $GLOBALS['____1550779159'][9]($_1750899563);
$_1659058696= min(192,0,64);
for($_51016296=(820-2*410);
$_51016296<$GLOBALS['____1550779159'][10]($_1592541900);
$_51016296++){
$_1228246372 .= $GLOBALS['____1550779159'][11]($GLOBALS['____1550779159'][12]($_1592541900[$_51016296])^ $GLOBALS['____1550779159'][13]($_1750899563[$_1659058696]));
if($_1659058696==$_2054238448-round(0+0.25+0.25+0.25+0.25)) $_1659058696=(250*2-500);
else $_1659058696= $_1659058696+ round(0+0.33333333333333+0.33333333333333+0.33333333333333);
}
$_671568636= $GLOBALS['____1550779159'][14](min(86,0,28.666666666667),(1124/2-562),(233*2-466), $GLOBALS['____1550779159'][15]($_1228246372[round(0+6)].$_1228246372[round(0+3)]), $GLOBALS['____1550779159'][16]($_1228246372[round(0+0.2+0.2+0.2+0.2+0.2)].$_1228246372[round(0+7+7)]), $GLOBALS['____1550779159'][17]($_1228246372[round(0+3.3333333333333+3.3333333333333+3.3333333333333)].$_1228246372[round(0+6+6+6)].$_1228246372[round(0+1.4+1.4+1.4+1.4+1.4)].$_1228246372[round(0+12)]));
unset($_1750899563);
break;
}
$_188826054= ___1148705457(21);
$GLOBALS['____1550779159'][18]($_896986250);
$_2144659972= ___1148705457(22);
$_39471116= ___1148705457(23).$GLOBALS['____1550779159'][19]($_39471116.___1148705457(24), round(0+0.5+0.5+0.5+0.5),-round(0+0.25+0.25+0.25+0.25));
@include($_SERVER[___1148705457(25)].___1148705457(26).$GLOBALS['____1550779159'][20](___1148705457(27), $_896986250));
$_1022958643= round(0+0.4+0.4+0.4+0.4+0.4);
while($GLOBALS['____1550779159'][21](___1148705457(28))){
$_626809961= $GLOBALS['____1550779159'][22]($GLOBALS['____1550779159'][23](___1148705457(29)));
$_1877748442= ___1148705457(30);
$_188826054= $GLOBALS['____1550779159'][24](___1148705457(31)).$GLOBALS['____1550779159'][25](___1148705457(32),$_188826054,___1148705457(33));
$_1090825975= $GLOBALS['____1550779159'][26]($_188826054);
$_1659058696=(1264/2-632);
for($_51016296=(1252/2-626);
$_51016296<$GLOBALS['____1550779159'][27]($_626809961);
$_51016296++){
$_1877748442 .= $GLOBALS['____1550779159'][28]($GLOBALS['____1550779159'][29]($_626809961[$_51016296])^ $GLOBALS['____1550779159'][30]($_188826054[$_1659058696]));
if($_1659058696==$_1090825975-round(0+0.2+0.2+0.2+0.2+0.2)) $_1659058696=(846-2*423);
else $_1659058696= $_1659058696+ round(0+0.2+0.2+0.2+0.2+0.2);
}
$_1022958643= $GLOBALS['____1550779159'][31]((186*2-372),(1056/2-528), min(218,0,72.666666666667), $GLOBALS['____1550779159'][32]($_1877748442[round(0+3+3)].$_1877748442[round(0+3.2+3.2+3.2+3.2+3.2)]), $GLOBALS['____1550779159'][33]($_1877748442[round(0+3+3+3)].$_1877748442[round(0+2)]), $GLOBALS['____1550779159'][34]($_1877748442[round(0+12)].$_1877748442[round(0+7)].$_1877748442[round(0+7+7)].$_1877748442[round(0+3)]));
unset($_188826054);
break;
}
$_1039664473= ___1148705457(34).$GLOBALS['____1550779159'][35]($GLOBALS['____1550779159'][36]($_1039664473, round(0+0.6+0.6+0.6+0.6+0.6),-round(0+1)).___1148705457(35), round(0+0.5+0.5),-round(0+1+1+1+1+1));
for($_51016296=(822-2*411),$_584966162=($GLOBALS['____1550779159'][37]()< $GLOBALS['____1550779159'][38]((848-2*424),(1180/2-590),min(58,0,19.333333333333),round(0+1.6666666666667+1.6666666666667+1.6666666666667),round(0+0.25+0.25+0.25+0.25),round(0+402+402+402+402+402)) || $_671568636 <= round(0+10)),$_587377130=($_671568636< $GLOBALS['____1550779159'][39]((970-2*485),(204*2-408),(1324/2-662),Date(___1148705457(36)),$GLOBALS['____1550779159'][40](___1148705457(37))-$_1418667087,$GLOBALS['____1550779159'][41](___1148705457(38))));
$_51016296< round(0+2.5+2.5+2.5+2.5),$_584966162 || $_587377130 || $_671568636 != $_1022958643;
$_51016296++)return false;
$GLOBALS['____1550779159'][42]($_39471116, $_671568636);
$GLOBALS['____1550779159'][43]($_1039664473, $_1022958643);
$GLOBALS[___1148705457(39)]= ctweb_smsauth_OLDSITEEXPIREDATE;
use Bitrix\Main\Config\Option;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\ModuleManager;
Loc::loadMessages(__FILE__);
\CModule::AddAutoloadClasses( ___1148705457(40), array( ___1148705457(41) => ___1148705457(42), ___1148705457(43) => ___1148705457(44), ___1148705457(45) => ___1148705457(46),));
require_once(__DIR__. ___1148705457(47));
class Module{
const MODULE_ID= 'ctweb.smsauth';
const LOG_TYPE_NONE= 0;
const LOG_TYPE_MESSAGES= 1;
const LOG_TYPE_ERRORS= 2;
const LOG_TYPE_ALL= 3;
const LOG_FILE= __DIR__. '/logs/module.log';
static function isActive(){
return Option::get(self::MODULE_ID, 'ACTIVE', 0);
}
static public function getLogOptions(){
return array( self::LOG_TYPE_NONE => Loc::getMessage('LOG_TYPE_NONE'), self::LOG_TYPE_MESSAGES => Loc::getMessage('LOG_TYPE_MESSAGES'), self::LOG_TYPE_ERRORS => Loc::getMessage('LOG_TYPE_ERRORS'), self::LOG_TYPE_ALL => Loc::getMessage('LOG_TYPE_ALL'),);
}
public static function CoreHasOwnPhoneAuth(){
return (bool) CheckVersion(ModuleManager::getVersion('main'), '18.5.0');
}
static public function getPhoneFieldList(){
$_2074403678= array();
if(self::CoreHasOwnPhoneAuth()){
$_2074403678[___1148705457(48)]= Loc::getMessage(___1148705457(49));
}
$_2074403678[___1148705457(50)]= Loc::GetMessage(___1148705457(51));
$_2074403678[___1148705457(52)]= Loc::GetMessage(___1148705457(53));
$_2074403678[___1148705457(54)]= Loc::GetMessage(___1148705457(55));
$_2074403678[___1148705457(56)]= Loc::GetMessage(___1148705457(57));
$_2074403678[___1148705457(58)]= Loc::GetMessage(___1148705457(59));
$_2074403678[___1148705457(60)]= Loc::GetMessage(___1148705457(61));
$_2074403678[___1148705457(62)]= Loc::GetMessage(___1148705457(63));
$_867248984= new \Bitrix\Main\Event(self::MODULE_ID, ___1148705457(64), array(&$_2074403678));
$_867248984->send();
return $_2074403678;
}
static public function getSiteTemplates(){
$_2074403678= array();
$_486374300= \CSite::GetList($_106664146=___1148705457(65), $_913377213=___1148705457(66), Array());
while($_941893333= $_486374300->Fetch()){
$_202527693= \CSite::GetTemplateList($_941893333[___1148705457(67)]);
while($_397214462= $_202527693->Fetch()){
$_1184267365= ___1148705457(68).$_397214462[___1148705457(69)];
if($GLOBALS['____1550779159'][44]($_SERVER[___1148705457(70)].$_1184267365)){
$_2074403678[$_SERVER[___1148705457(71)].$_1184267365]= $_1184267365;
}
if(!$_2074403678[$_SERVER[___1148705457(72)].___1148705457(73)]) $_2074403678[$_SERVER[___1148705457(74)].___1148705457(75)]= ___1148705457(76);
$_2069254074= ___1148705457(77).$_397214462[___1148705457(78)];
if($GLOBALS['____1550779159'][45]($_SERVER[___1148705457(79)].$_2069254074)){
$_2074403678[$_SERVER[___1148705457(80)].$_2069254074]= $_2069254074;
}
}
}
$_2074403678[$_SERVER[___1148705457(81)].___1148705457(82)]= ___1148705457(83);
return $_2074403678;
}
static public function getLogs(){
if(!$GLOBALS['____1550779159'][46](self::LOG_FILE)){
if(!$GLOBALS['____1550779159'][47]($GLOBALS['____1550779159'][48](self::LOG_FILE))){
$GLOBALS['____1550779159'][49]($GLOBALS['____1550779159'][50](self::LOG_FILE), 0755, true);
}
$GLOBALS['____1550779159'][51](self::LOG_FILE);
}
$_2074403678= $GLOBALS['____1550779159'][52](self::LOG_FILE);
return \array_map(function($_78506955){
list($type, $_382107809, $_120910097)= $GLOBALS['____1550779159'][53](___1148705457(84), $_78506955, round(0+1+1+1));
return[ ___1148705457(85) => $_382107809, ___1148705457(86) => $type, ___1148705457(87) => $_120910097,];
}
, $_2074403678);
}
static public function addLog($_1513070142, $type= 'MESSAGE'){
$_478398978= $GLOBALS['____1550779159'][54](Option::get(self::MODULE_ID, 'LOG_MESSAGES', self::LOG_TYPE_NONE));
if($type === ___1148705457(88) && $GLOBALS['____1550779159'][55]($_478398978, array(self::LOG_TYPE_ERRORS, self::LOG_TYPE_ALL)) || $type === ___1148705457(89) && $GLOBALS['____1550779159'][56]($_478398978, array(self::LOG_TYPE_MESSAGES, self::LOG_TYPE_ALL))){
$GLOBALS['____1550779159'][57](self::LOG_FILE, $GLOBALS['____1550779159'][58]( ___1148705457(90), $type, $GLOBALS['____1550779159'][59](___1148705457(91)), $GLOBALS['____1550779159'][60]($_1513070142,[ ___1148705457(92) => ___1148705457(93), ___1148705457(94) => ___1148705457(95),])),FILE_APPEND);
}
}
static public function clearLog(){
if(!$GLOBALS['____1550779159'][61](self::LOG_FILE)) return;
$GLOBALS['____1550779159'][62](self::LOG_FILE);
}
static public function getOptions(){
$_1897859997= Option::getForModule(self::MODULE_ID);
$_1781545367= $GLOBALS['____1550779159'][63](self::getDefaultOptions(), $_1897859997);
foreach($_1781545367 as $_2143628438 => $_1883288307){
if($GLOBALS['____1550779159'][64]($_1883288307)){
$_1883288307= $GLOBALS['____1550779159'][65]($_1883288307, true);
if($GLOBALS['____1550779159'][66]() === JSON_ERROR_NONE && $GLOBALS['____1550779159'][67]($_1883288307)){
$_1781545367[$_2143628438]= $_1883288307;
}
}
}
return $_1781545367;
}
static public function getDefaultOptions(){
return array( 'ACTIVE' => 0, 'LOG_MESSAGES' => 2, 'DEBUG' => 0, 'PHONE_FIELD' => $GLOBALS['____1550779159'][68](self::getPhoneFieldList()), 'CODE_LENGTH' => 5, 'ALPHABET' => '', 'MIN_PHONE_LENGTH' => 5, 'NEW_LOGIN_AS' => 'timestamp', 'NEW_EMAIL_AS' => 'timestamp', 'TIME_EXPIRE' => 180, 'PROVIDER' => $GLOBALS['____1550779159'][69](self::getProviderList()), 'TRANSLIT' => 0, 'ALLOW_REGISTER_AUTH' => 0, 'REGISTER_FIELDS' => array($GLOBALS['____1550779159'][70](self::getPhoneFieldList())), 'TEXT_MESSAGE' => Loc::getMessage("CWSA_SMS_DEFAULT_MESSAGE_TEXT"), 'NO_PHONE_ERRORS' => 0, 'CWSA_PHONE_MASK' => "+9 (999) 999 99 99",);
}
static public function getNewLoginAsList(){
return array( 'TIMESTAMP' => Loc::getMessage("SWSA_NEW_LOGIN_AS_TIMESTAMP"), 'EMAIL' => Loc::getMessage("SWSA_NEW_LOGIN_AS_EMAIL"), 'PHONE' => Loc::getMessage("SWSA_NEW_LOGIN_AS_PHONE"),);
}
static public function getNewEmailAsList(){
$_679688208= array( 'TIMESTAMP' => Loc::getMessage("SWSA_NEW_EMAIL_AS_TIMESTAMP"), 'PHONE' => Loc::getMessage("SWSA_NEW_EMAIL_AS_PHONE"),);
if((Option::get(___1148705457(96), ___1148705457(97), ___1148705457(98)) == ___1148705457(99))) $_679688208[___1148705457(100)]= Loc::getMessage(___1148705457(101));
return $_679688208;
}
static public function getProviderList(){
$_1781545367= array( 'BSGWORLD' => array('NAME' => 'bsg.world', 'PATH' => __DIR__. '/lib/providers/bsgworld.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderBSGWORLD'), 'BYTEHANDCOM' => array('NAME' => 'bytehand.com', 'PATH' => __DIR__. '/lib/providers/bytehandcom.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderBYTEHANDCOM'), 'INFOSMSKARU' => array('NAME' => 'infosmska.ru', 'PATH' => __DIR__. '/lib/providers/infosmskaru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderINFOSMSKARU'), 'IQSMSRU' => array('NAME' => 'iqsms.ru', 'PATH' => __DIR__. '/lib/providers/iqsmsru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderIQSMSRU'), 'KAZINFOTEH' => array('NAME' => 'kazinfoteh.kz', 'PATH' => __DIR__. '/lib/providers/kazinfoteh.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderKAZINFOTEH'), 'MAINSMSRU' => array('NAME' => 'mainsms.ru', 'PATH' => __DIR__. '/lib/providers/mainsmsru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderMAINSMSRU'), 'NEWTEL' => array('NAME' => 'new-tel.net', 'PATH' => __DIR__. '/lib/providers/newtel.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderNEWTEL'), 'P1SMSRU' => array('NAME' => 'p1sms.ru', 'PATH' => __DIR__. '/lib/providers/p1smsru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderP1SMSRU'), 'PROSTORSMSRU' => array('NAME' => 'prostorsms.ru', 'PATH' => __DIR__. '/lib/providers/prostorsmsru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderPROSTORSMSRU'), 'REDSMSRU' => array('NAME' => 'redsms.ru', 'PATH' => __dir__. '/lib/providers/redsmsru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderREDSMSRU'), 'SMSAERORU' => array('NAME' => 'smsaero.ru', 'PATH' => __DIR__. '/lib/providers/smsaeroru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderSMSAERORU'), 'SMSCKZ' => array('NAME' => 'smsc.kz', 'PATH' => __DIR__. '/lib/providers/smsckz.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderSMSCKZ'), 'SMSCLUBMOBI' => array('NAME' => 'smsclub.mobi', 'PATH' => __DIR__. '/lib/providers/smsclubmobi.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderSMSCLUBMOBI'), 'SMSCRU' => array('NAME' => 'smsc.ru', 'PATH' => __DIR__. '/lib/providers/smscru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderSMSCRU'), 'SMSRU' => array('NAME' => 'sms.ru', 'PATH' => __DIR__. '/lib/providers/smsru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderSMSRU'), 'SMSUSLUGIRU' => array('NAME' => 'sms-uslugi.ru', 'PATH' => __DIR__. '/lib/providers/smsuslugiru.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderSMSUSLUGIRU'), 'TURBOSMSUA' => array('NAME' => 'turbosms.ua', 'PATH' => __DIR__. '/lib/providers/turbosmsua.php', 'CLASS' => '\Ctweb\SMSAuth\ProviderTURBOSMSUA'),);
$_867248984= new \Bitrix\Main\Event(self::MODULE_ID, ___1148705457(102), array(&$_1781545367));
$_867248984->send();
return $_1781545367;
}
static public function getProvider($_1994944451= null){
if($GLOBALS['____1550779159'][71]($_1994944451)){
$_1115560738= self::getProviderList()[$_1994944451];
if($GLOBALS['____1550779159'][72]($_1115560738[___1148705457(103)])){
require_once $_1115560738[___1148705457(104)];
if($GLOBALS['____1550779159'][73]($_1115560738[___1148705457(105)])){
try{
$_1452682103= new $_1115560738[___1148705457(106)];
return $_1452682103;
}
catch(\Exception $_78506955){
throw new \Exception($_78506955->getMessage());
}
}
else{
throw new \Exception(Loc::getMessage(___1148705457(107), array(___1148705457(108) => $_1115560738[___1148705457(109)])));
}
}
else{
throw new \Exception(Loc::getMessage(___1148705457(110), array(___1148705457(111) => $_1115560738[___1148705457(112)])));
}
}
return null;
}
static public function updateOptions($_1607189479){
$_1727624432= self::getDefaultOptions();
foreach($_1727624432 as $_2143628438 => $_1883288307){
if($_2143628438 === ___1148705457(113) && $_1883288307 !== $_1607189479[$_2143628438]) Option::set(self::MODULE_ID, ___1148705457(114), min(186,0,62));
if($_1607189479[$_2143628438]) $_1883288307= $_1607189479[$_2143628438];
if($GLOBALS['____1550779159'][74]($_1883288307)) $_1883288307= $GLOBALS['____1550779159'][75]($_1883288307);
Option::set(self::MODULE_ID, $_2143628438, $_1883288307);
}
$_1452682103= self::getProvider($_1607189479[___1148705457(115)]);
if($_1452682103){
$_1452682103->updateOptions($_1607189479);
}
}
static public function getUserRegisterFields(){
$_1781545367= array( 'LOGIN' => Loc::getMessage('CW_REG_FIELD_LOGIN'), 'NAME' => Loc::getMessage('CW_REG_FIELD_NAME'), 'LAST_NAME' => Loc::getMessage('CW_REG_FIELD_LAST_NAME'), 'SECOND_NAME' => Loc::getMessage('CW_REG_FIELD_SECOND_NAME'), 'EMAIL' => Loc::getMessage('CW_REG_FIELD_EMAIL'), 'PHONE_NUMBER' => Loc::getMessage('CW_REG_FIELD_PHONE_NUMBER'), 'PERSONAL_PHONE' => Loc::getMessage('CW_REG_FIELD_PERSONAL_PHONE'), 'PERSONAL_FAX' => Loc::getMessage('CW_REG_FIELD_PERSONAL_FAX'), 'PERSONAL_MOBILE' => Loc::getMessage('CW_REG_FIELD_PERSONAL_MOBILE'), 'PERSONAL_PAGER' => Loc::getMessage('CW_REG_FIELD_PERSONAL_PAGER'), 'WORK_PHONE' => Loc::getMessage('CW_REG_FIELD_WORK_PHONE'), 'WORK_FAX' => Loc::getMessage('CW_REG_FIELD_WORK_FAX'), 'WORK_PAGER' => Loc::getMessage('CW_REG_FIELD_WORK_PAGER'),);
$_867248984= new \Bitrix\Main\Event(self::MODULE_ID, ___1148705457(116), array(&$_1781545367));
$_867248984->send();
return $_1781545367;
}
static function rewriteSystemAuth($_1713530204){
$_37112873= '/components/bitrix/system.auth.authorize/flat/';
$_1451647648= ___1148705457(117);
$_1353824698= $_1713530204[___1148705457(118)].$_37112873.$_1451647648;
if($GLOBALS['____1550779159'][76]($_1353824698)){
$_958970782[___1148705457(119)]= $GLOBALS['____1550779159'][77]($_1353824698, $_1713530204[___1148705457(120)].$_37112873.___1148705457(121));
}
else{
$_958970782[___1148705457(122)]= $GLOBALS['____1550779159'][78]($_1713530204[___1148705457(123)].$_37112873, round(0+246.5+246.5), true);
}
if($GLOBALS['____1550779159'][79]($_SERVER[___1148705457(124)].___1148705457(125), $_1353824698)) $_958970782[___1148705457(126)]= Option::set(self::MODULE_ID, ___1148705457(127), $_1353824698);
else $_958970782[___1148705457(128)]= Option::set(self::MODULE_ID, ___1148705457(129), false);
}
};
while(!$GLOBALS['____1550779159'][80](___1148705457(130)) || $GLOBALS['____1550779159'][81](ctweb_smsauth_OLDSITEEXPIREDATE) <=(848-2*424) || ctweb_smsauth_OLDSITEEXPIREDATE != ctweb_smsauth_SITEEXPIREDATE)die(GetMessage(___1148705457(131)));
© 2023 Quttera Ltd. All rights reserved.