Fixed the bug of all_posts.php (changed $_session['uid'] = current user id)