/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function apply_basic_auth() { if(!check_credentials($login, $password)) { echo "You need to provide a valid login and password."; exit; } } function check_credentials($login, $password) { return $login == 'login' && $password == 'password'; }
Comments
