Commit dd8d48c93352bb40e26f6a79bd83ec536ef0bc7d
1 parent
e3c7ce19
Exists in
master
and in
7 other branches
Correção no ms_configura.php da rotina de verificação do programa que acessa ess…
…e arquivo para evitar erros no windows
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
ms_configura.php
1 | <?php | 1 | <?php |
2 | //verifica se o pai esta na mesma pasta | 2 | //verifica se o pai esta na mesma pasta |
3 | -if(!stristr(dirname($_SERVER['SCRIPT_FILENAME']),"/".basename(dirname(__FILE__)))){ | ||
4 | - exit; | 3 | +if (!strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){ |
4 | + if(!stristr(dirname($_SERVER['SCRIPT_FILENAME']),"/".basename(dirname(__FILE__)))){ | ||
5 | + exit; | ||
6 | + } | ||
5 | } | 7 | } |
6 | /* | 8 | /* |
7 | Title: Variáveis de inicialização ms_configura.php | 9 | Title: Variáveis de inicialização ms_configura.php |