getcomments.php 355 B

123456789101112131415161718
  1. <?php
  2. require_once('include/config.php');
  3. require_once('include/db.php');
  4. require_once('include/comment.php');
  5. $type = @$_GET['type'];
  6. $id = @$_GET['id'];
  7. if (empty($type) || empty($id)){
  8. die('Nieprawidłowe żądanie');
  9. }
  10. $comments_data = get_comments($id, $type);
  11. $comments = generate_comment_field($comments_data, $type, $id);
  12. echo $comments;
  13. ?>