$index['public'] = $index['public']; $phpkd['username'] = "dtv100"; // Here Is the User Name $phpkd['password'] = "mypassword"; // Here Is The htaccess Password if(!$index['public']){ if($_SERVER['PHP_AUTH_USER'] != $phpkd['username'] || $_SERVER['PHP_AUTH_PW'] != $phpkd['password']){ Header("WWW-Authenticate: Basic realm=\"Highly Secured\""); Header("HTTP/1.0 401 Unauthorized");echo "<head><title>Unauthorized</title></head><body bgcolor='#000000'><center><br> <a href=\"../index.php\" style=\"text-decoration: none\" target=\"_blank\"> <font face=\"MS Sans Serif\" color=\"#FFFFFF\" size=\"8\"><b><br>Enter Here Only<br></b></a></body></html>";exit;}}