Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (! isset ( $_SESSION ['Admin'] ))
- QApplication::Redirect ( 'index.php' );
- $objUser = unserialize ( $_SESSION ['Admin'] );
- // make sure no errors occured in translation and the session's User variable is a user object
- if (! ($objUser instanceof Admin)) // Nazev zabulky
- QApplication::Redirect ( 'index.php' );
- ?>
- <?php
- if (! isset ( $_SESSION ['Zamestnanec'] ))
- QApplication::Redirect ( 'index.php' );
- $objUser = unserialize ( $_SESSION ['Zamestnanec'] );
- // make sure no errors occured in translation and the session's User variable is a user object
- if (! ($objUser instanceof Zamestnanci)) // Nazev zabulky
- QApplication::Redirect ( 'index.php' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement