���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/modules/lhtranslation/translateoperatormessage.php
���ѧ٧ѧ�
<?php header ( 'content-type: application/json; charset=utf-8' ); $chat = erLhcoreClassModelChat::fetch($Params['user_parameters']['chat_id']); if ( erLhcoreClassChat::hasAccessToRead($chat) ) { if (!isset($_SERVER['HTTP_X_CSRFTOKEN']) || !$currentUser->validateCSFRToken($_SERVER['HTTP_X_CSRFTOKEN'])) { echo json_encode(array('error' => true, 'msg' => '')); exit; } if ($_POST['msg'] != '') { try { $translatedMessage = erLhcoreClassTranslate::translateTo( preg_replace('#\[translation\](.*?)\[/translation\]#is', '',$_POST['msg']), ($chat->chat_locale_to != '' ? $chat->chat_locale_to : substr(erLhcoreClassSystem::instance()->Language, 0, 2)), $chat->chat_locale); echo json_encode(array('error' => false,'msg' => $_POST['msg']."\n".'[translation]'. $translatedMessage .'[/translation]')); } catch (Exception $e) { echo json_encode(array('error' => true,'msg' => $_POST['msg']."\n".'[translation]'. $e->getMessage() .'[/translation]')); } } else { echo json_encode(array('error' => true,'msg' => '')); } } exit; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�