Advertisement
Guest User

Untitled

a guest
Mar 16th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. if ( is_user_logged_in() ) { } else {
  3. $safePages = array("/login/", "/register/");
  4. $url = $_SERVER["REQUEST_URI"];
  5. if ( in_array( $url, $safePages ) ) { } else { ?>
  6.  
  7. <script type="text/javascript">
  8. <!--
  9. window.location = "http://www.demo1.diaboliquedesign.com/5/login/"
  10. //-->
  11. </script>
  12.  
  13. <?php } } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement