Advertisement
Guest User

Untitled

a guest
Apr 18th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $ips = array(
  2. "a" => array( 'xxx.xxx.xxx.xxx', ....),
  3. "b" => array( 'xxx.xxx.xxx.xxx', ....),
  4. );
  5.  
  6. if(in_array($ips['a'], $_SERVER['REMOTE_ADDR'])) {
  7. header("location: website.com/a");
  8. } else {
  9. header("location: website.com/b");
  10. }
  11. exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement