uawdijnntqw1x1x1
IP : 3.144.114.4
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
b24.axolotl.ru
/
.
/
public_html
/
bitrix
/
modules
/
mail
/
tools
/
check_mail.php
/
/
<?php define('NO_KEEP_STATISTIC', 'Y'); define('NO_AGENT_STATISTIC', 'Y'); define('NO_AGENT_CHECK', true); define('DisableEventsCheck', true); define('NOT_CHECK_PERMISSIONS', true); define('BX_SECURITY_SESSION_READONLY', true); require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); if (!is_object($USER) || !$USER->IsAuthorized()) { return; } $userId = $USER->GetID(); session_write_close(); $siteId = SITE_ID; if (isset($_REQUEST['SITE_ID'])) { $site = \CSite::getById($_REQUEST['SITE_ID'])->fetch(); if (empty($site)) { return; } $siteId = $site['LID']; } \Bitrix\Main\Loader::includeModule('mail'); $error = false; $mailboxesSyncManager = new \Bitrix\Mail\Helper\Mailbox\MailboxSyncManager($userId); $mailboxesReadyToSync = $mailboxesSyncManager->getNeedToBeSyncedMailboxes(); $isSuccessSync = false; $failedToSyncMailboxId = 0; if (!empty($mailboxesReadyToSync)) { $hasSuccessSync = false; foreach ($mailboxesReadyToSync as $mailboxId => $lastMailCheckData) { $mailboxHelper = \Bitrix\Mail\Helper\Mailbox::createInstance($mailboxId, false); if (!empty($mailboxHelper)) { $result = $mailboxHelper->sync(); if ($result === false) { $failedToSyncMailboxId = $mailboxId; } else { $hasSuccessSync = true; } if ($mailboxHelper->getMailbox()['SYNC_LOCK'] >= 0) { break; } } } } $unseen = max(\Bitrix\Mail\Helper\Message::getCountersForUserMailboxes($userId, true), 0); \CUserCounter::set($userId, 'mail_unseen', $unseen, $siteId); header('Content-Type: application/x-javascript; charset=' . LANG_CHARSET); echo json_encode([ 'result' => $error === false ? 'ok' : 'error', 'unseen' => $unseen, 'hasSuccessSync' => $hasSuccessSync, 'failedToSyncMailboxId' => $failedToSyncMailboxId, ]); require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_after.php';
/var/www/axolotl/data/www/b24.axolotl.ru/./public_html/bitrix/modules/mail/tools/check_mail.php