unitistar

post

May 23rd, 2012
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?
  2. include("data/pwq.php");
  3. if($id>=0){}else{ header("Location: blog.php"); }
  4. $blog=ffile("data/blog/blog.dat");
  5. $post=ffile("data/blog/$id.dat");
  6. if($blog[$id]==""){ header("Location: blog.php"); }
  7. include("data/header.php");
  8. $use=explode("|", $blog[$id]);
  9. echo "$use[2]<br>$use[3]<br><i>Добавил $use[0] [$use[1]]</i><br> - - - - - <br>Комментарии:";
  10. if($post[0]!=""){
  11. for($i=0;$i<count($post);$i++){
  12. $use=explode("|", $post[$i]);
  13. if($use[0]!="!" && $use[0]!=""){
  14. echo "<br><i>$use[0]</i><b>:</b> $use[1]";
  15. if($clogin==$elogin && $cpass==$epass){
  16. echo " / <a href='delete.post.php?id=$id&post=$i'>удалить</a>";
  17. }
  18. }
  19. }
  20. }else{
  21. echo "<br>нет комментариев<br>";
  22. }
  23. echo "<br><a href='blog.php'>назад</a> / <a href='write.php?id=$id'>ответить</a>";
  24. include("data/footer.php");
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment