Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19662
Modified Files:
serendipity_admin_entries.inc.php
serendipity_functions.inc.php
Log Message:
* Little more layout... just a little, do we want a table here instead? To keep alignment?
* Show message if trackback contained no data (like google.com doesn't because it redirects to www.google.com)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.303
retrieving revision 1.304
diff -u -d -r1.303 -r1.304
--- serendipity_functions.inc.php 23 Jun 2004 11:42:41 -0000 1.303
+++ serendipity_functions.inc.php 23 Jun 2004 17:26:44 -0000 1.304
@@ -2016,13 +2016,13 @@
{
if (!preg_match('@trackback:ping(\s*rdf:resource)?\s*=\s*"(http:[^"]+)"@i', $res, $matches)) {
echo TRACKBACK_NOT_FOUND . '<br />';
- return;
+ return false;
}
if (preg_match('@dc:identifier\s*=\s*"(http:[^"]+)"@i', $res, $test)) {
if ($loc != $test[1]) {
echo TRACKBACK_URI_MISMATCH . '<br />';
- return;
+ return false;
}
}
@@ -2055,12 +2055,12 @@
if ($u['scheme'] != 'http') {
return;
}
-
- echo '<br />';
+
+ echo '<br />• ';
printf(TRACKBACK_CHECKING, $loc);
- echo '<br />';
+ echo '<br /> ';
flush();
-
+
if (empty($u['port'])) {
$u['port'] = 80;
}
@@ -2093,6 +2093,8 @@
if (strlen($res) != 0) {
serendipity_trackback_autodiscover($res, $loc, $url, $author, $title, $text);
serendipity_pingback_autodiscover($loc, $res);
+ } else {
+ echo TRACKBACK_NO_DATA . '<br />';
}
}
Index: serendipity_admin_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_entries.inc.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- serendipity_admin_entries.inc.php 16 Jun 2004 18:28:58 -0000 1.27
+++ serendipity_admin_entries.inc.php 23 Jun 2004 17:26:44 -0000 1.28
@@ -293,7 +293,8 @@
$entry,
ERROR . ': <b>' . $res . '</b>');
} else {
- echo ENTRY_SAVED;
+ echo '<br />• ';
+ echo '<strong>' . ENTRY_SAVED . '</strong>';
}
} else {
// Only display the preview
@@ -363,4 +364,4 @@
);
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
\ No newline at end of file
+?>
|