Advertisement
blivori

functions.php

Dec 16th, 2012
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.  
  3. function redirect($page) {
  4.  
  5.         header('Location:' . $page);
  6.  
  7. }
  8.  
  9. function check_login_status() {
  10.  
  11.         if (isset($_SESSION['logged_in'])) {
  12.        
  13.             return $_SESSION['logged_in'];
  14.        
  15.         }
  16.        
  17.         return false;
  18.  
  19.  
  20. }
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement