Commit 95c4c4f56ff5547758fd879e13d2a4461bd47a55

Authored by Murilo Caixêta
1 parent a9aec1e7

Remoção de exit do testainstal

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
testainstal/index.php
@@ -99,10 +99,11 @@ include "../init/head.php"; @@ -99,10 +99,11 @@ include "../init/head.php";
99 $("#mensagemLogin").html(men); 99 $("#mensagemLogin").html(men);
100 </script> 100 </script>
101 <?php 101 <?php
  102 +
102 if(empty($_POST["senha"]) || empty($_POST["usuario"])){ 103 if(empty($_POST["senha"]) || empty($_POST["usuario"])){
103 -  
104 //opcoes de criacao de pastas 104 //opcoes de criacao de pastas
105 if (strtoupper(substr(PHP_OS, 0, 3) != 'WIN')){ 105 if (strtoupper(substr(PHP_OS, 0, 3) != 'WIN')){
  106 +
106 $d = dirname(dirname(__FILE__)); 107 $d = dirname(dirname(__FILE__));
107 echo <<<HTML 108 echo <<<HTML
108 <div class="alert alert-danger" role="alert"> 109 <div class="alert alert-danger" role="alert">
@@ -145,7 +146,7 @@ echo &lt;&lt;&lt;HTML @@ -145,7 +146,7 @@ echo &lt;&lt;&lt;HTML
145 </script> 146 </script>
146 HTML; 147 HTML;
147 } 148 }
148 - exit; 149 + //exit;
149 } 150 }
150 else{ 151 else{
151 $continua = verificaMaster($_POST["usuario"],$_POST["senha"],$i3geomaster); 152 $continua = verificaMaster($_POST["usuario"],$_POST["senha"],$i3geomaster);
@@ -158,7 +159,8 @@ HTML; @@ -158,7 +159,8 @@ HTML;
158 exit; 159 exit;
159 } 160 }
160 } 161 }
161 - //error_reporting(0); 162 +
  163 + error_reporting(E_ALL);
162 $ip = "UNKNOWN"; 164 $ip = "UNKNOWN";
163 if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP"); 165 if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
164 else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR"); 166 else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR");