Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30356
Modified Files:
serendipity_admin.php serendipity_config.inc.php
Log Message:
Since I'm gone for the weekend, here's something for you to play with.
Tom basically agreed to it, and I get it working well on my setup.
However this is EXPERIMENTAL. You have been warned.
If it breaks seriously, I won't be offended if anyone reverts the commit - but I don't think it's unstable, though. :-)
Index: serendipity_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_config.inc.php,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- serendipity_config.inc.php 19 Nov 2004 11:24:34 -0000 1.102
+++ serendipity_config.inc.php 26 Nov 2004 14:40:12 -0000 1.103
@@ -52,6 +52,9 @@
$serendipity['fetchLimit'] = 15;
}
+// Should IFRAMEs be used for previewing entries and sending trackbacks?
+$serendipity['use_iframe'] = true;
+
/*
* Load main language file
*/
Index: serendipity_admin.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin.php,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- serendipity_admin.php 19 Nov 2004 11:04:59 -0000 1.43
+++ serendipity_admin.php 26 Nov 2004 14:40:12 -0000 1.44
@@ -13,6 +13,10 @@
serendipity_login();
}
}
+
+if (serendipity_is_iframe()) {
+ return true; // break out of current document
+}
?>
<html>
<head>
|