Preventing showing 'index.php' in address bar

I patched the code so index.php don't have to be shown in address bar

Also a small patch to fetch language flags from HTTP_IMAGE defined in config.php instead of the hardcoded /image/flags/