0 ntry_id]=' . $id . '&success=true&url=' . urlencode($_SERVER['HTTP_REFERER']); if (serendipity_isResponseClean($sc_url)) { header('Status: 302 Found'); header('Location: ' . $sc_url); } exit; } else { $serendipity['smarty']->assign( array( 'is_comment_notadded' => true, 'comment_url' => htmlspecialchars($_SERVER['HTTP_REFERER']), 'comment_string' => explode('%s', COMMENT_NOT_ADDED_CLICK) ) ); } } else { $serendipity['smarty']->assign( array( 'is_comment_empty' => true, 'comment_url' => htmlspecialchars($_SERVER['HTTP_REFERER']), 'comment_string' => explode('%s', EMPTY_COMMENT) ) ); } } $serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath')); } // Debug logging for pingback receiving function log_pingback($message){ global $pb_logging; if ($pb_logging) { $fp = fopen('pingback.log', 'a'); fwrite($fp, '[' . date('d.m.Y H:i') . '] ' . $message . "\n"); fclose($fp); } } /* vim: set sts=4 ts=4 expandtab : */