Commit be6c07f78d2a1055c2d11883598d6e7fb2cce675
1 parent
1422d907
Exists in
master
and in
7 other branches
Verificação de localhost como editor permitido
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
admin/php/admin.php
| @@ -135,6 +135,8 @@ string - sim|nao | @@ -135,6 +135,8 @@ string - sim|nao | ||
| 135 | */ | 135 | */ |
| 136 | function verificaEditores($editores) | 136 | function verificaEditores($editores) |
| 137 | { | 137 | { |
| 138 | + if (strtolower($_SERVER['HTTP_HOST']) == "localhost") | ||
| 139 | + {return "sim";} | ||
| 138 | $editor = "nao"; | 140 | $editor = "nao"; |
| 139 | if($editores == ""){return $editor;} | 141 | if($editores == ""){return $editor;} |
| 140 | foreach ($editores as $e) | 142 | foreach ($editores as $e) |