Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $postAuthor = $post['author_id'];
- $currentUser = $_SESSION['logged_user']->id;
- if ($postAuthor === $currentUser) {
- require 'myorder.php';
- }
- ?>
- <?php
- $postDr = $post['dr'];
- $currentDr = $_SESSION['logged_user']->login;
- if ($postDr === $currentDr) {
- echo '<h2>Ваши актывные заказы</h2>';
- require 'active.php';
- }
- ?>
Add Comment
Please, Sign In to add comment