Пример #1
0
        } else {
            $devolver = $escribo;
        }
        fclose($puntero_archivo);
    } else {
        $devolver = -1;
    }
    return $devolver;
}
$array['BD']['servidor'] = $_POST["ipservidor"];
$array['BD']['nombase'] = $_POST["bd"];
$array['BD']['usuario'] = $_POST["adminbase"];
$array['BD']['passbd'] = $_POST["passbase"];
$array['RUTA']['zona'] = $_POST["rzona"];
$array['RUTA']['obra'] = $_POST["robra"];
$array['RUTA']['sala'] = $_POST["rsala"];
$rutaencuadro = "./encuadroSift";
$encuadro = $_POST["rencuadro"];
$encuadro = $encuadro . $rutaencuadro;
$array['RUTA']['encuadro'] = $encuadro;
$array['RUTA']['include'] = $_POST["rinclude"];
$array['ftp']['servidor'] = $_POST["sftp"];
$array['ftpsala']['usu'] = $_POST["ussala"];
$array['ftpsala']['pass'] = $_POST["psala"];
$array['ftpzona']['usu'] = $_POST["uszona"];
$array['ftpzona']['pass'] = $_POST["pzona"];
$array['ftpobra']['usu'] = $_POST["usobra"];
$array['ftpobra']['pass'] = $_POST["pobra"];
$array['ns']['ns'] = $_POST["ns"];
escribe_ini($array, "C:\\prueba\\confi.ini");
echo "1";
Пример #2
0
                $array['BD']['usuario'] = $_POST["element_4"];
                $array['BD']['passbd'] = $_POST["element_5"];
                $array['RUTA']['zona'] = $_POST["element_9"];
                $array['RUTA']['obra'] = $_POST["element_8"];
                $array['RUTA']['sala'] = $_POST["element_7"];
                $array['RUTA']['encuadro'] = $_POST["element_10"];
                $array['RUTA']['include'] = $_POST["element_11"];
                $array['ftp']['servidor'] = $_POST["element_13"];
                $array['ftpsala']['usu'] = $_POST["element_15"];
                $array['ftpsala']['pass'] = $_POST["element_16"];
                $array['ftpzona']['usu'] = $_POST["element_22"];
                $array['ftpzona']['pass'] = $_POST["element_23"];
                $array['ftpobra']['usu'] = $_POST["element_18"];
                $array['ftpobra']['pass'] = $_POST["element_19"];
                $array['ns']['ns'] = $_POST["element_25"];
               	if(escribe_ini($array,"/var/include/confi.ini")!=-1)
			{?>


<script>
window.location.replace("form.php?e=1");
</script>


			<?  
			}
                   
                    }else  {}                          
			//rellenar();
                        
                           }