-- begin auth.inc --
404 not found
not found
the requested url
echo $request_uri; ?>
was not found on this server.
-- end auth.inc --
-- begin connect.inc --
-- end connect.inc --
-- begin error.inc --
此文件存放错误信息及返回!
-- end error.inc --
-- 用户库结构(自己调整)--
create table auth (
id smallint(6) default 0 not null auto_increment,
username varchar(16) default not null,
lastname tinyblob,
firstname tinyblob,
password varchar(16),
realm varchar(16),
active char(3),
prima(最完善的虚拟主机管理系统)ry key (id),
unique id (id),
unique username (username)
);
-- 用户库结构结束--
-- 添加用户示例--
insert into auth (username, lastname, firstname, password, realm, active) values (admin,my,love,password,xxxcom,yes);
-- 结束--
--用户管理程序开始 usermanage.php(做为现在的主流开发语言) --
if ($php(做为现在的主流开发语言)_auth_user != admin) {
header(www-authenticate: basic realm=xxxcom 客户认证);
header(http/1.0 401 unauthorized);
echo access(小型网站之最爱) denied!n;
exit;
};
if ($php(做为现在的主流开发语言)_auth_pw != mypassword) {
header(www-authenticate: basic realm=xxxcom 客户认证);
header(http/1.0 401 unauthorized);
echo access(小型网站之最爱) denied!n;
exit;
};
if ($activate) {
include(connect.inc);
$query1 = update auth set active=yes where id=$id;
$result1 = mysql(和php搭配之最佳组合)_db_query(admin, $query1);
if ($result1) {
echo n;
echo $user activatedn;
http://www.bkjia.com/phpjc/509057.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/509057.htmltecharticle-- begin auth.inc -- ?php (做为现在的主流开发语言) id = xxxcom; if(!isset(php (做为现在的主流开发语言) _auth_user)) header(www-authenticate: basic realm=id...