C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\zomplog\detail.php


1
<?include('admin/config.php');include("skins/$skin/header.php");include("language/$language");?><table width="100%" border="0" cellspacing="3" cellpadding="0">  <tr>     <td width="379" valign="top"><table width="102%" border="0" cellspacing="3" cellpadding="0">                    <tr>                       <td><table width='100%' border='0' cellspacing='0'>                          <tr>                             <td>                               <?                include("topmenu.php");            echo "<table width='100%' border='0' cellspacing='0'>";echo  "<tr>"; echo    "<td>";echo "<div class='zomplog'>";$query mysql_query("SELECT * FROM $table WHERE id = $_GET[id]");while($row mysql_fetch_array($query)) {$title $row['title'];$text $row['text'];$extended $row['extended'];$file $row['image'];$username $row['username'];$userid $row['userid'];$date $row['date'];echo "<a href='$_SERVER[HTTP_REFERER]'>previous page</a><br /><br />";?><!-- startprint --><?echo "<div class='title'>$title</div> on $date <br /><br />";if($file){echo "<table width='130' border='0' align='left' cellspacing='0'><tr><td width='83' height='63'><a href='image.php?file=$file'onclick='OpenLarge(this.href); return false'><img src='upload/thumbnail.php?gd=2&src=$file&maxw=130'></a></td><td width='13'>&nbsp;</td></tr></table>";}else{echo " ";}echo "<div class='zomplog'>";echo nl2br($text);echo "<br /><br />";echo nl2br($extended);echo "<br />";$query mysql_query("SELECT * FROM $table_users WHERE id = $userid"); while ($row mysql_fetch_array ($query)) {$admin $row['permissions'];$username $row['login'];}echo "Posted by: $username<br /><br />";}?>                            </td>                          </tr>                        </table>                        <!-- stopprint --><?// Use comments or not. Variable $use_comments can be found in config.phpif(!$use_comments){echo "";}else{echo    "</td>";echo  "</tr>";echo  "<tr>"; echo "<table width='100%' border='0' cellspacing='0' background='images/line.gif' bgcolor='#FFFFFF'>";echo        "<tr>"; echo          "<td>&nbsp;</td>";echo        "</tr>";echo      "</table>";echo  "</tr>";echo  "<tr>"; echo    "<td><div class='title'>Comments:</div></td>";echo  "</tr>";echo  "<tr>"; echo    "<td><a name='comments'></td>";echo  "</tr>";echo  "<tr>"; echo    "<td>";$query mysql_query("SELECT * FROM $table_comments WHERE (entry_id = $_GET[id])"); $results mysql_num_rows($query); if($results!=0){while($row mysql_fetch_array($query)) { $id $row['entry_id']; $date2 $row['date']; $name $row['name']; $text $row['comment']; echo "<div class='zomplog'><b>$name</b> on $date2 <br /></div>"; echo "<div class='zomplog'>$text<br /><br /></div>"; }}else {echo "<div class='zomplog'>No results found</div>";}echo "<br />";echo    "</td>";echo  "</tr>";echo  "<tr>"; echo  "</tr>";echo  "<tr>"; echo    "<td>"; echo "<form name='input' method='post' action='comments_put.php?id=$_GET[id]'>";echo    "</td>";echo  "</tr>";echo  "<tr>"; echo    "<td width='351'><div class='title'><p>Write a comment:</div></p>";echo      "<table width='150' border='0' cellspacing='0'>";echo        "<tr>"; echo          "<td><div class='zomplog'>Name:</div></td>";echo        "</tr>";echo        "<tr>"; echo          "<td><div class='zomplog'><input name='name' type='text' id='name'></div></td>";echo        "</tr>";echo        "<tr>"; echo          "<td><div class='zomplog'>Comment:</div></td>";echo        "</tr>";echo        "<tr>"; echo          "<td><div class='zomplog'><textarea name='comment' cols='50' rows='10' id='comment'></textarea></div></td>";echo        "</tr>";echo        "<tr>"; echo          "<td> </tr>";echo        "<tr>"; echo          "<td><div class='zomplog'><input type='submit' name='submit' value='submit'></div></td>";echo        "</tr>";echo      "</table>";echo      "<p>";echo "</form> </p></td>";echo  "</tr>";echo  "<tr>"; }?>                      </td>                    </tr>                  </table></td>    <td width="19">&nbsp;</td>    <td width="174" valign="top">      <?php include("menu.php"); ?></td>  </tr></table><?include("skins/$skin/footer.php");?>