thomascube
2006-06-25 bac9ff3393cf4b398b076c7c635c68604055dd75
Fixed GoogieSpell checker

1 files modified
6 ■■■■■ changed files
program/steps/mail/spell.inc 6 ●●●●● patch | view | raw | blame | history
program/steps/mail/spell.inc
@@ -24,13 +24,14 @@
$REMOTE_REQUEST = TRUE;
$google = "www.google.com";
$google = "ssl://www.google.com";
$port = 443;
$lang = $_GET['lang'];
$path = "/tbproxy/spell?lang=$lang";
$data = file_get_contents('php://input');
$store = "";
if ($fp = fsockopen($google, 80, $errno, $errstr, 30))
if ($fp = fsockopen($google, $port, $errno, $errstr, 30))
  {
  $out = "POST $path HTTP/1.0\r\n";
  $out .= "Host: $google\r\n";
@@ -39,6 +40,7 @@
  $out .= "Connection: Close\r\n\r\n";
  $out .= $data;
  fwrite($fp, $out);
  while (!feof($fp))
    $store .= fgets($fp, 128);
  fclose($fp);