diff --git a/vendor/action/companies/companies_save.php b/vendor/action/companies/companies_save.php index 91c673c..3e75db4 100644 --- a/vendor/action/companies/companies_save.php +++ b/vendor/action/companies/companies_save.php @@ -7,48 +7,7 @@ use vendor\controller\companies\CompaniesValidate; try{ /** Verifica se o token de acesso é válido */ - if($Main->verifyToken()){ - - $fp = fopen('request.txt', 'w+'); - $str = null; - $var = null; - $varItem = null; - $table = "ClientBudgets"; - - //for($i=0; $i 0 ? ucfirst($var) : $var; - $i++; - } - $i=0; - $str = "$".$varItem." = isset(\$_POST['".$Result."']) ? (string)filter_input(INPUT_POST, '".$Result."', FILTER_SANITIZE_SPECIAL_CHARS) : 0;\r"; - fwrite($fp, $str); - unset($varItem); - } - fwrite($fp, "\r\r"); - - foreach ($arr as $Result) { - - $var = explode('_', $Result); - - foreach($var as $var){ - $varItem .= $i > 0 ? ucfirst($var) : $var; - $i++; - } - $i=0; - $str = "\$".$table."Validate->set".$varItem."($".$varItem."); \r"; - fwrite($fp, $str); - unset($varItem); - } - - - fclose($fp); + if($Main->verifyToken()){ /** Instânciamento de classes */ $Companies = new Companies();