/**
  * is_developer()
  *
  * Checks if the user is developer according to his/her IP
  *
  * @since ADD MVC 0.7.2
  */
 public static function is_developer()
 {
     # Fix for issue #6
     if (current_ip_in_network()) {
         return true;
     }
     if (isset(add::config()->developer_ips)) {
         return in_array(current_user_ip(), (array) add::config()->developer_ips);
     } else {
         return false;
     }
 }
/**
 * bool current_ip_in_network(void)
 * Checks if the current user's ip is in the network
 * @uses ip_in_network
 */
function current_ip_in_network()
{
    return ip_in_network(current_user_ip());
}
 /**
  * is_developer()
  *
  * Checks if the user is developer according to his/her IP
  *
  * @since ADD MVC 0.7.2
  */
 public static function is_developer()
 {
     /**
      * @see http://code.google.com/p/add-mvc-framework/issues/detail?id=39
      */
     if (php_sapi_name() == "cli") {
         return true;
     }
     # Fix for issue #6
     if (current_ip_in_network()) {
         return true;
     }
     if (isset(add::config()->developer_ips)) {
         return in_array(current_user_ip(), (array) add::config()->developer_ips);
     } else {
         return false;
     }
 }
 /**
  * is_developer()
  *
  * Checks if the user is developer according to his/her IP
  *
  * @since ADD MVC 0.7.2
  */
 public static function is_developer()
 {
     return in_array(current_user_ip(), add::config()->developer_ips) || current_ip_in_network();
 }