ich hab mit dem IE7 das gleiche Problem mit der Meldung
Code: Alles auswählen
An error was encountered on the server. Please try again later
Kann es sein, dass es eher am JavaScript oder an Browsereinstellungen liegt, weil bei anderen Browsern gehts bei mir (FF und Opera)
sockspell.php
Code: Alles auswählen
<?php
/**
* sockspellphp - php proxy for googiespell
*
* @author: Andreas Krapohl [larsneo]
* @link http://www.krapohl.info
* @credits: Marcin 'nosferathoo' Puchalski
* @credits: Johan Sijbesma
* @credits: James Edgington
* @credits: Stephen Wald
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
*/
//Agreement
include($_SERVER['DOCUMENT_ROOT'] . '/user.php');
include($_SERVER['DOCUMENT_ROOT'] . '/init.php');
mysql_select_db("xy_forum");
mysql_query("update users set google_agreement='1' where username ='".$user->username."'");
// get (and sanitize) $lang from GPC
$lang=strip_tags($_GET['lang']);
$lang=substr($lang, 0, 2);
// set enviroment
$google = 'www.google.com';
$path="/tbproxy/spell?lang=$lang";
$data = file_get_contents('php://input');
// create a new curl resource
$curl_handle = curl_init();
// URL: Host und Pfad via HTTPS (= SSL)
curl_setopt($curl_handle, CURLOPT_URL, 'https://'.$google.$path);
// Port
curl_setopt($curl_handle, CURLOPT_PORT, 443);
// Prüfung des SSL-Zertifikats abschalten
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
// curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, false);
// kein Header in der Ausgabe
// curl_setopt($curl_handle, CURLOPT_HEADER, false);
// HTTP-Version 1.1
curl_setopt($curl_handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
// POST-Request
// curl_setopt($curl_handle, CURLOPT_POST, true);
$curl_headers = array('Host: '.$google,
'Content-Type: application/x-www-form-urlencoded',
'Content-Length: '.strlen($data),
'Connection: Close');
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $curl_headers);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl_handle, CURLOPT_POSTFIELDSIZE, strlen($data));
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 30);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
// Request durchführen und Output einlesen
$store = curl_exec($curl_handle);
if (0 == curl_errno($curl_handle)) {
curl_close($curl_handle);
}
// print response
print $store;
?>
Code: Alles auswählen
<div id='google_agreement'></div>
<textarea name="message" id="message" rows="25" cols="" style="width: 100%;" wrap="virtual" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);"></textarea>
<script type="text/javascript">
function init_google(first)
{
if(first == true)
{
document.getElementById('google_agreement').style.display = 'none';
}
var googie1 = new GoogieSpell("googiespell/", "googiespell/sockspell.php?lang=");
googie1.setLanguages({'de': 'Deutsch', 'en' : 'Englisch'});
googie1.lang_chck_spell = "Rechtschreibprüfung";
googie1.lang_rsm_edt = "Text bearbeiten";
googie1.lang_close = "schliessen";
googie1.lang_no_error_found = "Kein Fehler gefunden";
googie1.lang_revert = "zurücksetzen auf";
googie1.decorateTextarea("message");
}
</script>
<script type="text/javascript">init_google(false);</script>
