Removed spell checker, auto_br, and preview
git-svn-id: http://svn.automattic.com/wordpress/trunk@93 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0041c3e77e
commit
6c3b23047e
41
sproxy.pl
41
sproxy.pl
|
@ -1,41 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
print "Content-type: text/html\n\n";
|
||||
|
||||
if ($ENV{'REQUEST_METHOD'} ne 'POST')
|
||||
{
|
||||
print <<"HTML";
|
||||
<HTML>
|
||||
<BODY>
|
||||
only method POST is supported here.
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
HTML
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
|
||||
@pairs = split(/&/, $buffer);
|
||||
foreach $pair (@pairs)
|
||||
{
|
||||
($name, $value) = split(/=/, $pair);
|
||||
$value =~ tr/+/ /;
|
||||
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
||||
print $value;
|
||||
if($name eq "f")
|
||||
{
|
||||
print "<textarea name=TextBox1>"
|
||||
}
|
||||
if($name eq "g")
|
||||
{
|
||||
print "</textarea><textarea name=TextBox2>"
|
||||
}
|
||||
if($name eq "h")
|
||||
{
|
||||
print "</textarea>"
|
||||
}
|
||||
}
|
||||
|
||||
exit;
|
||||
|
|
@ -29,37 +29,20 @@ window.close()
|
|||
<head>
|
||||
<title>WordPress > Bookmarklet</title>
|
||||
<link rel="stylesheet" href="b2.css" type="text/css" />
|
||||
<?php
|
||||
if ($use_spellchecker) {
|
||||
?><script type="text/javascript" language="javascript">
|
||||
<script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
|
||||
function DoSpell(formname, subject, body) {
|
||||
document.SPELLDATA.formname.value=formname
|
||||
document.SPELLDATA.subjectname.value=subject
|
||||
document.SPELLDATA.messagebodyname.value=body
|
||||
document.SPELLDATA.companyID.value="custom\\http://cafelog.com"
|
||||
document.SPELLDATA.language.value=1033
|
||||
document.SPELLDATA.opener.value="sproxy.pl"
|
||||
document.SPELLDATA.formaction.value="http://www.spellchecker.com/spell/startspelling.asp "
|
||||
window.open("b2spell.php","Spell",
|
||||
"toolbar=no,directories=no,location=yes,urlbar=yes,resizable=yes,width=620,height=600,top=100,left=100")
|
||||
}
|
||||
|
||||
function preview(form) {
|
||||
var preview_date = "<?php echo date("Y-m-d H:i:s"); ?>";
|
||||
var preview_userid = "<?php echo $user_ID ?>";
|
||||
var preview_title = form.post_title.value;
|
||||
var preview_category = form.post_category.value;
|
||||
var preview_content = form.content.value;
|
||||
var preview_autobr = form.post_autobr.value;
|
||||
preview_date = escape(preview_date);
|
||||
preview_userid = escape(preview_userid);
|
||||
preview_title = escape(preview_title);
|
||||
preview_category = escape(preview_category);
|
||||
preview_content = escape(preview_content);
|
||||
preview_autobr = escape(preview_autobr);
|
||||
window.open ("<?php echo "$siteurl/$blogfilename" ?>?preview=1&preview_date="+preview_date +"&preview_userid="+preview_userid +"&preview_title="+preview_title +"&preview_category="+preview_category +"&preview_content="+preview_content +"&preview_autobr="+preview_autobr ,"Preview", "location=0,menubar=1,resizable=1,scrollbars=yes,status=1,toolbar=0");
|
||||
window.open ("<?php echo "$siteurl/$blogfilename" ?>?preview=1&preview_date="+preview_date +"&preview_userid="+preview_userid +"&preview_title="+preview_title +"&preview_category="+preview_category +"&preview_content="+preview_content,"Preview", "location=0,menubar=1,resizable=1,scrollbars=yes,status=1,toolbar=0");
|
||||
}
|
||||
|
||||
function launchupload() {
|
||||
|
@ -68,9 +51,6 @@ function launchupload() {
|
|||
|
||||
//-->
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body {
|
||||
|
@ -199,7 +179,7 @@ preg_match("/\%u[1-9A-F][1-9A-F][1-9A-F][1-9A-F]/is", $text, $stufftofix);
|
|||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php if ($use_preview) { ?>
|
||||
<?php if (0 /*$use_preview*/) { ?>
|
||||
<input type="button" value="preview" onClick="preview(this.form);" class="search" tabindex="8" />
|
||||
<?php } ?>
|
||||
|
||||
|
|
|
@ -8,16 +8,5 @@ if ($debug=="1") {
|
|||
<p> </p>
|
||||
<div align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $b2_version ?> <a href="http://wordpress.org/support/">Support Forums</a></div>
|
||||
|
||||
<!-- this is for the spellchecker -->
|
||||
<form name="SPELLDATA"><div>
|
||||
<input name="formname" type="hidden" value="">
|
||||
<input name="messagebodyname" type="hidden" value="">
|
||||
<input name="subjectname" type="hidden" value="">
|
||||
<input name="companyID" type="hidden" value="">
|
||||
<input name="language" type="hidden" value="">
|
||||
<input name="opener" type="hidden" value="">
|
||||
<input name="formaction" type="hidden" value="">
|
||||
</div></form>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -21,7 +21,6 @@ $request = " SELECT * FROM $tablesettings ";
|
|||
$result = mysql_query($request);
|
||||
while($row = mysql_fetch_object($result)) {
|
||||
$time_difference=$row->time_difference;
|
||||
$autobr=$row->AutoBR;
|
||||
}
|
||||
|
||||
if ($a=="b") {
|
||||
|
@ -49,26 +48,6 @@ if ($a=="b") {
|
|||
<head>
|
||||
<title>WordPress > sidebar</title>
|
||||
<link rel="stylesheet" href="b2.css" type="text/css">
|
||||
<?php
|
||||
if ($use_spellchecker) {
|
||||
?><script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
function DoSpell(formname, subject, body)
|
||||
{
|
||||
document.SPELLDATA.formname.value=formname
|
||||
document.SPELLDATA.subjectname.value=subject
|
||||
document.SPELLDATA.messagebodyname.value=body
|
||||
document.SPELLDATA.companyID.value="custom\\http://cafelog.com"
|
||||
document.SPELLDATA.language.value=1033
|
||||
document.SPELLDATA.opener.value="<?php echo $siteurl ?>/sproxy.pl"
|
||||
document.SPELLDATA.formaction.value="http://www.spellchecker.com/spell/startspelling.asp "
|
||||
window.open("<?php echo $siteurl ?>/b2spell.php","Spell",
|
||||
"toolbar=no,directories=no,location=yes,resizable=yes,width=620,height=400,top=100,left=100")
|
||||
}
|
||||
//-->
|
||||
</script><?php
|
||||
}
|
||||
?>
|
||||
|
||||
<style type="text/css">
|
||||
<!--
|
||||
|
@ -117,21 +96,13 @@ textarea,input,select {
|
|||
|
||||
<textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2" class="postform" wrap="virtual" onFocus="if (this.value=='Post') { this.value='';}" onBlur="if (this.value=='') {this.value='Post';}">Post</textarea>
|
||||
|
||||
<input type="checkbox" name="post_autobr" value="1" <?php if ($autobr) echo " checked" ?> tabindex="4" class="checkbox" id="autobr" /><label for="autobr"> Auto-BR</label><br />
|
||||
|
||||
<?php if ($use_pingback) { ?>
|
||||
<input type="checkbox" class="checkbox" name="post_pingback" value="1" checked="checked" tabindex="5" id="pingback" /><label for="pingback"> PingBack</label>
|
||||
<?php } ?>
|
||||
|
||||
<input type="submit" name="submit" value="Blog this !" class="search" tabindex="3" />
|
||||
|
||||
<?php if ($use_spellchecker) { ?>
|
||||
<!--<input type = "button" value = "Spell Check" onclick="var f=document.forms[0]; doSpell( 'en', f.post_content, '<?php echo $spellchecker_url ?>/sproxy.cgi', true);" class="search" tabindex="5" />-->
|
||||
<input type="button" value="Spellcheck" onclick="DoSpell
|
||||
('post','content','');" class="search" tabindex="9"/>
|
||||
|
||||
<?php }
|
||||
|
||||
<?php
|
||||
if ($use_trackback) { ?>
|
||||
<br /><label for="trackback"><b>TrackBack</b> an URL:</label><br /><input type="text" name="trackback_url" style="width: 100%" id="trackback" tabindex="7" />
|
||||
<?php } ?>
|
||||
|
@ -148,16 +119,6 @@ if ($use_trackback) { ?>
|
|||
|
||||
</form>
|
||||
|
||||
<!-- this is for the spellchecker -->
|
||||
<form name="SPELLDATA"><div>
|
||||
<input name="formname" type="hidden" value="">
|
||||
<input name="messagebodyname" type="hidden" value="">
|
||||
<input name="subjectname" type="hidden" value="">
|
||||
<input name="companyID" type="hidden" value="">
|
||||
<input name="language" type="hidden" value="">
|
||||
<input name="opener" type="hidden" value="">
|
||||
<input name="formaction" type="hidden" value="">
|
||||
</div></form>
|
||||
|
||||
</body>
|
||||
</html><?php
|
||||
|
|
|
@ -1,97 +0,0 @@
|
|||
<HTML>
|
||||
<HEAD><TITLE>Loading Spell Checker</TITLE>
|
||||
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
|
||||
<!--
|
||||
|
||||
function window_onload() {
|
||||
document.SPELLDATA.formname.value=opener.document.SPELLDATA.formname.value
|
||||
document.SPELLDATA.subjectname.value=opener.document.SPELLDATA.subjectname.value
|
||||
document.SPELLDATA.messagebodyname.value=opener.document.SPELLDATA.messagebodyname.value
|
||||
document.SPELLDATA.companyID.value=opener.document.SPELLDATA.companyID.value
|
||||
document.SPELLDATA.language.value=opener.document.SPELLDATA.language.value
|
||||
document.SPELLDATA.opener.value=opener.document.SPELLDATA.opener.value
|
||||
document.SPELLDATA.action=opener.document.SPELLDATA.formaction.value
|
||||
|
||||
|
||||
var flen=opener.document.forms.length
|
||||
|
||||
var index=flen
|
||||
for(i=0; i<flen; i++){
|
||||
if(opener.document.forms[i].name==document.SPELLDATA.formname.value){
|
||||
index=i
|
||||
i=flen
|
||||
}
|
||||
}
|
||||
|
||||
if(index<flen){
|
||||
var ilen=opener.document.forms[index].elements.length
|
||||
var indexcontrol=ilen
|
||||
if(document.SPELLDATA.subjectname.value!=""){
|
||||
for(i=0; i<ilen; i++){
|
||||
if(opener.document.forms[index].elements[i].name==document.SPELLDATA.subjectname.value){
|
||||
indexcontrol=i
|
||||
i=ilen
|
||||
}
|
||||
}
|
||||
if(indexcontrol<ilen)
|
||||
document.SPELLDATA.subject.value=opener.document.forms[index].elements[indexcontrol].value
|
||||
}
|
||||
|
||||
if(document.SPELLDATA.messagebodyname.value!=""){
|
||||
indexcontrol=ilen
|
||||
for(i=0; i<ilen; i++){
|
||||
if(opener.document.forms[index].elements[i].name==document.SPELLDATA.messagebodyname.value){
|
||||
indexcontrol=i
|
||||
i=ilen
|
||||
}
|
||||
}
|
||||
if(indexcontrol<ilen)
|
||||
document.SPELLDATA.messagebody.value=opener.document.forms[index].elements[indexcontrol].value
|
||||
}
|
||||
document.SPELLDATA.submit()
|
||||
}else{
|
||||
alert("no form found. Check java function call")
|
||||
window.close()
|
||||
}
|
||||
}
|
||||
|
||||
//-->
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<BODY LANGUAGE=javascript onload="return window_onload()">
|
||||
<FORM action="" method=post name=SPELLDATA LANGUAGE=javascript>
|
||||
|
||||
<H1>Loading Spell Checker. Please wait</H1>
|
||||
<INPUT name="formname" type=hidden >
|
||||
<INPUT name="messagebodyname" type=hidden >
|
||||
<INPUT name="subjectname" type=hidden >
|
||||
<INPUT name="companyID" type=hidden >
|
||||
<INPUT name="language" type=hidden >
|
||||
<INPUT name="opener" type=hidden >
|
||||
<INPUT name="closer" type=hidden value="finish.asp">
|
||||
<INPUT name="IsHTML" type=hidden value=0>
|
||||
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<P> </P>
|
||||
<TEXTAREA name=subject></TEXTAREA>
|
||||
<TEXTAREA name=messagebody></TEXTAREA>
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -14,8 +14,6 @@ die ("The admin disabled this function");
|
|||
<head>
|
||||
<title>b2 > upload images/files</title>
|
||||
<link rel="stylesheet" href="<?php echo $b2inc; ?>/b2.css" type="text/css">
|
||||
<?php if ($use_spellchecker) { ?>
|
||||
<script type="text/javascript" language="javascript" src="<?php echo $spch_url; ?>"></script><?php } ?>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body {
|
||||
|
|
Loading…
Reference in New Issue