Index: trunk/install/php/selectcaptureimage.php =================================================================== --- trunk/install/php/selectcaptureimage.php (リビジョン 56) +++ trunk/install/php/selectcaptureimage.php (リビジョン 70) @@ -18,4 +18,17 @@ 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 + $pid = getgetform(pid); @@ -47,5 +60,4 @@ -$con = m_connect(); $query = " SELECT