vtenext/modules/Touch/vtws/TouchGetMessagesCount.php
2021-04-28 20:10:26 +02:00

22 lines
629 B
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
/* crmv@42537 - retrieves informations about the email config (accounts & folders) */
global $login, $userId, $current_user, $currentModule;
global $adb, $table_prefix;
if (!$login || empty($userId)) {
echo 'Login Failed';
} elseif (in_array('Messages', $touchInst->excluded_modules)) {
echo "Module not permitted";
} else {
// very stupid!
include('modules/SDK/src/Notifications/plugins/MessagesCheckChanges.php');
}
?>