$user, 'pass'=>$password); } public static function error() { //pr_trace();exit; header('WWW-Authenticate: Basic realm="kodcloud"'); header('HTTP/1.0 401 Unauthorized'); header('Pragma: no-cache'); header('Cache-Control: no-cache'); header('Content-Length: 0'); exit; } public static function make($user,$pass){ return "Authorization: Basic " . base64_encode($user.':'.$pass); } }