⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-roundcube
/
program
/
actions
/
utils
/
View File Name :
spell_html.php
| +-----------------------------------------------------------------------+ */ class rcmail_action_utils_spell_html extends rcmail_action { // only process ajax requests protected static $mode = self::MODE_AJAX; /** * Request handler. * * @param array $args Arguments from the previous step(s) */ public function run($args = []) { $rcmail = rcmail::get_instance(); $method = rcube_utils::get_input_string('method', rcube_utils::INPUT_POST); $lang = rcube_utils::get_input_string('lang', rcube_utils::INPUT_POST); $result = []; $spellchecker = new rcube_spellchecker($lang); if ($method == 'addToDictionary') { $data = rcube_utils::get_input_string('word', rcube_utils::INPUT_POST); $spellchecker->add_word($data); $result['result'] = true; } else { $data = rcube_utils::get_input_string('text', rcube_utils::INPUT_POST, true); $data = html_entity_decode($data, ENT_QUOTES, RCUBE_CHARSET); if ($data && !$spellchecker->check($data)) { $result['words'] = $spellchecker->get(); $result['dictionary'] = (bool) $rcmail->config->get('spellcheck_dictionary'); } } header("Content-Type: application/json; charset=" . RCUBE_CHARSET); if ($error = $spellchecker->error()) { rcube::raise_error([ 'code' => 500, 'file' => __FILE__, 'line' => __LINE__, 'message' => "Spellcheck error: " . $error ], true, false ); echo json_encode(['error' => $rcmail->gettext('internalerror')]); exit; } // send output echo json_encode($result); exit; } }