']; if ($based_on_ip) { // For load balancing or Reverse Proxy if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) && in_array($_SERVER['HTTP_X_FORWARDED_FOR'], $range_ip)) { $env = $conditional_environment; } else if (in_array($_SERVER['REMOTE_ADDR'], $range_ip)) { $env = $conditional_environment; } }
Permission of the author is granted for reproduction in any form of this book or any part of this book, provided that there is appropriate attribution, for example, by a citation in the References section of a technical article, and provided that the reproduction is not made for the purpose of charging a fee to users (e.g., students in a class) beyond the cost of reproduction. However, plagiar…