[r1081]: branches / 2.5.4 / cgi-bin / yabb2 / Sources / SpellChecker.pl  Maximize  Restore  History

Download this file

46 lines (34 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/perl --
###############################################################################
# SpellChecker.pl #
# $Date: 2013-06-25 15:33:13 +0000 (Tue, 25 Jun 2013) $
###############################################################################
# YaBB: Yet another Bulletin Board #
# Open-Source Community Software for Webmasters #
# Version: YaBB 2.5.4 #
# Packaged: July 1, 2013 #
# Distributed by: http://www.yabbforum.com #
# =========================================================================== #
# Copyright (c) 2000-2013 YaBB (www.yabbforum.com) - All Rights Reserved. #
# Software by: The YaBB Development Team #
# with assistance from the YaBB community. #
###############################################################################
use CGI::Carp qw(fatalsToBrowser);
our $VERSION = '2.5.4';
$spellcheckerplver = 'YaBB 2.5.4 $Revision: 1081 $';
if ( $action eq 'detailedversion' ) { return 1; }
# Take the following comment out to see the error message if you
# call the script directly from a new window of your browser
# use CGI::Carp qw(fatalsToBrowser);
use LWP::UserAgent;
use HTTP::Request::Common;
$ua = LWP::UserAgent->new( agent => 'GoogieSpell Client' );
$reqXML = q{};
read STDIN, $reqXML, $ENV{'CONTENT_LENGTH'};
$url = "http://orangoo.com/newnox?lang=?$ENV{QUERY_STRING}";
$res =
$ua->request( POST $url, Content_Type => 'text/xml', Content => $reqXML );
croak "$res->{_content}" if $res->{_content} =~ /LWP.+https.+Crypt::SSLeay/sm;
print "Content-Type: text/xml\n\n" or croak 'cannot print header';
print $res->{_content} or croak 'cannot print speller';
1;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks