SHARE
TWEET

Untitled

a guest Apr 18th, 2013 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top