From be6c07f78d2a1055c2d11883598d6e7fb2cce675 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 1 Oct 2009 19:34:14 +0000 Subject: [PATCH] Verificação de localhost como editor permitido --- admin/php/admin.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/admin/php/admin.php b/admin/php/admin.php index 3871037..8e9dc5b 100644 --- a/admin/php/admin.php +++ b/admin/php/admin.php @@ -135,6 +135,8 @@ string - sim|nao */ function verificaEditores($editores) { + if (strtolower($_SERVER['HTTP_HOST']) == "localhost") + {return "sim";} $editor = "nao"; if($editores == ""){return $editor;} foreach ($editores as $e) -- libgit2 0.21.2