Permalink
Browse files

Set to FALSE to disable IP control on web pages

  • Loading branch information...
1 parent 33bf640 commit 44cf719a684e31adfe7a0b4cdc3bad60b86e1683 @GromNaN GromNaN committed Apr 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 xhprof_html/callgraph.php
  2. +1 −1 xhprof_html/index.php
@@ -30,7 +30,7 @@
*/
require_once ("../xhprof_lib/config.php");
-if (!in_array($_SERVER['REMOTE_ADDR'], $controlIPs))
+if (false !== $controlIPs && !in_array($_SERVER['REMOTE_ADDR'], $controlIPs))
{
die("You do not have permission to view this page.");
}
@@ -6,7 +6,7 @@
include_once XHPROF_LIB_ROOT . '/display/xhprof.php';
include (XHPROF_LIB_ROOT . "/utils/common.php");
-if (!in_array($_SERVER['REMOTE_ADDR'], $controlIPs))
+if (false !== $controlIPs && !in_array($_SERVER['REMOTE_ADDR'], $controlIPs))
{
die("You do not have permission to view this page.");
}

0 comments on commit 44cf719

Please sign in to comment.