Commit 8bff5aa4f70446a64d1b405f654a7f5a0e739741
1 parent
4e2c39e9
Exists in
master
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 | 1 | <?php |
2 | 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 | 9 | Title: Variáveis de inicialização ms_configura.php | ... | ... |