<?php /** * Basicèªè¨¼ãè¦æ±ãããã¼ã¸ã®å é ã§ä½¿ãé¢æ° * ååæã¾ãã¯å¤±ææã«ã¯ããããéä¿¡ãã¦exitãã * * @return string ãã°ã¤ã³ããã¦ã¼ã¶å */ function require_basic_auth() { // äºåã«çæããã¦ã¼ã¶ãã¨ã®ãã¹ã¯ã¼ãããã·ã¥ã®é å $hashes = [ 'ã¦ã¼ã¶å' => '$2y$10$TThG3fsMJegLJHzVQbz8IeHhvpgBg7P5j6gjQWEUOrKKCtsA9L87G', ]; if ( !isset($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) || !password_verify( $_SERVER['PHP_AUTH_PW'], isset($hashes[$_SERVER['PHP_AUTH_USER']]) ?
{{#tags}}- {{label}}
{{/tags}}