added version.php and internal check to auth.php