conditional added for setlocale for windows system, and in index.php we dont allow poping of wornings and errors