24 require_once dirname(__FILE__).
'/../../../../core/include/init.inc';
25 include_once dirname(__FILE__).
'/../../../../data/private/conf/tools.inc';
27 if (empty($GLOBALS[
'SQ_SYSTEM']->user) || !($GLOBALS[
'SQ_SYSTEM']->user->canAccessBackend() || $GLOBALS[
'SQ_SYSTEM']->user->type() ==
'simple_edit_user')){
31 header(
'Content-type: text/html; charset: utf-8');
34 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
37 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
38 <style type=
"text/css">
39 .HA-spellcheck-error {
40 border-bottom: 2px dotted #FF0000;
49 .HA-spellcheck-hover {
53 .HA-spellcheck-fixed {
54 border-bottom: 1px dotted #0b8;
57 .HA-spellcheck-current {
59 background-color: #EBEBEB;
63 .HA-spellcheck-suggestions {
67 #HA-spellcheck-dictionaries {
76 font-family: tahoma,verdana,sans-serif;
82 <body onload=
"window.parent.finishedSpellChecking();" bgcolor=
"#FFFFFF">
84 $GLOBALS[
'spellerId'] = 0;
85 $GLOBALS[
'dict'] = SQ_TOOL_SPELL_CHECKER_LANG;
105 if (get_magic_quotes_gpc()) {
106 foreach ($_REQUEST as $k => $v) {
107 $_REQUEST[
"$k"] = stripslashes($v);
111 require_once DIRNAME(__FILE__).
'/spell_parser.inc';
112 require_once
'XML/XML_HTMLSax.php';
114 $handler =&
new Spell_Parser();
115 $handler->setLanguage($GLOBALS[
'dict']);
117 $parser =&
new XML_HTMLSax();
118 $parser->set_object($handler);
119 $parser->set_element_handler(
'openHandler',
'closeHandler');
120 $parser->set_data_handler(
'dataHandler');
122 $string_to_parse = stripslashes($_POST[
'content']);
124 $parser->parse($string_to_parse);