Committer: dnikolaev
LJSUP-7313: MTS sms notifications (RU)U trunk/cgi-bin/LJ/TextMessage.pm U trunk/htdocs/manage/profile/index.bml U trunk/htdocs/tools/textmessage.bml
Modified: trunk/cgi-bin/LJ/TextMessage.pm =================================================================== --- trunk/cgi-bin/LJ/TextMessage.pm 2010-11-11 10:36:03 UTC (rev 17670) +++ trunk/cgi-bin/LJ/TextMessage.pm 2010-11-11 10:52:00 UTC (rev 17671) @@ -902,6 +902,14 @@ 'totlimit' => 0, 'api' => 'LJ::SMS::API::RU', }; + $providers{'mts'} = { + 'name' => 'MTS Russia', + 'notes' => 'Russia only', + 'fromlimit' => 0, + 'msglimit' => 0, + 'totlimit' => 0, + 'api' => 'LJ::SMS::API::RU', + }; }; sub providers Modified: trunk/htdocs/manage/profile/index.bml =================================================================== --- trunk/htdocs/manage/profile/index.bml 2010-11-11 10:36:03 UTC (rev 17670) +++ trunk/htdocs/manage/profile/index.bml 2010-11-11 10:52:00 UTC (rev 17671) @@ -558,7 +558,7 @@ my $statuses = LJ::SMS::API::RU::Phone->get_cur_phone_statuses($phone); $status = 'already_use' if grep { $_->[0] eq 'verified' && $_->[1] != $u->{'userid'} } @$statuses; $ret .= "smsNotifyInitialState = \"".$status."\";"; - $ret .= "var supportedDEF = [901,903,905,906,909,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,936,937,938,960,961,962,963,964,965,967,968,997];"; + $ret .= "var supportedDEF = [" . join(',', keys %{$LJ::SMSRU{supported_DEF}}) . "];"; $ret .= "var smsNotifyDict = {"; $ret .= ""; $ret .= "sendsmsbut : \"$ML{'.section.textmsg.button'}\","; Modified: trunk/htdocs/tools/textmessage.bml =================================================================== --- trunk/htdocs/tools/textmessage.bml 2010-11-11 10:36:03 UTC (rev 17670) +++ trunk/htdocs/tools/textmessage.bml 2010-11-11 10:52:00 UTC (rev 17671) @@ -62,7 +62,7 @@ } ## Text messaging is disabled for some providers - if ($tminfo->{provider} eq 'megafon' or $tminfo->{provider} eq 'beeline'){ + if ($tminfo->{provider} eq 'megafon' or $tminfo->{provider} eq 'beeline' or $tminfo->{provider} eq 'mts'){ $ret .= "<?h1 $ML{'.error.unavailable.head'} h1?> <br />"; add_footer(); return $ret;