Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. $when = '2011/07/11 11:22:52';
  3.  
  4. if ($when > strtotime('+30 days', time()));
  5. {
  6. echo "too far into the future";
  7. header('Refresh: 10; URL=page.php');
  8. die();
  9. }
  10.  
  11. if ($when < time());
  12. {
  13. echo "less than current time";
  14. header('Refresh: 10; URL=page.php');
  15. die();
  16. }
  17.  
  18. echo "pass";
  19. header('Refresh: 10; URL=page.php');
  20. die();
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement