Index: trunk/install/php/showlibc.php =================================================================== --- trunk/install/php/showlibc.php (リビジョン 65) +++ trunk/install/php/showlibc.php (リビジョン 70) @@ -16,5 +16,17 @@ */ - include("./foltialib.php"); +include("./foltialib.php"); +$con = m_connect(); + +if ($useenvironmentpolicy == 1){ + if (!isset($_SERVER['PHP_AUTH_USER'])) { + header("WWW-Authenticate: Basic realm=\"foltia\""); + header("HTTP/1.0 401 Unauthorized"); + redirectlogin(); + exit; + } else { + login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); + } +}//end if login $tid = getgetnumform(tid); @@ -41,5 +53,4 @@ die_exit("再生可能番組がありません
"); } -$con = m_connect(); $now = date("YmdHi");