Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2. if (! isset ( $_SESSION ['Admin'] ))
  3. QApplication::Redirect ( 'index.php' );
  4. $objUser = unserialize ( $_SESSION ['Admin'] );
  5. // make sure no errors occured in translation and the session's User variable is a user object
  6. if (! ($objUser instanceof Admin)) // Nazev zabulky
  7. QApplication::Redirect ( 'index.php' );
  8. ?>
  9. <?php
  10. if (! isset ( $_SESSION ['Zamestnanec'] ))
  11. QApplication::Redirect ( 'index.php' );
  12. $objUser = unserialize ( $_SESSION ['Zamestnanec'] );
  13. // make sure no errors occured in translation and the session's User variable is a user object
  14. if (! ($objUser instanceof Zamestnanci)) // Nazev zabulky
  15. QApplication::Redirect ( 'index.php' );
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement