Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $page = currentPage();
- if(isset($user) && $user->isLoggedIn()){
- if($page != 'location.php' && $page != 'patch.php'){
- $dest=encodeURIComponent("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
- $date = new DateTime("now");
- $last = new DateTime($user->data()->last_loc);
- $last->modify("+2 minutes");
- if($last < $date){
- Redirect::to($us_url_root."location.php?dest=".$dest);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement