Location: PHPKode > projects > Wexplorer > weXplorer/adminwrite.php
<?php
//echo "<pre>";
//print_r($_POST);
//die();

$lines = file ('weXplorer.ini');
$out = fopen('~weXplorer.ini','w+');

foreach ($lines as $line_num => $line) {
    	$pos = strpos ($line, "=");
		if ($pos !== false) {
		   	list($desc, $prop) = explode  ( "=", $line,2);
			$desc = trim($desc);
		  	fwrite($out, "\t".$desc."\t= \"".stripcslashes($_POST[$desc])."\"\n");
		} else {
			fwrite($out, $line);	
		}
}
fclose($out);
@unlink ('weXplorer.ini~');
rename	('weXplorer.ini','weXplorer.ini~');
rename	('~weXplorer.ini','weXplorer.ini');
echo "Confiuration has been written.<br/>";

?>
Return current item: Wexplorer