Guest User

Kliqqi Page Redirect

a guest
Aug 10th, 2017
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. // If not logged in, redirect to the index page
  4. if ($_GET['login'] && $canIhaveAccess){
  5.     // blank
  6. } elseif ($current_user->user_id > 0 && $current_user->authenticated) {
  7.     // blank
  8. } else {
  9.     header('Location: '.$my_base_url.$my_kliqqi_base.'/register.php');
  10.     die;
  11. }
  12.  
  13. ?>
Add Comment
Please, Sign In to add comment