17 'secure' =>
$result[
'secure'] ?
'Y' :
'N',
67 'secrets' =>
$result[
'secrets'],
68 'last_check' =>
$result[
'last_check'],
69 'next_check' =>
$result[
'next_check']
112 $domain = trim(mb_strtolower($domain));
117 $error = self::getErrorCode(
'no_domain');
123 $error = self::getErrorCode(
'no_login');
197 $domain = trim(mb_strtolower($domain));
202 $error = self::getErrorCode(
'no_domain');
210 '=DOMAIN' => $domain,
215 while ($item =
$res->fetch())
216 $users[] = $item[
'LOGIN'];
220 if ($resync || empty($users))
234 list(
$login, $emailDomain) = explode(
'@',
$email[
'login'], 2);
235 if ($emailDomain == $domain)
236 $users[] = trim(mb_strtolower(
$login));
241 $users = array_unique($users);
249 '=DOMAIN' => $domain,
254 while ($item =
$res->fetch())
255 $cached[] = $item[
'LOGIN'];
258 foreach (array_diff($cached, $users) as
$login)
265 foreach (array_diff($users, $cached) as
$login)
275 if (empty($users) &&
$error)
295 if (preg_match(
'~^https?://avatars\.yandex\.net/get-for-domain/~i',
$result))
335 $domain = trim(mb_strtolower($domain));
340 $error = self::getErrorCode(
'no_domain');
346 $error = self::getErrorCode(
'no_login');
368 private static function getErrorCode(
$error)
406 private static function getErrorCode2(
$error)
static getList(array $parameters=array())
static setDomainLogo($token, $domain, $logo, $replace, &$error)
static getUnreadMessagesCount($token, $domain, $login, &$error)
static selLocale($token, $domain, $locale, &$error)
static getRedirectUrl($locale, $token, $domain, $login, $errorUrl, &$error)
static getDomainUsers($token, $domain, &$error, $resync=false)
static changePassword($token, $domain, $login, $password, &$error)
static isUserExists($token, $domain, $login, &$error)
static getDomainStatus($token, $domain, &$error)
static addDomain($token, $domain, &$error)
static addUser($token, $domain, $login, $password, &$error)
static checkDomainStatus($token, $domain, &$error)
static deleteUser($token, $domain, $login, &$error)
static deleteDomain($token, $domain, &$error)
const ERR_API_BAD_PASSWORD
const ERR_API_LONG_PASSWORD
const ERR_API_PROHIBITED_DOMAIN
const ERR_API_EMPTY_PASSWORD
const ERR_API_EMPTY_DOMAIN
const ERR_API_DOMAIN_OCCUPIED
const ERR_API_USER_NOTFOUND
const ERR_API_NAME_OCCUPIED
const ERR_API_SHORT_PASSWORD
static getDomainUsers($token, $domain, $per_page=30, $page=0, &$error)
static getMailInfo($token, $domain, $login, &$error)
static checkLogo($token, $domain, &$error)
static getOAuthToken($token, $domain, $login, &$error)
static getDomainStatus($token, $domain, &$error)
static addDomain($token, $domain, &$error)
static setLogo($token, $domain, $file, &$error)
static addUser($token, $domain, $login, $password, &$error)
static checkUser($token, $domain, $login, &$error)
static editUser($token, $domain, $login, $data, &$error)
static checkDomainStatus($token, $domain, &$error)
static deleteUser($token, $domain, $login, &$error)
static setCountry($token, $domain, $country, &$error)
static passport($country, $oauthToken, $errorUrl)
static deleteDomain($token, $domain, &$error)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"