Guest User

Untitled

a guest
Nov 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. $postAuthor = $post['author_id'];
  3. $currentUser = $_SESSION['logged_user']->id;
  4. if ($postAuthor === $currentUser) {
  5. require 'myorder.php';
  6. }
  7. ?>
  8.  
  9. <?php
  10. $postDr = $post['dr'];
  11. $currentDr = $_SESSION['logged_user']->login;
  12. if ($postDr === $currentDr) {
  13. echo '<h2>Ваши актывные заказы</h2>';
  14. require 'active.php';
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment