File:  [mozdev] / cdn / www / b2-include / b2pingbacks.php
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Mar 13 12:51:40 2003 UTC (16 years, 7 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
rearrange

    1: <?php if (!empty($pb)) {
    2: 
    3: // Do not delete these lines
    4: if (basename($HTTP_SERVER_VARS["SCRIPT_FILENAME"]) == "b2pingbacks.php")
    5:   die ("please, do not load this page directly");
    6: $queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND " .
    7:           "comment_content LIKE '%<pingback />%' ORDER BY comment_date";
    8: $resultc = mysql_query($queryc);
    9: 
   10: if ($resultc) {
   11: ?>
   12: 
   13: <!-- you can START editing here -->
   14: 
   15: <a name="pingbacks"></a>
   16: <div><strong><span style="color: #0099CC">::</span> pingbacks</strong></div>
   17: 
   18: <?php /* this line is b2's motor, do not delete it */
   19: 
   20: $wxcvbn_pb=0;
   21: 
   22: while($rowc = mysql_fetch_object($resultc)) {
   23:   
   24:   $wxcvbn_pb++; $commentdata = get_commentdata($rowc->comment_ID); ?>
   25: 
   26: <a name="pb<?php comment_ID() ?>"></a>
   27: 
   28: <!-- pingback -->
   29: <p>
   30: <?php comment_text() ?>
   31: <br />
   32: <strong><span style="color: #0099CC">&middot;</span></strong>
   33: <em>Pingback from <a href="<?php comment_author_url(); ?>" title="<?php comment_author() ?>"><?php comment_author() ?></a> on <?php comment_date() ?> @ <?php comment_time() ?></em>
   34: </p>
   35: <p>&nbsp;</p>
   36: <!-- /pingback -->
   37: 
   38: <?php /* end of the loop, don't delete */ }
   39: if (!$wxcvbn_pb) { ?>
   40: 
   41: <!-- this is displayed if there are no pingbacks so far -->
   42: <p>No Pingback on this post so far.</p>
   43: 
   44: <?php /* if you delete this the sky will fall on your head */ } //if (!$wxcvbn_pb) ?>
   45: 
   46: <p>&nbsp;</p>
   47: <div><b><span style="color: #0099CC">::</span> <a href="javascript:history.go(-1)">return to the blog</a></b></div>
   48: 
   49: <?php /* if you delete this the sky will fall on your head */ } //if ($resultc) ?>
   50: 
   51: </div>
   52: 
   53: <?php /* if you delete this the sky will fall on your head */ } //if (!empty($pb)) ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>