以下为引用的内容: // choose a user name and password between the " " symbol //=========================== $admin_user_name="admin"; // your admin username $admin_password="pass"; // your password $site_com="webjx.com"; // your website name WITHOUT http:// and www $login="你已经登陆"; // succesful message when user are logged in ( NOT NECESSARY ) //===========================
// DO NOT EDIT NOTHING BELOW!
if ((!isset($PHP_AUTH_USER)) || (!isset($PHP_AUTH_PW))) {
/* No values: send headers causing dialog box to appear */ php程序员站
} else if ((isset($PHP_AUTH_USER)) && (isset($PHP_AUTH_PW))){ /* Values contain some values, so check to see if they're correct */
if (($PHP_AUTH_USER != "$admin_user_name") || ($PHP_AUTH_PW != "$admin_password")) { /* If either the username entered is incorrect, or the password entered is incorrect, send the headers causing dialog box to appear */