Basic realm=" Test Authentication System"'); header('HTTP / 1.0 401 Unauthorized'); echo "You must enter a valid login ID and password to access this resource\n"; exit;} if (!isset($_SERVER['PHP_AUTH_USER']) _BAR_ _BAR_ ($_POST['SeenBefore'] == 1 $_POST['OldAuth'] == $_SERVER['PHP_AUTH_USER'])) {authenticate();} else {echo "p Welcome: {$_SERVER['PHP_AUTH_USER']} br"; echo "Old: {$_REQUEST['OldAuth']}"; echo "form action='{$_SERVER['PHP_SELF']} 'METHOD='POST' \n"; echo" input type='hidden 'name='SeenBefore' value='1 '\n"; echo "input type='hidden' name='OldAuth 'value='{$_SERVER['PHP_AUTH_USER']}' \n"; echo" input type='submit 'value='Re Authenticate' \n"; echo "/ form / p \n";}?
Basic realm=\" Test Authentication System\""); Header ("HTTP / 1.0 401 Unauthorized"); echo "Vous devez entrer un nom d'utilisateur valide et un mot de passe correct pour accéder à cette ressource\n"; exit;} if(!isset($PHP_AUTH_USER) _BAR_ _BAR_ ($SeenBefore == 1 !strcmp($OldAuth, $PHP_AUTH_USER))) {authenticate();} else {echo "Bienvenue $PHP_AUTH_USER BR "; echo "Old: $OldAuth"; echo" form action=\"$PHP_SELF\ "method=post \n"; echo" input type=hidden NAME=\"SeenBefore\ "VALUE=\"1\" \n"; echo "input type=hidden NAME=\"OldAuth\" VALUE=\"$PHP_AUTH_USER\ "\n"; echo" input type=submit value=\"Re Authenticate\ "\n" echo "/ FORM \n";}?