<?php
// -> Setup FILE
// -> DO NOT EDIT THIS FILE
///////////////////////////////////////////////////////////////////////////////////

$defConfig = '1\¦$1$PX2.sx4.$LUPwtlZ6bf5nc7RN02SdU.\¦*\¦@\¦no\¦10\¦d-m-y\¦2';
$dir = getcwd() . "/";
$file[] = array("${hostDir}askanswer.txt", "", false);
$file[] = array("${hostDir}config.txt", $defConfig, true);
$file[] = array("${hostDir}templates.txt", "", false);

foreach ($file as $f) {
	list($filename, $filedata, $overwrite) = $f;
	if (!is_file($filename) || $overwrite) {
		$fd = fopen($filename, "w") or die("Can not open file: ".$filename);
		$fout = fwrite($fd, $filedata);
		fclose($fd);
		$stat = "created";
		if ($overwrite && is_file($filename)) $stat = " updated";
		echo "File: ($filename) $stat.<br />";
	}
}
echo "Installation Complete!<br />";
echo "Your absolute path to ask&answer directory is: <b><i>$dir</i></b>";
?>