123456789101112131415161718 |
- <?php
- require_once('include/config.php');
- require_once('include/db.php');
- require_once('include/comment.php');
- $type = @$_GET['type'];
- $id = @$_GET['id'];
- if (empty($type) || empty($id)){
- die('Nieprawidłowe żądanie');
- }
- $comments_data = get_comments($id, $type);
- $comments = generate_comment_field($comments_data, $type, $id);
- echo $comments;
- ?>
|